Pages: [1]   Go Down
Author Topic: 3 Volts 5 Volts for the Arduino DUE  (Read 1109 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 97
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good afternoon
I'm new to this world of microcontrollers
Got the Arduino Due, it opens doors to me if you want to make a more ambitious project.
I have a doubt the arduino only provides 3 Volts which way to get to have 5 volts output??

Greetings
Logged

Earth
Offline Offline
Sr. Member
****
Karma: 14
Posts: 326
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The Due provides both 5V and 3.3V. However, the ARM Cortex chip that forms the processing system of the Due is 3.3V ONLY. If you use the 5V power you must be sure it doesn't make its way back to any of the pins connected to the cortex chip. 5V will fry the cortex and you will be sad.

If you are asking how you could switch 5V to something external: Use a small relay or switch the ground of the external device instead and use a NPN transistor.
Logged

Offline Offline
Edison Member
*
Karma: 29
Posts: 2354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have my due sitting in the draw for this reason lol... i tested it, it worked... in the draw it went lol
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 97
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the NPN transistor should I use for this case?
To transform an output of 3.3 Volts 5 Volts about?
Logged

Earth
Offline Offline
Sr. Member
****
Karma: 14
Posts: 326
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you use an NPN transistor or the equivalent mosfet then you'd be switching the ground to your external device. The device would get +5V power all of the time and its ground would be interrupted by the transistor. You set whichever Due output port you connected the transistor to to HIGH when you want power to flow in the other device and LOW when you don't. For instance:

digitalWrite(53, HIGH); //turn on external device
digitalWrite(53, LOW); //turn it off.

But, this requires that you properly hook up a transistor to the pin. This done through a series resistor. This all really gets into turf that isn't particularly on-topic for the Due discussion board. What is relevant is that you can do this to switch 5V power from a 3.3V device like the Due and it won't hurt anything.
Logged

Pages: [1]   Go Up
Jump to: