Hardware Required:
|
Schematic:
Note: most Arduino modules have an LED connected to D13 already. Your LED should blink at the same time it does. |
Project Steps:
- Insert the LED into the breadboard
- Connect a wire between the ground and the short pin of the LED
- Connect a 330 ohm resistor between the Digital pin 13 (D13) on the Arduino and the long-leg of the LED
- Connect the Arduino unit to your computer with the USB cable
- Open the Project1 sketch into the Arduino software and upload it to your module
Things to try:
- Code: Change the blink rate from 1 second to 3 seconds
- Code: Change the blink rate to "strobe" at 50 times per second.
- Can you change it to blink at 60 times per second?
- LED: What happens if you reverse the LED (resistor & short-leg to D13, long-leg to GND)?
- LED: What happens if you reverse the LED but connect the long-leg to +5V?
- Code & LED - Change the sketch to use an LED connected to D7 instead of D13
|
Stayed tuned for more Arduino workshops posted here!
For more assistance contact Technical Support
here.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.