Go Down

Topic: Arduino Nano USB connection with external power (Read 3684 times) previous topic - next topic

kustom

I've decided to use 12V power supply in my project, however, Arduino needs to be connected to PC aswell. What is the procedure for this? It is a MIDI controller so the board needs to talk with PC. I am planning on connecting +12V into Vin pin and ground into one of GND pins. I guess the USB connection needs only TX/RX then?

cmiyc

#1
Feb 02, 2013, 06:51 pm Last Edit: Feb 02, 2013, 07:01 pm by James C4S Reason: 1

I've decided to use 12V power supply in my project, however, Arduino needs to be connected to PC aswell. What is the procedure for this? It is a MIDI controller so the board needs to talk with PC. I am planning on connecting +12V into Vin pin and ground into one of GND pins. I guess the USB connection needs only TX/RX then?

If you plug them both in, the auto-selector will choose Vin for power.  USB communication will work fine. See Below.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

retrolefty



I've decided to use 12V power supply in my project, however, Arduino needs to be connected to PC aswell. What is the procedure for this? It is a MIDI controller so the board needs to talk with PC. I am planning on connecting +12V into Vin pin and ground into one of GND pins. I guess the USB connection needs only TX/RX then?

If you plug them both in, the auto-selector will choose Vin for power.  USB communication will work fine.


On a Nano board? I believe a Nano uses simply two diodes for voltage selection, so the higher voltage either from the on-board voltage regulator or the USB +5vdc will be the one supplying the current.
No?

Lefty

cmiyc


On a Nano board? I believe a Nano uses simply two diodes for voltage selection, so the higher voltage either from the on-board voltage regulator or the USB +5vdc will be the one supplying the current.
No?
You're right, I missed that it was a Nano.


I've decided to use 12V power supply in my project, however, Arduino needs to be connected to PC aswell.

Will the PC always be connected when in use?  If so, there's no reason to run the 12V through the Arduino in the first place.

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

kustom


If so, there's no reason to run the 12V through the Arduino in the first place.


It's because I use lot of stuff - 6 4021 registers with 48 button inputs, 4 74HC595 registers with 27 leds, 5 4051 multiplexers with 31 potentiometer and one LM324 comparator to read the data from 2 rotary encoders.

cmiyc


It's because I use lot of stuff - 6 4021 registers with 48 button inputs, 4 74HC595 registers with 27 leds, 5 4051 multiplexers with 31 potentiometer and one LM324 comparator to read the data from 2 rotary encoders.

Yes again, you don't need to run the 12V through the Arduino.  Use a separate voltage regulator to power all of that hardware with 12V.  Then let the Arduino be powered by USB.  Just make sure to connect your grounds.

How much current are the LEDs going to draw?  Even at 20mA each, that's over 500mA.  You're going to have a hard time using the on-board regulator to provide that much current, especially with 12V in.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

kustom



It's because I use lot of stuff - 6 4021 registers with 48 button inputs, 4 74HC595 registers with 27 leds, 5 4051 multiplexers with 31 potentiometer and one LM324 comparator to read the data from 2 rotary encoders.

Yes again, you don't need to run the 12V through the Arduino.  Use a separate voltage regulator to power all of that hardware with 12V.  Then let the Arduino be powered by USB.  Just make sure to connect your grounds.


Do you mean that I should use lm7805 regulator connected to those 12V?

How much current are the LEDs going to draw?  Even at 20mA each, that's over 500mA.  You're going to have a hard time using the on-board regulator to provide that much current, especially with 12V in.


LEDs need to be very dim so there is 1kOhm resistor on each.

Go Up