Arduino

Download software for your personal computer.

Getting Started with Arduino (Banzi, pdf)

DIGITAL INPUT, DIGITAL OUTPUT

Digital input/output means ‘0 or 1,’ like on or off.

Do the exercises in lesson two: An online tutorial. Be sure to include a resistor in each LED circuit.

Figure out how to connect two LEDs. You can refer to lesson three in the link above.

Edit your sketch so that the a LED will stay on, and figure out how to add a push botton on/off switch.

Use a throw switch to toggle between two LEDs. If available, replace the throw switch with a potentiometer.

ANALOG INPUT, DIGITAL OUTPUT

Analog input can vary between 0 and 1023. The value depends on the input source: heat, light, sound, motion, etc. Analog output can have a value of 0 to 255.

Attach an analog sensor to an LED and modify the ‘Blink’ sketch so that the blink rate will be determined by the analog sensor. Refer to pg. 65 in the “Getting Started” text linked above.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s