Hello, maybe stupid, but anyone has an idea, how to cheap and simply drive the AC swith - 220 VAC? I am using relay but maybe there is a simplier and cheaper way using triac or something like this? Thanks for the response...
Hello, maybe stupid, but anyone has an idea, how to cheap and simply drive the AC swith - 220 VAC? I am using relay but maybe there is a simplier and cheaper way using triac or something like this? Thanks for the response...
Triac and optocoupler do the job.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
we don't know your current requirement and current schematic, but let's say you interface a PIC to a Triac, i would suggest you to use an optocoupler in between. Something like MOC3011, MOC3022, or whatever else with triac output. OPen it's datasheet and you'll find some basic schematic in.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Yes if you drive inductive and you don't use Snuberless Triac![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
go to www.mouser.com
Take a look at this part no. G3NE-210T-US-DC5
There are a whole series of optically isolated solid state relays that can do the job directly from the output of a pic.
This one takes about 20ma of drive at 5v and can safely switch 220VAC at 5 amps. It cost about $12
12$ it is quite expensive in comparison with relay, which cost 1 - 2 $.
A bit overly complicated, not to mention more expensive than your option, but does provide almost perfect isolation..........
I took a PIC, a servo, and a standard household light switch....
Drilled a hole thru the light switch 'handle', connected it to the servo with a length of plastic, connected the servo to the PIC, wrote some software to poll a serial input, and run the servo as required.
Again, not cheap, but does allow for a 3-5v signal to switch a high voltage at a current only limited by the switch itself. And I stored the latest switch position in eeprom in case the PIC reset itself for some odd reason...
Small battery pack of AAA's, small wall wart style for charging the battery pack, very low current charging, blah blah blah...
At any rate, works like a champ.
Solid state relay works well - and can be had for around £2 a pop off flea-bay.
I used 8 in a disco light project a year or so ago, and you can drive them direct from post PICs. The ones I used are rated at 4 Amps at 240 V, and were PCB mounted, and coped with switching 200w of spot lights with ease
Bookmarks