Go Down

Topic: 12/12 Led timer? (Read 7 times) previous topic - next topic


This is the schematic, Each LED you see in the schematic is actually 15 leds. What should I Do to make it brighter?


So what do you guys think?



There is a limit to how much light 30 LEDs will make, but its possible they can be brighter w/out damage.
LEDs have a forward voltage rating, you should not exceed this voltage, which is why you. usually see a resister on each LED. The Arduino should put out 5vs at 40ma per pin, and each LED probably uses 20ma at around 3v. Pin 13 should be resistered, so that you can hook up an LED, w/out resister. If you use a different pin, you probably want to put some resister on your LED, or it may burn up. You can calculate what resister

Heres a wesite that helps you figure out what resister to use with your LEDs. Then use those resisters, and use a different pin on the arduino (13 is resistered, so use 9, or whichever one you like), then change the code to whichever pin you use.


If you hooked up an LED directly to the 9volt battery, it should have burned up almost instantly.


Code: [Select]
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);   

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(43200000);               // wait for 12 hours
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(43200000);               // wait for 12 hours

How can I use 2 pins at once then? IN example pin 13 and 12 are running the same way.

Go Up