Go Down

Topic: 3 Volts 5 Volts for the Arduino DUE (Read 2677 times) previous topic - next topic


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??



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.


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


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


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.

Go Up