Monday, September 24, 2007

Lab 2 - Digital In & Out

  • Two LEDs (Red/ Yellow)
  • One Momentary Push-button Switch
  • Voltage Regulator
  • Resisters
At first, I was a little careless for resister so didn't get the right amount of light from LED. Very soon I figured that I need 'lighter' resister which is 97.5 Ohms one and....Voila!


Second mistake I made: didn't connect digital input pin for a switch. (on aruduino: int switchPin = 2),then corrected that error.



No comments: