Just remember that if it hasn't got a built-in Diode to protect against back-emf spikes, you must add one otherwise you will run the risk of destroying the PIC pin that the coil is connected to.
Just remember that if it hasn't got a built-in Diode to protect against back-emf spikes, you must add one otherwise you will run the risk of destroying the PIC pin that the coil is connected to.
For multiple inputs you can look at analog switches (e.g. MAX312 and equivalents). These will require a few additional parts to guarantee the power-up conditions (e.g. pull-ups or pull-downs on control lines).
Just found one more solution reading this thread http://www.picbasic.co.uk/forum/show...hlight=jswayze
I put 10k resistor in series with the AD pin and changed the PIC to 12F683 or 16F684 (it doesn’t work with 16HV785).
Bookmarks