switching high inductance loads
Hi there.
I have been trying to solve my resetting pic problem for too long now.
I am using porta.0 of a pic16f872 to drive the coil of a dpdt relay (via transistor of course!). The relay is to switch polarity to some solenoids before they are operated using some ln2803s. So the pic sends a pulse to the coil. the coil switches the polarity to the solenoids and then back again ready for them to be driven by the ln2803. As soon as I connect a solenoid the pic resets when the pulse occurs. Even with the solenoid driven from a seperate power supply. Without a load it usually works fine and the relay is clicking over as expected. I suppose it is some sort of voltage flying around. Sometimes when the pic resets the outputs come on high which causes the relay to switch over and the thing starts chattering. The pic then gets hot. I have lost a pic through this problem and I don't want to lose another.
Any ideas?