So I have added an LED to my small project and this is working fine.
I have an array of buttons powered by various resistors which is giving me discrete values when doing an analogue Read on A5. I am using these discrete values to drive six 'if' situations. each 'if ' situations does an lcd.print and also activates a motor power pin and a pattern of moves programmed to move to stepper motors ( I am using the stepper.h library).
All is working fine - but I am slightly mystified by the voltages around my MOSFET (IRF520). Here are my observations:
When my power pin (to the gate of my MOSFET) is not active the voltage GND to Gate is 0.06V. This is what I would expect.
When my power pin is active( to the gate of the MOSFET) the voltage is 4.987V. This what I would expect.
Now, when the steppers are active, I am seeing a voltage (+ve of the motor feed to the drain of the MOSFET) of around 6.5 Volts. This is what I would expect.
However, when the steppers are not active, I am still seeing a voltage of 2.6V (+ve of the motor feed to the drain of the MOSFET) . I am seeing a slight dim indication on the stepper control boards.
It seems that the MOSFETs are not completely switching off when no volts are present at the gate??
Now I am quite new to this and this is quite a big step for me. Any help would be appreciated.