Pages: 1 2 [3]   Go Down
Author Topic: 12/12 Led timer?  (Read 6819 times)
0 Members and 1 Guest are viewing this topic.
Grand Rapids Mi
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


* Capture.PNG (41.39 KB, 1116x348 - viewed 26 times.)
Logged

Grand Rapids Mi
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So what do you guys think?
Logged

Grand Rapids Mi
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No replies? Cmon smiley-sad
Logged

Eugene, Oregon
Offline Offline
Sr. Member
****
Karma: 9
Posts: 388
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

http://ledcalc.com/

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


Grand Rapids Mi
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
/*
  Blink
  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.
Logged

Grand Rapids Mi
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anyone??
Logged

Eugene, Oregon
Offline Offline
Sr. Member
****
Karma: 9
Posts: 388
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can actually use many pins at one time. you are using pin 12 for ground, leave that the way it is. Instead of using pin 13, use pin 12, or 11, or 10, or 9...

Here is code configured to use pin 9 instead of 13
Code:
/*
  Blink
  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 = 9;

// 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
}


Here is code for using one LED on pin 13, AND one LED on pin 9.

Code:
/*
  Blink
  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 = 9;

// 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)
  digitalWrite(13, HIGH);
  delay(43200000);               // wait for 12 hours
  digitalWrite(led, LOW);
  digitalWrite(13, LOW);     // turn the LED off by making the voltage LOW
  delay(43200000);               // wait for 12 hours
}
Logged


Eugene, Oregon
Offline Offline
Sr. Member
****
Karma: 9
Posts: 388
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

read this thread...
http://arduino.cc/forum/index.php/topic,127355.0.html
Logged


Grand Rapids Mi
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can actually use many pins at one time. you are using pin 12 for ground, leave that the way it is. Instead of using pin 13, use pin 12, or 11, or 10, or 9...

Here is code configured to use pin 9 instead of 13
Code:
/*
  Blink
  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 = 9;

// 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
}


Here is code for using one LED on pin 13, AND one LED on pin 9.

Code:
/*
  Blink
  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 = 9;

// 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)
  digitalWrite(13, HIGH);
  delay(43200000);               // wait for 12 hours
  digitalWrite(led, LOW);
  digitalWrite(13, LOW);     // turn the LED off by making the voltage LOW
  delay(43200000);               // wait for 12 hours
}

Thanks! Im going to try it like this and see how it goes, Hope I dont have to come back again! Thanks!
Logged

Grand Rapids Mi
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It didnt work, the same problem, I think I might have burnt out my arduino :-/
Logged

Eugene, Oregon
Offline Offline
Sr. Member
****
Karma: 9
Posts: 388
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Its kinda hard to tell from here, but my guess is that you got leds backwards, and they wont light, or hooking up leds to 9v batteries has finally burned them up.

The arduino has built in LEDs that should light up when hooked up to power or USB.
Logged


Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It didnt work, the same problem, I think I might have burnt out my arduino :-/

That's certainly possible. I'm sure one of the electronics gurus will be able to tell you the current requirement of thirty parallel LEDs.
Logged

Valencia, Spain
Offline Offline
Faraday Member
**
Karma: 144
Posts: 5335
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It didnt work, the same problem, I think I might have burnt out my arduino :-/

That's certainly possible. I'm sure one of the electronics gurus will be able to tell you the current requirement of thirty parallel LEDs.

About ten times more than needed to burn an Arduino pin...
Logged

No, I don't answer questions sent in private messages (but I do accept thank-you notes...)

Pages: 1 2 [3]   Go Up
Jump to: