(Created page with "build these examples on your breadboard (and use the code examples provided in the links if you want.) Then try to create arduino sketches which do something different than the e...") |
No edit summary |
||
Line 13: | Line 13: | ||
http://fritzing.org/projects/digital-input-button/ <br> | http://fritzing.org/projects/digital-input-button/ <br> | ||
turn the LED on when pressing the button. Then turn the LED off when the button is pressed again. Note: The button bounces - use the delay function to debounce the button. | turn the LED on when pressing the button. Then turn the LED off when the button is pressed again. Note: The button bounces - use the delay function to debounce the button. | ||
===When you completed the above=== | |||
http://fritzing.org/projects/analog-input-to-servo/ | |||
The servos provided may cause your arduino board to crash. Use a capacitor in parallel to the servo's GND and 5V power supply - mind the polarity of the capacitor! (your capacitor has a white "minus" mark.) |
Revision as of 13:24, 17 November 2011
build these examples on your breadboard (and use the code examples provided in the links if you want.) Then try to create arduino sketches which do something different than the example sketches there.
LED + Potentiometer:
http://fritzing.org/projects/analog-inputoutput/
write an Arduino-Sketch which lets the LED blink in different speed, depending on the position of the potentiometer. Use the serial connection to monitor the values of the analog input.
Light dependent Resistor
http://fritzing.org/projects/photocell/
Use the same sketch as before, but use an LDR instead the potentiometer.
Let use the serial communication to see what values you receive, select different resistors and try again. Also measure the resistance of the LDR and compare to the resistors you used.
Buttons and switches
http://fritzing.org/projects/digital-input-button/
turn the LED on when pressing the button. Then turn the LED off when the button is pressed again. Note: The button bounces - use the delay function to debounce the button.
When you completed the above
http://fritzing.org/projects/analog-input-to-servo/ The servos provided may cause your arduino board to crash. Use a capacitor in parallel to the servo's GND and 5V power supply - mind the polarity of the capacitor! (your capacitor has a white "minus" mark.)