For some reason when using a shift register, to control a MOSFET to run a motor, I can get it to work but then it seems that the MOSFET closes after a few seconds.
I have attached the gate of the MOSFET to a normal I/O pin and held it high to show that it isnt the MOSFET.
My circuit is essentially just the one showed here
with a 595 shift register in between the arduino and gate. As stated, when the gate is connected directly to the I/0 instead of the shift register the circuit works fine.
yes i do, connecting the line between the shift registers h output (the output assoicated with the decimal value 128) and the gate of the MOSFET, and the shared ground line.
Please don't start duplicate threads about this---that's called cross-posting
and wastes everyone's time.
Since you haven't shown us exactly how you've connected up this shift
register we can only guess what the problem is, my guesses are a lack
of decoupling, or noise on the clock line (long wires), or leaving some
of the inputs of the '595 unconnected.