jeinzi
@jeinzi@discuss.tchncs.de
- Comment on Problem with switching a laser driver 3 weeks ago:
They are only a solution if you use a gate voltage higher than 5V, in which case NPN would probably also work. Try to use maybe 6V or 7V to control the NPN base and see if that improves your situation. But as that voltage is impractical to get from the Arduino outputs, PNP/PMOS would be another solution.
Edit: If I understand your issue correctly, then your choice of transistor is not the problem. The problem is that you are forcing them to be less conductive than they could. If a p and an n doped region touch, they form a diode. In an NPN transistor, you therefore have a diode between base and emitter, which is also indicated by the arrow in the transistor symbol. A silicon diode drops around 0.7V, and because its steep I/V curve, that’s more or less independent of the current passing through it. When you apply 5V to the base (ignoring the small drop over the base resistor), you’re forcing the emitter to sit at around 4.3V. But that would not be possible if the transistor was fully conductive, because that then the emitter would be shorted to the collector sitting at 5V. The transistor has no choice but to increase its resistance between collector and emitter in such a way that it also drops 0.7V there, ultimately limiting current through your laser. The same would happen with a FET, just that the voltage drop between source and drain would be determined by its threshold voltage, not the 0.7V diode drop of the NPN.
- Comment on Problem with switching a laser driver 3 weeks ago:
The Arduino Nano uses 5V logic, so PNP/PMOS should work.
- Comment on Problem with switching a laser driver 3 weeks ago:
I don’t know much about lasers. Also, I don’t entirely understand your schematic. What is connected to J5 and J6?
That being said, my first thought is: Why you are using an NPN transistor for high-side switching? I would try switching it out for a PNP. If that still does not work, then a p-channel MOSFET. There are more than enough FETs btw that don’t need any external driver for use with an Arduino, or even with 3.3V systems.