Relay acting screwy

Status
Not open for further replies.
TillEulenspiege:
Thanks I will try that circuit now.

spuffock:
There is already a capacitor accross the motor brushes of the motor, but the old motor (which worked perfectly) did not have one.

I will try putting a capacitor across the pics power rail.

I only have 10nf, will that produce the same effect?


Thanks to all who have helped so far
 
M3S90 said:
Try a 2k pull down resistor between the pic and the 1k resistor.
Yup That was my first inclination. IIRC the PIC I/Os are tri-state which means they float unless active. Don't know the logic convention I think it's active on ( Pos logic ). Don't use a 2k tho use a 10k after the 1k.
 
you don't need a pull down on a pic...
if the pin is declared an output it can source AND sink....

if the pin is floating then he made a software error...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…