--0__=dZqBsbyv0aQtxlAeIw5wdN0Ozcws35FRnmGTk8VFbolmMqmu9Ozd6p3V Content-type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Surely (and dont call me Shirley) you always hook up mains supplies to PCs and such like by using an appropriate "isolating technician" ? They always provide both an excellent visible indication (50 Hz jive), not to mention an interesting smell when something has gone amiss. Dan (Embedded Michael Rigby-Jones image moved 07/12/99 12:53 to file: pic12680.pcx) Please respond to pic microcontroller discussion list To: PICLIST@MITVMA.MIT.EDU cc: (bcc: Dan Lloyd/GBPTD/ABB) Subject: Re: [OT]? Lighting Controllers Security Level:? Internal > look for light dependant resistor optoisolator...........an l.e.d and a > resistor in the same package..................... > firing the led from the pic in pwm style produces a full range of > resistor > output values...........then connect the > resistor in to say a triac circuit to control the ac voltave...........ac > light dimmer............for just an idea.......... > you can make you're own if you cant find one.........green led........and > a > small cds photocell................ > use black 1/2 inch diameter heat shrink and > wall........la..........an > ldr...........just a thought.........tim > You certainly enjoy using the period key don't you Tim :o) You don't actually need to use an optoisolator, there have been several dimmer circuits that have run directly from the mains with no isolation at all. The mains voltage is fed directly to a PIC input via a current limiting resistor to detect zero crossing points. However, if the dimmer is going to be wired to someones PC for control then obviously this little scheme has it's drawbacks. (like electrocution). Mike > -----Original Message----- > From: Mark Boyce > To: PICLIST@MITVMA.MIT.EDU > Date: Tuesday, December 07, 1999 5:00 AM > Subject: [OT]? Lighting Controllers > > > >Hi all, > > > >Hope this isn't too off topic for people :-) > > > >I need to be able to switch/dim some lighting from a pic > >controlled system. > > > >The actual target lighting will be pairs of 12v halogen spots > >such as you find in most low-voltage desk lamps or alike. > > > >The circuit I'm after should produce either 0<->12v or > >0 <-> 240v on the output and take something I can connect > >to a pic on the other side. > > > >Software is my game with a little bit of 'plug the black boxes > >together' digital electronics so I'm out of my depth here :-) > > > >Does anyone have any pointers/urls/circuits/tips/etc that might > >help ? > > > >Cheers, > > > >Mark > > > >-- > >"What contemptible scoundrel stole the cork from my lunch ?" > > - W. C. Fields --0__=dZqBsbyv0aQtxlAeIw5wdN0Ozcws35FRnmGTk8VFbolmMqmu9Ozd6p3V Content-type: text/html; name="att1.htm" Content-Disposition: attachment; filename="att1.htm" Content-transfer-encoding: base64 Content-Description: Internet HTML PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDMuMi8vRU4iPg0KPEhUTUw+ DQo8SEVBRD4NCjxNRVRBIEhUVFAtRVFVSVY9IkNvbnRlbnQtVHlwZSIgQ09OVEVOVD0idGV4dC9o dG1sOyBjaGFyc2V0PXVzLWFzY2lpIj4NCjxNRVRBIE5BTUU9IkdlbmVyYXRvciIgQ09OVEVOVD0i TVMgRXhjaGFuZ2UgU2VydmVyIHZlcnNpb24gNS41LjI0NDguMCI+DQo8VElUTEU+UkU6IFtPVF0/ IExpZ2h0aW5nIENvbnRyb2xsZXJzPC9USVRMRT4NCjwvSEVBRD4NCjxCT0RZPg0KPEJSPg0KPFVM Pg0KPFA+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj5sb29rIGZvciBsaWdodCBkZXBlbmRhbnQg cmVzaXN0b3Igb3B0b2lzb2xhdG9yLi4uLi4uLi4uLi5hbiBsLmUuZCBhbmQgYTwvRk9OVD4NCjxC Uj48Rk9OVCBTSVpFPTIgRkFDRT0iQXJpYWwiPnJlc2lzdG9yIGluIHRoZSBzYW1lIHBhY2thZ2Uu Li4uLi4uLi4uLi4uLi4uLi4uLi48L0ZPTlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFs Ij5maXJpbmcgdGhlIGxlZCBmcm9tIHRoZSBwaWMgaW4gcHdtIHN0eWxlIHByb2R1Y2VzJm5ic3A7 IGEgZnVsbCByYW5nZSBvZiByZXNpc3RvcjwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIgRkFDRT0i QXJpYWwiPm91dHB1dCB2YWx1ZXMuLi4uLi4uLi4uLnRoZW4gY29ubmVjdCB0aGU8L0ZPTlQ+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QUNFPSJBcmlhbCI+Jmd0O2hlbHAgPzwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIg RkFDRT0iQXJpYWwiPiZndDs8L0ZPTlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj4m Z3Q7Q2hlZXJzLDwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIgRkFDRT0iQXJpYWwiPiZndDs8L0ZP TlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj4mZ3Q7TWFyazwvRk9OVD4NCjxCUj48 Rk9OVCBTSVpFPTIgRkFDRT0iQXJpYWwiPiZndDs8L0ZPTlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZB Q0U9IkFyaWFsIj4mZ3Q7LS08L0ZPTlQ+DQo8QlI+PEZPTlQgU0laRT0yIEZBQ0U9IkFyaWFsIj4m Z3Q7JnF1b3Q7V2hhdCBjb250ZW1wdGlibGUgc2NvdW5kcmVsIHN0b2xlIHRoZSBjb3JrIGZyb20g bXkgbHVuY2ggPyZxdW90OzwvRk9OVD4NCjxCUj48Rk9OVCBTSVpFPTIgRkFDRT0iQXJpYWwiPiZn dDsmbmJzcDsmbmJzcDsmbmJzcDsmbmJzcDsgLSBXLiBDLiBGaWVsZHM8L0ZPTlQ+DQo8L1A+DQo8 L1VMPg0KPC9CT0RZPg0KPC9IVE1MPg0K --0__=dZqBsbyv0aQtxlAeIw5wdN0Ozcws35FRnmGTk8VFbolmMqmu9Ozd6p3V Content-type: text/html; name="pic12680.pcx" Content-Disposition: attachment; filename="pic12680.pcx" Content-transfer-encoding: base64 Content-Description: Internet HTML CgUBCAAAAABQAB4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAABUQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAADpD9UPyg/FD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