So basically I made a program and a circuit.
uhh... so keep reading!
Remove these ads by
Signing UpStep 1Get the parts.
- an arduino duemilanove (anything that is roughly the same (size, shape , pin layout, program support, etc.))
- the program (you can copy it from the text here, or if my link works)
- header connectors, that fit in any breadboard, arduino ,etc. (I got them @ frys)
- 5 red leds- at ~3V (I only had white 5mm) -------- Do not get the giant red "super bright" 1cm long leds.
They are too big and are less powerful, trust me I have them right here and the white ones in this instructable are much much better, and brighter.
- 220 ohm resistor (I used 330 ohm, close enough) ------ Actually 100 ohm ones are the best.
- a circuit board or peg board i used Radio Shack Dual PC board 276-148
- wire (maybe, i bent the pins of the leds, so I didnt need any)
- A computer that can program your arduino (duh!)
- Solder + Iron
Okay so lets build it!
| « Previous Step | Download PDFView All Steps | Next Step » |














































digitalWrite(pinled1, HIGH);
HIGH ? how much is the voltage and amperage
and how much is LOW
can you controll them with code or you have to do it hardware way ?
Arduino Rocks!
Okay so
HIGH means ON and is 5V at 40milliamps, although some pins have built in resistors so check before you run the program, FYI the one that I have has a resistor on pin 13, but i'm not sure about any others.
LOW means Off... so yeah, it either gives ground or just 0V....
Hope that helps.
--Chris
What type of Arduino are you getting
Good luck with with your arduino
Any questions? Feel free to ask!
Good luck, Select wisely.
Any questions? Feel Free to ask!
So this is the Answer to your question:
As you know, the arduino code goes like this ( the last bit )
void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
What (ledPin, HIGH) does not mean the voltage and power is high, it simply means that The Object you are powering is turned ON.
digitalWrite(ledPin, LOW);
delay(1000);
}
Same with the (ledPin, LOW), Low just simply means that it is turned OFF.
Yea its pretty stupid, but its how it is programmed, Any question? Feel free to ask. In the meantime Have a look at this, it might help you. It will be able to tell you most of the stuff:
http://arduino.cc/en/Reference/HomePage
I will look at the reference when i will get an arduino in my hand ;]
the last question i want to ask is :
Is this c/c++ ?
if yes than can it be used with STL or any other libraries of c/c++