Arduino

From MC Chem Wiki
Jump to navigation Jump to search

This is a page describing some basics associated with Arduino software/hardware.

Software

Software can be downloaded from the following ink:

https://www.arduino.cc/en/Main/Software

Explora Board (Hardware)

The Explora board is easy way to start coding with Arduinos. The Explora board has multiple devices (slider, LED, speaker, microphone, buttons) built-in and hence eliminates the need to deal with the initial complications associated with wiring up an Arduino. You will of course what to play around with wiring at a later time.

Upon launching the Arduino software you must tell the software which Arduino board you are using...

- under Tools/Board -->select Arduino Explora
- under Tools/Port --> select /dev...(Arduino Explora)

Blinking LED

Under File/Examples/Explora/Beginners choose "ExploraBlink"

Modifications

0) Watch lights...
1) Change from 6 colors to only the 3 primary colors by "commenting out" the yellow, cyan, magenta entries...
2) Change the intensity of the red LED...255, 128, 64...
3) Change the duration of the LED...2000 ms as opposed to 1000 ms...

ExploraMusic

0) Play with slider and button...
1) Comment out all of the code, then add:
Esplora.tone(340);
delay(1000);
Esplora.tone(440);
::::delay(2000); 
2) Can you play a song?