-1

this my first time asking questions to electronic community. So, I hope you ll help me. My question goes like this: i have arduino Due board connected to this schematic enter image description here( https://i.stack.imgur.com/W685e.png ) . i used small program to verify what voltage i can get. when i did the measurement i found that i have on : HIGH 2.5 V ( and that's should be normal ) but on LOW i read 1.6 V . i can't understand why i am having 1.6V??

Eugene Sh.
  • 10,041
  • 2
  • 27
  • 41

1 Answers1

1

Since you're only doing level conversion one way, try something simpler:

schematic

simulate this circuit – Schematic created using CircuitLab

You do have to program your arduino to output a '1' when you want a '0' on the 2.5-V side and vice versa, but that is normally not difficult to do.

You could also use a 1-gate logic chip such as 74LVC1G07 to get non-inverting behavior and more guarantees about the circuit performance, at a slightly higher cost than the discrete transistor version.

The Photon
  • 129,671
  • 3
  • 164
  • 309
  • Ahh I understand now but just a simple question. What if the power supply isn't 2.5 what if I use 3.3 v – Haykel Mhadhbi Jul 20 '17 at 19:27
  • If you want 2.5 V out, but only have a higher-voltage supply available, you could make a resistor divider that's thevenin equivalent to 2.5 V w 10 kohms (or whatever value you want). For example, 3.3 V with a resistor divider of 41.3k and 13.2k. – The Photon Jul 20 '17 at 20:12