Author Topic: Can I control a transformer with an SSR  (Read 3782 times)

0 Members and 1 Guest are viewing this topic.

Offline mahmood.sajTopic starter

  • Contributor
  • Posts: 11
  • Country: au
Can I control a transformer with an SSR
« on: December 10, 2022, 08:12:37 am »
Hi everyone.

Goal:
Creating a required pulse to change the pool light color

Background:
I am new to electronics and this forum.
I have a multi color pool light which has 2 wires only, based on the documentation with a single pulse I should be able to send a color command.
for example disconnecting the power for 180ms means blue, or disconnecting for 240ms means green.
The pool light luminaire firmware requires accurately defined durations of power absences in the range 80ms ~ 1440ms.
another example for dimming:
- Break power for 120ms (+/-20ms).
- One second (+/-0.3s) after power has been restored at the end of this break, break the power again for 510ms (+/-40ms).

The pool light is using 12V and it has a dedicated transformer.
and this is the regulation and rule that I need to follow:
Quote
Do not attempt to control the secondary (SELV) outputs of the pool lighting transformers. This would be viewed as a breach of safe wiring
practices for pool lighting.

So the final diagram should be something like:

AC power outlet --->--- The control circuit what I need to build ------->--------Transformer ----->---- pool light

Requirements:
- The control circuit needs to disconnect the power for specific amount of time
- It should not destroy Transformer
- The pulse should be received by pool light

What did I do so far:
I decide to use SSR and ESP32 devkit v4. Also there is a logic level converter to convert 3.3V of ESP32 to 5V which required by my SSR
SSR: KSI240 Series Single Phase AC Output Please find the spec PDF attached

Please find the circuit digram attached.
The 2 set of 6 pins at the middle of diagram are reserved for Logic-Level-Converter
A 240V to 5V 2Amp adaptor used as power source of the entire system.
Output switches are connected to SSR
Input switches are connected to wall switch via “1-Bit AC 220V Optocoupler Isolation Module Voltage Detect Board Adaptive for PLC” (From ebay)

Issue
I received a massage from the pool light company as follow:
Quote
Your automation system should control power to the pool lighting transformers with mains-switching relays, rather than with solid-state switches (SSRs). Some SSRs will misbehave when controlling transformers and are capable of destroying the transformers if they enter ‘half-wave rectification’ mode.

I am not able to find a normal relay which is capable of creating a 80ms pulse.

So my questions are
  • How to create a required pulse without SSR? or to solve the issue
  • How SSR will destroy transformer

PS: My circuit is creating a pulse but it is not accurate enough


Thank you all for your reply in advance.
 

Offline bidrohini

  • Regular Contributor
  • *
  • Posts: 201
  • Country: bd
Re: Can I control a transformer with an SSR
« Reply #1 on: December 10, 2022, 10:13:56 am »
You can check this too:http://www.mycncuk.com/threads/272-Solid-State-Relay-to-Switch-Transformer
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5969
  • Country: ca
Re: Can I control a transformer with an SSR
« Reply #2 on: December 10, 2022, 12:23:20 pm »
Why dont you control the leds directly intead of controlling the x-former

you have many solutions for led control an dimming them  or rgb led strips  etc  .....    by remote, computer controlled


For a saferty point of view, you dont play  with "mains" supply,  and mostly being a "newbie" as you describe your self

You would need   scrs or triac based control  to play with the main ac signal  ....  you need to play with the phase to get amplitude level  etc ....
and some basic x-formers  hate that, they are not meant to be controlled like that
« Last Edit: December 10, 2022, 12:24:53 pm by coromonadalix »
 

Offline wasedadoc

  • Super Contributor
  • ***
  • Posts: 1420
  • Country: gb
Re: Can I control a transformer with an SSR
« Reply #3 on: December 10, 2022, 01:38:06 pm »
Why dont you control the leds directly intead of controlling the x-former
That is bad advice.  The reason for

"Do not attempt to control the secondary (SELV) outputs of the pool lighting transformers. This would be viewed as a breach of safe wiring practices for pool lighting."

in the opening post is that the existing transformer is a supposedly safe barrier between AC mains and people in the pool water.  By introducing any control system that is not completely battery powered between the transformer and the LEDs there is the risk of a fault or shortcoming in such a mains powered control system introducing dangerous voltage into the pool. That risk is particularly high in this case of a homebrew system constructed by a beginner.
« Last Edit: December 10, 2022, 01:40:54 pm by wasedadoc »
 

Offline ledtester

  • Super Contributor
  • ***
  • Posts: 3052
  • Country: us
Re: Can I control a transformer with an SSR
« Reply #4 on: December 10, 2022, 01:41:24 pm »
What is the make and model of your pool light? And can you upload the documentation you have about it.
 
The following users thanked this post: Doctorandus_P

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1117
  • Country: lt
Re: Can I control a transformer with an SSR
« Reply #5 on: December 10, 2022, 01:51:41 pm »
If you want to avoid the possibility of SSR failing in a way that it half-wave rectifies and cooks the transformer by supplying it with DC, then you can add bridge rectifier and control it's output with SSR instead of directly controling AC power to the primary.

For SSR timming you should probably sense the zero crossing of AC wave, and try to make your switch transitions at exactly those moments (when AC is 0V). Keep in mind SSR turn on and turn off times from datasheet.
 

Offline themadhippy

  • Super Contributor
  • ***
  • Posts: 2631
  • Country: gb
Re: Can I control a transformer with an SSR
« Reply #6 on: December 10, 2022, 02:35:19 pm »
Quote
in the opening post is that the existing transformer is a supposedly safe barrier between AC mains and people in the pool water.  By introducing any control system that is not completely battery powered between the transformer and the LEDs there is the risk of a fault or shortcoming in such a mains powered control system introducing dangerous voltage into the pool.
or use the same low voltage output of the transformer to power the control circuit,thats  assuming its a  proper tranny and not one of those electronic jobbies
 

Offline mahmood.sajTopic starter

  • Contributor
  • Posts: 11
  • Country: au
Re: Can I control a transformer with an SSR
« Reply #7 on: December 10, 2022, 02:51:15 pm »
Please find the light protocol attached.
 

Offline capt bullshot

  • Super Contributor
  • ***
  • Posts: 3033
  • Country: de
    • Mostly useless stuff, but nice to have: wunderkis.de
Re: Can I control a transformer with an SSR
« Reply #8 on: December 10, 2022, 02:52:31 pm »
Quote
For SSR timming you should probably sense the zero crossing of AC wave, and try to make your switch transitions at exactly those moments (when AC is 0V). Keep in mind SSR turn on and turn off times from datasheet.

Not recommended to do so ... as the common transformer doesn't like to be turned on at the zero crossing. Doing so can create large turn-on current surges which may trip the upstream fuse or breaker or kill the SSR. It's better to turn on the SSR at some random phase angle - google "large transformer soft start" - properly soft starting a large transformer turns out to rather a complex procedure:
https://neurochrome.com/pages/the-ultimate-guide-to-soft-start-design
https://groups.google.com/g/sci.electronics.design/c/A0FWNqxAms8?pli=1

« Last Edit: December 10, 2022, 03:39:01 pm by capt bullshot »
Safety devices hinder evolution
 
The following users thanked this post: 4cx10000

Offline bdunham7

  • Super Contributor
  • ***
  • Posts: 7911
  • Country: us
Re: Can I control a transformer with an SSR
« Reply #9 on: December 10, 2022, 03:01:22 pm »
I am not able to find a normal relay which is capable of creating a 80ms pulse.

What do you mean by that?  Are you looking for it in the specs or have you tried some and can't get them to work?  I would expect an ordinary small control relay to do this just fine.  Coil snubbers may add a few ms to the timing, but even then you can just offset that in your control software.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Offline Doctorandus_P

  • Super Contributor
  • ***
  • Posts: 3387
  • Country: nl
Re: Can I control a transformer with an SSR
« Reply #10 on: December 10, 2022, 03:04:07 pm »
Switching the transformer is also unlikely to work at all.
the circuit very likely has a rectifier and smoothing caps after the transformer to create DC, and this will have a huge influence on any of your attempt to create such short switch times.

The combination of DIY electronics combined with mains voltages and swimming pools is also one of the most dangerous conbinations you can do. In itself it's quite easy, but it's also easy to get it wrong with simple mistakes.

It's just a very bad first project for someone in-experienced with electronics.
My suggestion is to just buy the original controller for this pool lighting and go DIY on some other piece of equipment.
 

Offline mahmood.sajTopic starter

  • Contributor
  • Posts: 11
  • Country: au
Re: Can I control a transformer with an SSR
« Reply #11 on: December 10, 2022, 03:10:12 pm »
If you want to avoid the possibility of SSR failing in a way that it half-wave rectifies and cooks the transformer by supplying it with DC, then you can add bridge rectifier and control it's output with SSR instead of directly controling AC power to the primary.

For SSR timming you should probably sense the zero crossing of AC wave, and try to make your switch transitions at exactly those moments (when AC is 0V). Keep in mind SSR turn on and turn off times from datasheet.

Thank you for your quick replay.

Do you mean, if I do something wrong, it will damage SSR but not transformer? I can understand this, but the massage that I received claim, the transformer will get damaged and it was very confusing.

I assume the biggest issue is surge current. If this is correct, The SSR which I am using is designed for 240V AC and at 10AMP has max surge current of 150AMP. How can I calculate if I am safe or not? Also I am using 2 x 10AMP fuses , one before SSR and one before transformer, I assume if  the circuit use the high current for more than few millisecond, the fuses should protect the SSR and transformer.

If I use the bridge rectifier, does it mean that I send just half of the AC waves to transformer? Is it safe for transformer to just receive falf of the waves?

Is there any name for the zero crossing sensing circuit? I am asking to search and find a prebuild version of it (if exists, as i am a beginner)
« Last Edit: December 10, 2022, 03:19:37 pm by mahmood.saj »
 

Offline mahmood.sajTopic starter

  • Contributor
  • Posts: 11
  • Country: au
Re: Can I control a transformer with an SSR
« Reply #12 on: December 10, 2022, 03:16:29 pm »
Why dont you control the leds directly intead of controlling the x-former

you have many solutions for led control an dimming them  or rgb led strips  etc  .....    by remote, computer controlled


For a saferty point of view, you dont play  with "mains" supply,  and mostly being a "newbie" as you describe your self

You would need   scrs or triac based control  to play with the main ac signal  ....  you need to play with the phase to get amplitude level  etc ....
and some basic x-formers  hate that, they are not meant to be controlled like that

Thanks mate.

As others suggest, due to regulation I forced to use transformer and I can control primary side of transformer only.
Based on internet:
Quote
SSR (solid state relays) is a semiconductor relay consisting of a triac coupler, main triac, resistance, and capacitor. Triac couplers alone can turn a load ON/OFF. However, the current they can control is so small (around 100mA) that SSR is used for applications for performing ON/OFF control on large currents.
Does it mean the SSR relay which I am using is include a teriac and few extra parts to support 10AMP based on my requirements?

And would you please guide me why based X-formers has issue with SSR?
 

Offline bdunham7

  • Super Contributor
  • ***
  • Posts: 7911
  • Country: us
Re: Can I control a transformer with an SSR
« Reply #13 on: December 10, 2022, 03:26:53 pm »
the circuit very likely has a rectifier and smoothing caps after the transformer to create DC, and this will have a huge influence on any of your attempt to create such short switch times.

They actually don't.  The LED pool lights are sealed modules that operate on 12VAC and have minimal internal capacitance.
A 3.5 digit 4.5 digit 5 digit 5.5 digit 6.5 digit 7.5 digit DMM is good enough for most people.
 

Offline mahmood.sajTopic starter

  • Contributor
  • Posts: 11
  • Country: au
Re: Can I control a transformer with an SSR
« Reply #14 on: December 10, 2022, 03:27:09 pm »
I am not able to find a normal relay which is capable of creating a 80ms pulse.

What do you mean by that?  Are you looking for it in the specs or have you tried some and can't get them to work?  I would expect an ordinary small control relay to do this just fine.  Coil snubbers may add a few ms to the timing, but even then you can just offset that in your control software.

It could be my limitted knowledge about electronic parts and how can I find them, but normal relay which I found has very low hertz, and not able to turn on and off for 80ms.
80ms command wget ignored by the relay, before it turn off, it turned on again.
 

Offline mahmood.sajTopic starter

  • Contributor
  • Posts: 11
  • Country: au
Re: Can I control a transformer with an SSR
« Reply #15 on: December 10, 2022, 03:37:25 pm »
It's just a very bad first project for someone in-experienced with electronics.
My suggestion is to just buy the original controller for this pool lighting and go DIY on some other piece of equipment.

I was assuming, as there is a transformer and fuses, they will make it safe، and worst case scenario, I will damage the SSR.
But if it has a life hazard, I will skip this DIY project 😭
So far I was successful to control lights, garage door and few othe stuff in my home automation but all of them were easy with a simple relay.
This is the first project which needs an accurate timing and pulses and very interesting challenge. But it seems it is out of my limits.(based on your suggestion)
« Last Edit: December 10, 2022, 03:39:59 pm by mahmood.saj »
 

Offline BillyO

  • Super Contributor
  • ***
  • Posts: 1435
  • Country: ca
Re: Can I control a transformer with an SSR
« Reply #16 on: December 10, 2022, 03:45:18 pm »
.. and I can control primary side of transformer only.
Why would this be?  It seems it would be far better to control the low voltage side of things.
Bill  (Currently a Siglent fanboy)
--------------------------------------------------
Want to see an old guy fumble around re-learning a career left 40 years ago?  Well, look no further .. https://www.youtube.com/@uni-byte
 

Offline mahmood.sajTopic starter

  • Contributor
  • Posts: 11
  • Country: au
Re: Can I control a transformer with an SSR
« Reply #17 on: December 10, 2022, 04:03:47 pm »
.. and I can control primary side of transformer only.
Why would this be?  It seems it would be far better to control the low voltage side of things.

My circuit is working with 5v DC, and the pool light working with 12v AC.
Putting another circuit after transformer which is not connected to main, sounds good to me,
But due to Australia regulation I think, I am not allow to do that.
Also I am not sure about energy consumption. As my circuit will be controlled via wifi, it needs to be turned on all the time, putting it after the transformer means, the transformer needs to be On, all the time, but if I can put it before transformer, I can shut-down the transformer power all together.
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9894
  • Country: us
Re: Can I control a transformer with an SSR
« Reply #18 on: December 10, 2022, 04:28:48 pm »
Ask the manufacturer or seller for a recommendation of a relay known to work.

What is the rating of the transformer in VA or primary current?

DigiKey has hundreds of relays that switch in 4 ms (symmetric) but I don't know what current is required.

Even a relay rated 30A will make in 7 ms and break in 2 ms.  You can tweak the timing in the uC to account for make and break times.  You would need a scope to see this.  Or, take the manufacturer's word for the latency.
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9894
  • Country: us
Re: Can I control a transformer with an SSR
« Reply #19 on: December 10, 2022, 04:33:06 pm »
Assuming that the lighting transformer plugs into a wall outlet, I would build the project such that the controller plugs into the wall outlet and the transformer plugs into a receptacle provided by the controller.  Either as a receptacle mounted in the project box or a short piece of cord with a dangling receptacle.

I wouldn't make any modifications at all to the lighting system and I would be darn sure the earth ground was continuous and connected to the project box if it is made of metal.

ETA:  or any metal is exposed - like metal screws.  Ground any exposed hardware.  If there is going to be a lot of exposed hardware, you might as well use a metal box and ground it.  Use star washers to connect between hardware and the metal box.  Things like this around pools are inherently unsafe.

Rule:  Any exposed non-current carrying metal surfaces are to be grounded.

Is there a commercial controller?  It would be much safer to buy something that has been tested and approved.

Then there is the RCD for extra safety.  Assuming such a device exists...

« Last Edit: December 10, 2022, 05:07:00 pm by rstofer »
 

Offline themadhippy

  • Super Contributor
  • ***
  • Posts: 2631
  • Country: gb
Re: Can I control a transformer with an SSR
« Reply #20 on: December 10, 2022, 05:22:58 pm »
ye lets go adding earths to a selv supply, the S dont stand for separate .o hang on
 

Online pcprogrammer

  • Super Contributor
  • ***
  • Posts: 3782
  • Country: nl
Re: Can I control a transformer with an SSR
« Reply #21 on: December 10, 2022, 05:48:26 pm »
From the manual:

Quote
Your automation system should control power to the pool lighting transformers with mains-switching relays, rather than with solid-state
switches (SSRs). Some SSRs will misbehave when controlling transformers and are capable of destroying the transformers if they enter ‘half-
wave rectification’ mode. Verify that when the control relays are ‘off’ there is no more than 5Vac present at the transformer mains inputs. Larger
off-state voltages indicate the presence of resistor-capacitor snubbers on the relay contacts which can leak sufficient current to the lights to
cause inappropriate microprocessor operation.

It states using of mains-switching relays rather then solid-state relays. Like rstofer wrote, there are plenty relays to be found that are fast enough. But you have to take care of two things. The relay coil needs a diode in parallel to suppress voltage spikes when turned off. And you need a snubber circuit parallel to the transformer to avoid sparking relay contacts.

But it would be better to just look for a commercial solution. Surely Aqua-Quip must have something for this.

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19572
  • Country: gb
  • 0999
Re: Can I control a transformer with an SSR
« Reply #22 on: December 10, 2022, 06:53:38 pm »
It isn't a transformer, but a switched mode power supply, with some electronics to control the LEDs.

A small mechanical relay should be fast enough. Here's one with an operate time of 4.5ms and release time of 1.5ms. A back-EMF protection diode will increase the release time. One way round this is to add a resistor in series with the back-EMF diode and use a high voltage transistor.  Driving the coil with a brief high voltage spike can be used to speed operate time.
https://www.citrelay.com/Catalog%20Pages/RelayCatalog/J104A.pdf
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9894
  • Country: us
Re: Can I control a transformer with an SSR
« Reply #23 on: December 10, 2022, 07:21:19 pm »
There simply must be a commercial controller.  If one didn't exist, neither would the lights.  Not everybody is going to want or even be capable of designing an interface box.  A controller must exist!

So, it probably comes with buttons or something similar to operate the various lighting modes.  But I want to use the control unchanged and leave all the liability with the manufacturer.  So, I would change my project to a robotic mechanical button pusher with a soft plunger.

Not only would this leave the entire electrical installation unchanged, it would earn mega-bonus points for 'cool'.  A cell phone app using WiFi would be the crowning achievement.  I would start with a laptop app just because the GUI might be easier to create although there are SDKs for Android and iPhone.

Leave all the liability with the manufacturers!


Google for 'cell phone wifi app sdk diy' or something similar.

 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5969
  • Country: ca
Re: Can I control a transformer with an SSR
« Reply #24 on: December 10, 2022, 08:29:11 pm »
Why dont you control the leds directly intead of controlling the x-former
That is bad advice.  The reason for

"Do not attempt to control the secondary (SELV) outputs of the pool lighting transformers. This would be viewed as a breach of safe wiring practices for pool lighting."

in the opening post is that the existing transformer is a supposedly safe barrier between AC mains and people in the pool water.  By introducing any control system that is not completely battery powered between the transformer and the LEDs there is the risk of a fault or shortcoming in such a mains powered control system introducing dangerous voltage into the pool. That risk is particularly high in this case of a homebrew system constructed by a beginner.

lolll  funny,  i did install lots of pool  leds or lightning inside pools and or outside, even put in concrete, AND i never played with the transformers main lines .....   Use the right controller thats all     and if a company says otherwise they are #$#^#$^

Whatever if its led based or any other technology  there's other means to control it safely, if not  any gadjets you add or build  who are not certified could be viewed has hazardous, and if an accident happens because of that   you could be held responsible  .......

Here in Canada it's another story,  insurances companies could even sue you  .....   have fun
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf