Thursday, December 20, 2012

Arduino Workshop - Project 01: Blinking LED


Hardware Required:



Schematic:



Schematic:

arduino


Note: most Arduino modules have an LED connected to D13 already. Your LED should blink at the same time it does.

Project Steps:

  1. Insert the LED into the breadboard
  2. Connect a wire between the ground and the short pin of the LED
  3. Connect a 330 ohm resistor between the Digital pin 13 (D13) on the Arduino and the long-leg of the LED
  4. Connect the Arduino unit to your computer with the USB cable
  5. 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.