@Steve :-)
That's some Geni , what's the output ? Can't be fun switching it on at 2AM :-)
Mine has electric start :-) will try get a pic up this week for you :-)
Great idea !
I suppose component count and power draw are two reasons why I would go with the sensor.
Searching the forum for lamp-dimmer and mains detect shows huge amounts of info for this kind of thing.
As per quite a few app notes and posts I have seen, a single resistor can be used from LIVE and directly into a PIC pin as a zero-crossing sensor.
OR you can use the opto-isolator.
All that remains then is to check that you are getting a pulse on the pin.
I would like to try the opto-isolator option first but am unsure as to whether to use PULSIN or COUNT (or another method) to check the pulse and what that little line of code should look like.
Kind regards
Dennis
Bookmarks