Maybe some opto-isolator could help. Is your unit provide the supply to your Sensor? If so, one more possible cause in the basket.
Cancel ambient noise by software... i would never try/trust something like that. Sure good enough for analog reading, but as your PIC seems to Stuck in real world and not on a bench... review your hardware first. Software can't really avoid ground bouncing, back EMF, ... If something like that could be done.. i certainely buy the stuff and change the Meteo with 
You really should think about the zero crossing stuff i stated before. Better chance to reduce noise, AND increase the contactor contacts lifetime.
Last edited by mister_e; - 1st June 2006 at 22:07.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks