Hi there,
I am trying to control my N channel mosfets (fqP30N06L) with a 75hc595 shift register.
I can get the shift register to work with regular small LED's on the outputs with 220ohm resistor just fine.
However I can't get the outputs of the shift register to turn on or off the mosfets.
I tried a 10K ohm resistor tied from the gate to ground and I also tried a 100ohm resistor from the output line of the shift register to the mosfet.
My actual circuit consists of 12V LEDs which I have 12V+ running to and then the negative side of the LEDS connects to the drain of the mosfets. Im powering the arduino separately but have tied all grounds together.
Can anyone offer any guidance on how I can use these shift registers to drive these mosfets? Or do I need different mosfets or something in addition?
Thanks for any help, I'm still just getting into shift registers and controlling high power devices from low power on Arduino.
I attached my circuit diagram.
Here's my arduino code:
// Define Connections to 74HC595
// ST_CP pin 12
const int latchPin = 5;
// SH_CP pin 11
const int clockPin = 4;
// DS pin 14
const int dataPin = 6;
void setup ()
{
// Setup pins as Outputs
pinMode(latchPin, OUTPUT);
pinMode(clockPin, OUTPUT);
pinMode(dataPin, OUTPUT);
}
void loop() {
// Count from 0 to 255 and display in binary
// ST_CP LOW to keep LEDs from changing while reading serial data
digitalWrite(latchPin, LOW);
// Shift out the bits
shiftOut(dataPin, clockPin, MSBFIRST, B00000000); // or B11111111 to turn on leds
// ST_CP HIGH change LEDs
digitalWrite(latchPin, HIGH);
}