Author Topic: DIY AC mosfet solid state relay  (Read 19209 times)

0 Members and 1 Guest are viewing this topic.

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
DIY AC mosfet solid state relay
« on: January 30, 2015, 01:04:58 pm »
Recently I had the idea to make a solid state relay consisting of two anti-serial mosfets. It should be able to handle the grid voltage (230v~ over here). Additionally, it should be able to switch at 20 kHz, because I want to use it as a non-audible lamp dimmer.

The first thing I found was this driver:
http://www.vishay.com/docs/83469/vom1271t.pdf
But... it isn't fast enough for 20 kHz.

Does anyone has some advice on a mosfet driver which can do what I want? 




« Last Edit: January 30, 2015, 02:16:47 pm by necessaryevil »
 

Offline johansen

  • Frequent Contributor
  • **
  • Posts: 995
Re: DIY AC mosfet solid state relay
« Reply #1 on: January 30, 2015, 04:04:09 pm »
To switch a lightbulb at 20khz is not practical due to the inductance in the system.
You need to make an ac buck converter to pull that off, and that will need robust mosfet drivers.

Usually a transformer is used to provide power to an optically isolated gate driver, or the transformer is the gate driver.
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #2 on: January 30, 2015, 06:50:12 pm »
To switch a lightbulb at 20khz is not practical due to the inductance in the system.
You need to make an ac buck converter to pull that off, and that will need robust mosfet drivers.
Usually a transformer is used to provide power to an optically isolated gate driver, or the transformer is the gate driver.

Hmm.. and what about lets say 1-5 kHz? That could that work?
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #3 on: January 30, 2015, 07:07:19 pm »
What about power rating of this light bulb?
Isn't better rectify 230VAC, and limit current  to  needed levels?
Additionally we remove this very bad 100Hz flickering at 50Hz ;)
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Online ajb

  • Super Contributor
  • ***
  • Posts: 2605
  • Country: us
Re: DIY AC mosfet solid state relay
« Reply #4 on: January 30, 2015, 08:33:43 pm »
What about power rating of this light bulb?
Isn't better rectify 230VAC, and limit current  to  needed levels?
Additionally we remove this very bad 100Hz flickering at 50Hz ;)

Incandescent lamps don't flicker at mains frequency--the filament simply can't heat and cool fast enough.  LEDs and fluoros certainly do, but if the OP is trying to dim those there are many more potential challenges.

Anyway, you're not necessarily trying to switch the light bulb at 20KHz.  You'd typically have a pretty big choke on the output of a mains dimmer anyway--even on a triac phase control dimmer.    So you're not exactly going to get a square wave on the output.  With further filtering, you can basically PWM the incoming AC mains and wind up with a sine wave of arbitrary amplitude on the output.  Sort of half way between a phase control dimmer and a frequency drive.  ETC actually produces sine wave dimmers that work on this principle for their Sensor+ high density dimming systems. 

For reference, here's one of ETC's standard 2x20A phase control dimmer modules--each of those toroids is about the size of a hockey puck.  The sine wave modules are twice the size, and presumable much of that is given over to the required filters.
 

Offline johansen

  • Frequent Contributor
  • **
  • Posts: 995
Re: DIY AC mosfet solid state relay
« Reply #5 on: January 30, 2015, 08:38:08 pm »
ajb, i'm talking about the single switch pwm.

single switch pwm could work provided you provide a capacitor across the mains to nulify the incoming inductance, and you reduce the inductance of the lightbulb and the wiring to an absolute minimum.
you then find some MOV's to put across the mosfet ac switch.. and they will get warm, according to I^2L * frequency.
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #6 on: January 30, 2015, 09:22:40 pm »
Incandescent lamps don't flicker at mains frequency--the filament simply can't heat and cool fast enough.
This is 100Hz flickering of  30W incandescent light bulb can be easy detected using even LDR photo resistor and xoscope on PC Linux microphone input ;)

Why 100Hz - it is all about math and real power components -it confused me why it is 100hz, so looked into wiki AC voltage and derived myself how power changes in time  at 230VAC 50Hz  in resistive load ;)

This AC mosfets switch (2xBUZ78 800V) prototype tested with... 9V battery, now is used to triger triac/thyrystors in spot welder:


Checked this VOM1271T  datasheet now and yep it is quite cheap (eg. on digi ), but... it is probably very low output current driver, so no chance fast switch some mosfets :palm:

So, I'd use rather galvanic insulated mosfet driver (I use  6N137 +TC4426 two outputs combined to 3A) and small insulated 12V SMPS and such AC mosfet switch can be very fast  8)

Now experimenting with GDTs  :-/O
« Last Edit: January 30, 2015, 09:32:49 pm by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #7 on: January 31, 2015, 07:02:15 pm »
Well I am just experimenting with the idea and I want to try it with two mosfets. Well, lets say the circuit must go up to 1A. I want to use IRFP460 (I have a bunch of those, hooray dumpster diving) or IRF840 mosfets (I can get those cheap, hooray dump stores).

Using an normal mosfet driver combined with an smps and an optocoupler seems a nice idea. But isn't there any mosfet driver available which already has a built-in isolated power supply and is fast at the same time?? A built-in switched capacitor supply for example?



I did think about using a rectifier + pwm, but I just want to figer out if it's possible to use just two mosfets.
Another nice idea is this circuit, which involves a rectifier, but the output is still AC!http://www.instructables.com/files/deriv/FHT/C19H/HO235ZQY/FHTC19HHO235ZQY.SQUARE3.jpg
Possibly with a smaller value for the R2 resistor.


 

Online tom66

  • Super Contributor
  • ***
  • Posts: 6708
  • Country: gb
  • Electronics Hobbyist & FPGA/Embedded Systems EE
Re: DIY AC mosfet solid state relay
« Reply #8 on: January 31, 2015, 07:09:38 pm »
You could easily derive the necessary 15V for the MOSFETs using something like a capacitive step-down power supply (caution: output is not isolated) and then drive an IR2110 (or similar) through optocouplers from an MCU. Bonus points for using a DC-DC converter module to take the dangerous nonisolated 15V and make it into a nice safe 5V.
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #9 on: January 31, 2015, 07:52:14 pm »
IR2110 (or similar) through optocouplers from an MCU
For example those optoisolated gate drivers: TLP250 1.5A or TLP350 2.5A   should be fine with additional power supply:
http://www.digikey.com/product-detail/en/TLP350%28TP1,F%29/TLP350TP1FCT-ND/949807

Didn't tried supply AC mosfets gate derived from 230VAC mains-no worry about transients from switching 230VAC circuit or grid noise, possible lighting-probably more tricky to protect mosfets gate when such derived PSU for gate from 230VAC mains is taken? ::)

BTW: Capacitive Power Supply Circuit do you mean something like this:
http://www.electroschematics.com/5678/capacitor-power-supply/


or another trick with capacitors voltage divider?


This one is quite interesting :
http://www.electroschematics.com/5935/12volts-transformerless-power-supply/

Lets see if it could be usable as AC mosfets switch gate driver power supply  :-/O
« Last Edit: January 31, 2015, 08:18:02 pm by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #10 on: January 31, 2015, 08:16:14 pm »
You could easily derive the necessary 15V for the MOSFETs using something like a capacitive step-down power supply (caution: output is not isolated) and then drive an IR2110 (or similar) through optocouplers from an MCU. Bonus points for using a DC-DC converter module to take the dangerous nonisolated 15V and make it into a nice safe 5V.

Well, shouldn't the output be isolated? It should be able to drive the gate 5-15v above mains voltage, but if the output is not isolated from that mains...?? Or do I see this the wrong way?
 

Online tom66

  • Super Contributor
  • ***
  • Posts: 6708
  • Country: gb
  • Electronics Hobbyist & FPGA/Embedded Systems EE
Re: DIY AC mosfet solid state relay
« Reply #11 on: January 31, 2015, 09:31:31 pm »
The circuit (last picture) is what I'm referring to and the output is not isolated from mains. The ground reference, negative lead of the output capacitor, will be upto +/-320V away from ground at any given time for a 230V mains circuit.

This low current 15 V supply can then supply IR2110 or similar. (Optoisolated driver will still need power on mains side to drive FETs.)

The high-side FET is usually driven by a simple diode-capacitor charge pump. A boot-strapping circuit.
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #12 on: February 01, 2015, 08:11:13 am »
The circuit (last picture) is what I'm referring to and the output is not isolated from mains.
Unfortunalelly, this 12volt transformerless power supply will not work with AC mosfets switch as well as other non isolated power supply for tricky reason-when AC mosfets switch is ON... there will be very small voltage across such switch (depends on its RDSON and load current), so we have NO AC VOLTAGE to supply gate driver  >:D
Yes, we can fire from time to time and turn on such AC mosfets switch, but depending on power consumption in gate driver and switching PWM duty cycle, we can land with not sufficient current to power gate driver  ::)
For example we want to have such switch ON for unlimited time but we can charge gate driver power supply only when this switch is OFF  ???

Anyway, one could use such 12V transformerless power supply to run oscilator and small SMPS to output insulated voltage needed to power gate driver... or output GDT pulses and drive mosfets gate directly when needed and this is what I'm about to test next week.

Now trying to figure ou thow to protect mosfets gate in GDT against too huge voltage spikes in pulses and idea is to use two 12Vz Zener diodes in series with small resistors and clamp voltage to about 13V  regardless of GDT AC voltage to be below required +/-20V :-\

Update: Looks like it might work-nice close to +/-13V on capacitor (mosfet gate) while transformer ouput (GDT) is 24VAC (12VAC in real setup), but maybe something faster than Zenner diodes will be better  :-/O
« Last Edit: February 01, 2015, 09:33:14 am by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #13 on: February 01, 2015, 12:50:53 pm »
Quote
Why 100Hz - it is all about math and real power components

Because the lightbulb id bi-directional: it heats up on the positive as well as the negative direction. So the light output goes up and down twice every 50hz cycle -> 100Hz in terms of light output.

The only reason it does NOT appear to be flickering is our eyes.
================================
https://dannyelectronics.wordpress.com/
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19525
  • Country: gb
  • 0999
Re: DIY AC mosfet solid state relay
« Reply #14 on: February 01, 2015, 07:12:31 pm »
It's possible to see flicker at 100Hz.

The reason why it's not noticeable with incandescent lamps is the filament doesn't have time too cool down. It's true there will be some 100Hz ripple on the light output but it's not noticeable because the amplitude is too low to be noticeable.
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #15 on: February 01, 2015, 09:04:28 pm »
I've checked also new (bloody because of two those cheeap one basicly shorted home grid 230VAC mains  :wtf:) electronic fluorescent light bulbs like in attachment and its light looks very random when detected with LDR, but didn't made Fourier analysis yet to see its spectrum.

Anyway, I believe those even small pulses of light intensity can be very bad for our sight and now investigate this, so this why I'm interested in cheap methods to stabilize this 230VAC current, provide constant current to such light bulbs (I mean classic old light bulb, because of not sure if those new fluorescent can be powered with 230V(DC)) and compare room full of such AC and DC lights and see how human reacts to such light sources, because of I feel alittle bit tired in this artifical light and this might be this flickering, I guess.
Of course LED lamps are an option, but still we need ensure if they have this current constant, while many cheap ones do not have when looked inside its circuit-they have only current limiting capacitors, etc. so for sure its output is flickering :o

So, made this small LDR probe to be able even in the shop check if such light sources have current stabilized and there is no flickering  >:D

Can put this inside laptop microphone input and no need to carry huge scope to prove in the shop that their LED 230VAC light bulbs are bullshit  :-DD
« Last Edit: February 01, 2015, 09:06:44 pm by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #16 on: February 05, 2015, 03:21:29 pm »
Could something like this combined with a jelly bean integrated circuit (TL494, 555, MC34063) work for a mini smps?:
http://nl.mouser.com/ProductDetail/Bourns/SRF0703-820M/?qs=sGAEpiMZZMu3JGptLTgkApgoxvKCoHv%2fdGHoY%252bc%252b4z8%3d

Well if it can, I would still have to work out the circuit for that...
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #17 on: February 05, 2015, 03:58:56 pm »
Well if it can, I would still have to work out the circuit for that...
Probably you saw last time in one thread this quite nice book for SMPS designers was mentioned and it was easy find PDF for this  :-+
"Switchmode Power Supply Handbook" Keith Billings, Taylor Morey


Anyway, experimented last time with GDTs and made this AC mosfets switch quite easy switched ON from  very simple (SMPS) H bridge PNP BC327/NPN BC337 0.8A transistors and running at 400kHz this customized random core was able get typical RDSON of this BUZ78 800V mosfets at power supply 12V and input current 20mA, so not so bad ;)



At mosfets 10.5Vgs I have datasheet typical RDSON -even lower 5.5 Ohm per mosfet, while datasheet says 6 Ohm  8)

Now it is time to try drive real 230VAC light bulb and try group of GDT pulses to vary its brightness, but some kind of mains zero crossing probably will be helpfull, so lets solder two PC817 and connect such simple "0" crossing circuit detectror described in one of the thread some time ago on EEVblog and see what happends ;)
« Last Edit: February 05, 2015, 04:07:43 pm by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #18 on: February 05, 2015, 06:28:06 pm »
Quote
Anyway, experimented last time with GDTs and made this AC mosfets switch quite easy switched ON from  very simple (SMPS) H bridge PNP BC327/NPN BC337 0.8A transistors and running at 400kHz this customized random core was able get typical RDSON of this BUZ78 800V mosfets at power supply 12V and input current 20mA, so not so bad ;)
How did you get the 12v?
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #19 on: February 05, 2015, 06:49:29 pm »
Ok, 12Vin was car battery (so not PSU itself) to LM7805, so this H bridge which is switched from AVR ATTiny logic level 5V ;)
GDT- from old small PSU transformer I guess -has about 1:2 ratio now, so I could get above 10V on mosfets gate Vgs (N-channel mosfets) on its secondary side.

BTW: 20mA @ 12V and 400kHz switching frequency everything  had room temperature  8)
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #20 on: February 05, 2015, 07:43:16 pm »
Quote
Ok, 12Vin was car battery (so not PSU itself)
Actually, I just realized you don't need an internal power supply for a SSR, you can just draw the power from the control circuit  [edit] if  its powerfull enough [/edit]

Quote
BTW: 20mA @ 12V and 400kHz switching frequency everything  had room temperature  8)
Interesting,so it's fully tested! Now I'm a bit curious about the details of your circuit.
Well, I'm gonna read the "Switchmode Power Supply Handbook" now.
« Last Edit: February 06, 2015, 08:29:55 am by necessaryevil »
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #21 on: February 05, 2015, 08:56:16 pm »
For the moment nothing fancy-just 290 bytes of ATTiny85 8k flash does the job turns on off two phases at 400kHz and 1N4148 on secondary charges AC mosfets switch gate to 10.5V using concept like this discrete driver from TI demo >:D

Power Tip 42: Discretes can replace integrated MOSFET driver


Just want use such AC swith to triger SCR's, so GDT was quite interesting for me to try,
but to drive light bulbs etc probably GDT too complicated and optoisolated mosfet driver with small 12V galvanic PSU will be better and easier to controll than GDTs ;)
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #22 on: February 06, 2015, 08:32:09 am »
Very interesting! And the transistors are on the secondary side; which is convenient for high voltage inputs.
 

Offline eneuro

  • Super Contributor
  • ***
  • Posts: 1528
  • Country: 00
Re: DIY AC mosfet solid state relay
« Reply #23 on: February 06, 2015, 07:55:39 pm »
Around 2:54 sec is quite interesting, where they showed easy way to make positive and negative power supply for mosfet discrete transistors driver supplied by GDT itself  8)

Anyway made something similar to this H11AA1 AC zero crossing detector (http://www.datasheetdir.com/H11AA1+Optocouplers ), but using two PC817 in anti parallel, while waiting for ordered elements.

Haven't got time to test it today, but I've already tested regular LEDs in similar antiparallel configuration like in H11AA1 with 2 x 50k resistance on 230VAC mains side and it was fine, so I hope those PC817 (EL817 there) will do the job and I should be able detect on MPU pin 230VAC mains zero crossing (with a few kV insulation in those tiny optocouplers) and switch AC mosfets switch shifted in phase when needed.
« Last Edit: February 06, 2015, 07:57:32 pm by eneuro »
12oV4dWZCAia7vXBzQzBF9wAt1U3JWZkpk
“Let the future tell the truth, and evaluate each one according to his work and accomplishments. The present is theirs; the future, for which I have really worked, is mine”  - Nikola Tesla
-||-|-
 

Offline necessaryevilTopic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: nl
Re: DIY AC mosfet solid state relay
« Reply #24 on: February 08, 2015, 10:40:59 am »
Can you please post the full circuit? I' m also curious which transformer you use.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf