pins go high during start & download ??
Lloyds
Posts: 75
Hi,
I am using a ZVN4206AV MOSFET to drive a relay. I have a 10k resistor between the gate of the mosfet and the stamp pin. When the stamp pin goes high, it turns on the mosfet and energizes the relay.
The problem is that during program download and also when I initially turn the power to the stamp on, the stamp pin seems to go high and energize the relay.
Do the stamp pins normally go high during power up?
Thanks for any help.
Lloyd
I am using a ZVN4206AV MOSFET to drive a relay. I have a 10k resistor between the gate of the mosfet and the stamp pin. When the stamp pin goes high, it turns on the mosfet and energizes the relay.
The problem is that during program download and also when I initially turn the power to the stamp on, the stamp pin seems to go high and energize the relay.
Do the stamp pins normally go high during power up?
Thanks for any help.
Lloyd
Comments
Thanks for the quick responses.
I put a 10k (maybe I'll try a higher value) resistor from the gate to ground and it prevented the unwanted turn-on during power-up. I will do some more investigating to make sure it still turns on and off as I have it programmed.
I had tried putting a line of code at the beginning of the program to drive the pin LOW, but the mosfet was actually turning on while the program was downloading to the stamp. As soon as the program finished downloading and it read the code, the mosfet would turn off, but by then it was too late.
I have run into this condition before of pins floating between high and low unpredictably if not properly pulled high or low. Maybe this time I will remember.
Thanks again,
Lloyd