Electronic – arduino – Converting Arduino Due 3.3V digital pin to 5V

arduinodigital-logictransistors

I'm a real novice so please bear with my terminology

I've got an Arduino Due which outputs 3.3V signal when digital pin is set to HIGH. I have a driver that needs to receive at least 5V from this digital pin. I've been googling all day and it sounds like I need to amplify this 3.3V signal using a transistor but I'm too novice to really appreciate how to implement a simple amplifying circuit. Can anyone help me out?

Thanks in advance!

Best Answer

This is a simple level shifter where speed is not important and current gain is not required. It requires only one resistor and a single TO-92 or SOT-23 (eg. 2N7002) transistor:

schematic

simulate this circuit – Schematic created using CircuitLab

enter image description here

As you can see, the rise time is a bit slow, and there is very little drive capability because of R1, and sink current is limited by the GPIO, but it will work into a CMOS input or similar.

For more stringent requirements, I recommend a voltage translator chip. You can do a parametric search at a distributor and find many kinds that can translate from one voltage to or from another.