Hi Melanie,
Thanks for the advise. A reed relay disconnecting the input will do the job. I got one from local electronics supplier. It is 100v 0.5A 500Om coil. I tried to drive it directly of Pic’s pin and it works well. I attached the oscillogram.
Hi Melanie,
Thanks for the advise. A reed relay disconnecting the input will do the job. I got one from local electronics supplier. It is 100v 0.5A 500Om coil. I tried to drive it directly of Pic’s pin and it works well. I attached the oscillogram.
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