Skip to main content
Fix typos
Source Link
per1234
  • 4.2k
  • 2
  • 23
  • 43

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, ..."), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enoughtenough power. But Ifif I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V12 V power supply.

I did managedmanage to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply, but only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

  • The LEDs are 3.4V 20mA4 V 20 mA.
  • The power supply I'm planning to use is 12V12 V.

I'm planning to have this start light - which is built in its own casing - use its own power supply, while the ArduinioArduino is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment:

Friting diagram of Arduino and LEDs

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V12 V power supply since they're all are going to be turned on simultaneously.

My question is how I can get both the 5 red LEDs, that uses separate pins, to get powered from the external power supply as well?

Since all the LEDs are built in its own casing, apart from the microcontroller because that also handles other stuff...

Did that make any more sense at all?

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, ..."), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enought power. But If I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V power supply.

I did managed to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply, but only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

  • The LEDs are 3.4V 20mA.
  • The power supply I'm planning to use is 12V.

I'm planning to have this start light - which is built in its own casing - use its own power supply, while the Arduinio is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment:

Friting diagram of Arduino and LEDs

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V power supply since they're all are going to be turned on simultaneously.

My question is how I can get both the 5 red LEDs, that uses separate pins, to get powered from the external power supply as well?

Since all the LEDs are built in its own casing, apart from the microcontroller because that also handles other stuff...

Did that make any more sense at all?

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, ..."), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enough power. But if I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12 V power supply.

I did manage to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply, but only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

  • The LEDs are 3.4 V 20 mA.
  • The power supply I'm planning to use is 12 V.

I'm planning to have this start light - which is built in its own casing - use its own power supply, while the Arduino is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment:

Friting diagram of Arduino and LEDs

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12 V power supply since they're all are going to be turned on simultaneously.

My question is how I can get both the 5 red LEDs, that uses separate pins, to get powered from the external power supply as well?

Since all the LEDs are built in its own casing, apart from the microcontroller because that also handles other stuff...

Did that make any more sense at all?

Removed thanks as per SE policy, fixed minor typos and added image description
Source Link
Greenonline
  • 3.1k
  • 7
  • 34
  • 48

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, "..."), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enought power. But If I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V power supply.
I

I did managed to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply. But, but only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

The LEDs are 3.4V 20mA
The powersupply I'm planning to use is 12V.

  • The LEDs are 3.4V 20mA.
  • The power supply I'm planning to use is 12V.

I'm planning to have this start light - which is built in its own casing - use it'sits own power supply, while the Arduinio is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

Thanks in advance...

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment: enter image description here

Friting diagram of Arduino and LEDs

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V power supply since they're all are going to be turned on simultaneously..

My question is how I can get both the 5 red LEDs, that uses sepparateseparate pins, to get powered from the external power supply as well? Since

Since all the LEDs are built in its own casing, apart from the microcontroller because that also handles other stuff...

Did that make any more sense at all?

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, "), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enought power. But If I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V power supply.
I did managed to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply. But only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

The LEDs are 3.4V 20mA
The powersupply I'm planning to use is 12V.

I'm planning to have this start light - which is built in its own casing - use it's own power supply, while the Arduinio is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

Thanks in advance...

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment: enter image description here

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V power supply since they're all are going to be turned on simultaneously..

My question is how I can get both the 5 red LEDs, that uses sepparate pins, to get powered from the external power supply as well? Since all the LEDs are built in its own casing, apart from the microcontroller because that also handles other stuff...

Did that make any more sense at all?

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, ..."), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enought power. But If I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V power supply.

I did managed to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply, but only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

  • The LEDs are 3.4V 20mA.
  • The power supply I'm planning to use is 12V.

I'm planning to have this start light - which is built in its own casing - use its own power supply, while the Arduinio is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment:

Friting diagram of Arduino and LEDs

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V power supply since they're all are going to be turned on simultaneously.

My question is how I can get both the 5 red LEDs, that uses separate pins, to get powered from the external power supply as well?

Since all the LEDs are built in its own casing, apart from the microcontroller because that also handles other stuff...

Did that make any more sense at all?

added 3 characters in body
Source Link
ThomasK
  • 131
  • 2
  • 2
  • 5

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, "), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enought power. But If I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V power supply.
I did managed to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply. But only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

The LEDs are 3.4V 20mA
The powersupply I'm planning to use is 12V.

I'm planning to have this start light - which is built in its own casing - use it's own power supply, while the Arduinio is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

Thanks in advance...

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment: enter image description here

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V power supply since they're all are going to be turned on simultaneously..

My question is how I can get both the 5 red LEDs, that uses sepparate pins, to get powered from the external power supply as well? Since all the LEDs asare built in its own casing, apart from the microcontroller sincebecause that also handles other stuff...

Did that make any more sense at all?

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, "), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enought power. But If I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V power supply.
I did managed to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply. But only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

The LEDs are 3.4V 20mA
The powersupply I'm planning to use is 12V.

I'm planning to have this start light - which is built in its own casing - use it's own power supply, while the Arduinio is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

Thanks in advance...

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment: enter image description here

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V power supply since they're all are going to be turned on simultaneously..

My question is how I can get both the 5 red LEDs, that uses sepparate pins, to get powered from the external power supply as well? Since all the LEDs as built in its own casing, apart from the microcontroller since that also handles other stuff...

Did that make any more sense at all?

I'm totally new to Arduino, and microcontrollers for that matter, so I'm having a hard time figuring out how to connect LEDs to multiple pins, but using a common external power supply...

I've created a starting light that's connected to pin A0-A4 + A5 (turn all LEDs on). I hooked each LED to its own pin directly (A0-A4) for the countdown part ("5, 4, 3, 2, 1, "), and then 5 additional LEDs to pin A5 ("GO!").

For the countdown part, when only one LED is on at a time, there's enought power. But If I were to light them all up at the same time, there won't be. So I figured that I should put a relay into the mix for that part, and have them draw power from an external 12V power supply.
I did managed to make the relay work in the circuit - switching all LEDs on/off, and getting power from the external power supply. But only through one pin.

I'm not sure how to have the start lights use an external power supply, and at the same time get signals from multiple pins. How do I do that?

I'm sorry if my description is unclear. So please let me know if you need more information.

The LEDs are 3.4V 20mA
The powersupply I'm planning to use is 12V.

I'm planning to have this start light - which is built in its own casing - use it's own power supply, while the Arduinio is running of the power from USB. So all I want to do, is to have the signals sent over to this starting light unit, and not power and ground.

Thanks in advance...

UPDATE:

Here's a quick overview of how I'm testing this whole thing at the moment: enter image description here

The 5 red countdown LEDs (red) is getting powered by the board itself through the pins, while the 5 "GO!" LEDs (green) are getting powered from a 12V power supply since they're all are going to be turned on simultaneously..

My question is how I can get both the 5 red LEDs, that uses sepparate pins, to get powered from the external power supply as well? Since all the LEDs are built in its own casing, apart from the microcontroller because that also handles other stuff...

Did that make any more sense at all?

added 689 characters in body
Source Link
ThomasK
  • 131
  • 2
  • 2
  • 5
Loading
Tweeted twitter.com/#!/StackArduino/status/534660192642686976
Source Link
ThomasK
  • 131
  • 2
  • 2
  • 5
Loading