π¬ RFM69 Livolo 2 channels 1 way EU switch(VL-C700X-1 Ver: B8)
-
I think that device you sent earlier it's a power MOSFET based circuit. A MOSFET it's basically a voltage controlled resistance so it's a more "dynamic" way of controlling the bypassing "resistance" on the light bulb than using a simple capacitor which has a fixed reactance(AC equivalent resistance). I can see on the bottom side that it has some diodes which are needed because the MOSFET normally works in DC circuits so by using those we can assure that the current flows through it in one way as required. One example of such a circuit is here: http://forum.allaboutcircuits.com/blog/controlling-an-ac-load-with-a-mosfet.518
The above circuit is for controlling AC loads using MOSFET's so it's not related to our case but to ensure correct DC functionality I think they use the same ideas with diodes. The rest of components are for MOSFET gate proper driving I presume.
Another advantage of using that mosfet based circuit is that it's much smaller than using single capacitors. Capacitors tend to be bulky as the capacitance and/or voltage rating increases. Just my 2 cents here.
Hi @mtiutiu, You are the genius !!!.
I'm really happy to hear that you've finally achieved the desired results. Believe me that joy is mine if on anything but minimal I have contributed to you can achieve the desired goal.
I firmly believe that your development is the one that with difference and from my modest point of view has the key to success both because of its general approach and the fabulous development that I see you are performing in the accurate design of the additional circuit and I am sure that this design will be the future reference to give the Livolo's the possibility about true bidirectional RF control.Regarding the circuit that Livolo sells to avoid the problems of switch flickering by low power loads (less than 3W) this is a circuit with active components and is not a circuit designed to provide more power but to guarantee the switch of a " minimum " but regulated and constant current and providing it with better immunity because the current fluctuations caused by some electronic loads (led and similar) when they are at rest.
So it is not at all something that can be compared to the function of the capacitor in parallel to the load that provides an absolute increase of the current flow through the load circuit (and therefore of the switch) due to its behavior resistive in AC (more correctly its impedance), and this last is the characteristic that here we are looking for.
Just point out that a couple of details regarding the use of a capacitor in this way, and is that the consumption will be constant activated the load or not although we speak of an increase in very low consumption (100ma @ 220V = 2.5W aprox) but should not be neglected if we intend to "modify" by this way a relatively high number of loads and in this cases I think at least imposes a previous calculation of the constant power that we will increased because of add a "pile" of parallel load caps.
Also not should we lose on sight the fact that we will introduce a reactive component (reactive power) that can affect the character of our electrical installation and that as I say if it is used generically in many loads it is necessary to calculate its effect in our installation to avoid some displeasure with our electric company and their invoices.Finally let's do some simple math to calculate a capacitor value that might be appropriate.
Thus, the capacitive reactance is expressed as Xc = 1 / (w * C) where w is omega (equals 2 * pi * f, where f is the frequency) and C is the capacity in farads.
So if we wanted to have 20ma at 220V we would need a resistance of 4K (obviously I not do here this calculation of the simple ohm law) and therefore in my country that we have 50Hz frequency the capacity we would need would be C = 1 / (w * Xc) => C = 1 / (314 * 4000 ) = 729nFSumming up the capacitor you have tested on 470nf gives you a constant current of about 15ma when the circuit is in standby (load off), and don't forget we have a capacitor so we can achieve much more current from his reserve (this is for what was designed) and we can manage the current peak draw when RF transceiver are full active working on sending (Hope RFM69W/HW typically have current peaks over 30-40 ma on 100-200ms duration on sending cicles at full RF power) and seeing all seams should be enough to power any RF transceiver and a low power mcu if its consumption is well controlled by its proper use.
With this capacitor we are increasing the consumption of the load circuit in only about 0.5W, but let's not forget that this will be constant consumption in 24/365 hours / days a year.
So I keep close tuned with your evolution here.
Best regards
-
Hi @mtiutiu, You are the genius !!!.
I'm really happy to hear that you've finally achieved the desired results. Believe me that joy is mine if on anything but minimal I have contributed to you can achieve the desired goal.
I firmly believe that your development is the one that with difference and from my modest point of view has the key to success both because of its general approach and the fabulous development that I see you are performing in the accurate design of the additional circuit and I am sure that this design will be the future reference to give the Livolo's the possibility about true bidirectional RF control.Regarding the circuit that Livolo sells to avoid the problems of switch flickering by low power loads (less than 3W) this is a circuit with active components and is not a circuit designed to provide more power but to guarantee the switch of a " minimum " but regulated and constant current and providing it with better immunity because the current fluctuations caused by some electronic loads (led and similar) when they are at rest.
So it is not at all something that can be compared to the function of the capacitor in parallel to the load that provides an absolute increase of the current flow through the load circuit (and therefore of the switch) due to its behavior resistive in AC (more correctly its impedance), and this last is the characteristic that here we are looking for.
Just point out that a couple of details regarding the use of a capacitor in this way, and is that the consumption will be constant activated the load or not although we speak of an increase in very low consumption (100ma @ 220V = 2.5W aprox) but should not be neglected if we intend to "modify" by this way a relatively high number of loads and in this cases I think at least imposes a previous calculation of the constant power that we will increased because of add a "pile" of parallel load caps.
Also not should we lose on sight the fact that we will introduce a reactive component (reactive power) that can affect the character of our electrical installation and that as I say if it is used generically in many loads it is necessary to calculate its effect in our installation to avoid some displeasure with our electric company and their invoices.Finally let's do some simple math to calculate a capacitor value that might be appropriate.
Thus, the capacitive reactance is expressed as Xc = 1 / (w * C) where w is omega (equals 2 * pi * f, where f is the frequency) and C is the capacity in farads.
So if we wanted to have 20ma at 220V we would need a resistance of 4K (obviously I not do here this calculation of the simple ohm law) and therefore in my country that we have 50Hz frequency the capacity we would need would be C = 1 / (w * Xc) => C = 1 / (314 * 4000 ) = 729nFSumming up the capacitor you have tested on 470nf gives you a constant current of about 15ma when the circuit is in standby (load off), and don't forget we have a capacitor so we can achieve much more current from his reserve (this is for what was designed) and we can manage the current peak draw when RF transceiver are full active working on sending (Hope RFM69W/HW typically have current peaks over 30-40 ma on 100-200ms duration on sending cicles at full RF power) and seeing all seams should be enough to power any RF transceiver and a low power mcu if its consumption is well controlled by its proper use.
With this capacitor we are increasing the consumption of the load circuit in only about 0.5W, but let's not forget that this will be constant consumption in 24/365 hours / days a year.
So I keep close tuned with your evolution here.
Best regards
Yes you're right about the mosfet circuit - I think I've gone too far with it :simple_smile: . The rest of the circuit analysis was already done by computing the capacitor reactance in AC(I used the well known formula that you already mentioned). The second part regarding the reactive power/energy which these elements(capacitor and/or inductance) are creating - well, that part I didn't took into consideration yet and you're right here too. But for small capacitor values I don't think it will matter that much - well it matters when you have lots of them spread in the house for every light - that's true. In this case I assume that the power factor(and the power factor correction) needs to be taken into consideration as not all light bulbs today are simple light bulbs but in turn may contain power supply circuits too with reactive elements inside - like those which are using LEDs or fluorescent ones.
But for now I don't know of any other solution to work with these live wire only power supplies in order to provide enough current for this project. As I've seen you know much more than me regarding power electronics and AC circuits in general so on this part I still have things to learn(as with electronics in general).
Thanks once again for your help. I appreciate it.
-
Yes you're right about the mosfet circuit - I think I've gone too far with it :simple_smile: . The rest of the circuit analysis was already done by computing the capacitor reactance in AC(I used the well known formula that you already mentioned). The second part regarding the reactive power/energy which these elements(capacitor and/or inductance) are creating - well, that part I didn't took into consideration yet and you're right here too. But for small capacitor values I don't think it will matter that much - well it matters when you have lots of them spread in the house for every light - that's true. In this case I assume that the power factor(and the power factor correction) needs to be taken into consideration as not all light bulbs today are simple light bulbs but in turn may contain power supply circuits too with reactive elements inside - like those which are using LEDs or fluorescent ones.
But for now I don't know of any other solution to work with these live wire only power supplies in order to provide enough current for this project. As I've seen you know much more than me regarding power electronics and AC circuits in general so on this part I still have things to learn(as with electronics in general).
Thanks once again for your help. I appreciate it.
I totally agree about all your observations.
In our typically use case (on house with maybe 10-20 switchΒ΄s total) all my considerations about reactive power and consum increase can be totally overlooked because we are on really small values, but I think we need make all the important and proper warnings for anyone try to use on "any" environment.
And I think is so very difficult to find any other alternative solution to the proposed, which I insist that in any case and according to all the data we have is fully adjusted and satisfactory to our needs.
Thanks to you.
My best wishes
-
Tested the livolo mysensors node(RFM69W) with a 5W LED bulb and a 100nf/400Vca capacitor across it and it works perfectly(the modifications mentioned in this post: https://forum.mysensors.org/topic/2775/livolo-glass-panel-touch-light-wall-switch-Arduino-433mhz/63 were preserved).
The power required by the custom livolo front plate is about: (50-60)mA x 3.3V ~= 180-200mW at peak(when the radio is in TX mode) and the internal livolo power supply provides about 12-14V which in turn means the max current needed from it is about: 180-200mW / 12-14V = 15~16mA.
A 100nF capacitor has a reactance of ~31.83Kohms at a frequency of 50Hz which means the current it allows in the series circuit when the light is OFF(excluding the internal resistance/reactance of the livolo power switch) is about: 220-230Vac / 31.83Kohm ~= 7mA. To this value the light bulb current in the OFF state needs to be summed up as it's in parallel with the capacitor so maybe we get around 10-12mA in total which is more or less close to the above 15~16mA.
Now the above computations are very rough ones and based on effective values(as we have an AC circuit under analysis) and without taking into consideration the internal livolo power supply resistance and the one that the light bulb has in reality.
-
Tested the livolo mysensors node(RFM69W) with a 5W LED bulb and a 100nf/400Vca capacitor across it and it works perfectly(the modifications mentioned in this post: https://forum.mysensors.org/topic/2775/livolo-glass-panel-touch-light-wall-switch-Arduino-433mhz/63 were preserved).
The power required by the custom livolo front plate is about: (50-60)mA x 3.3V ~= 180-200mW at peak(when the radio is in TX mode) and the internal livolo power supply provides about 12-14V which in turn means the max current needed from it is about: 180-200mW / 12-14V = 15~16mA.
A 100nF capacitor has a reactance of ~31.83Kohms at a frequency of 50Hz which means the current it allows in the series circuit when the light is OFF(excluding the internal resistance/reactance of the livolo power switch) is about: 220-230Vac / 31.83Kohm ~= 7mA. To this value the light bulb current in the OFF state needs to be summed up as it's in parallel with the capacitor so maybe we get around 10-12mA in total which is more or less close to the above 15~16mA.
Now the above computations are very rough ones and based on effective values(as we have an AC circuit under analysis) and without taking into consideration the internal livolo power supply resistance and the one that the light bulb has in reality.
Okay. According to your observations 200mw (peak) is required to feed the additional RF plate and to that must be added the self-consumption of the Livolo's power circuit.
I believe that in this case, it is not so important to calculate the peak power because given the dynamic of our operation (the peak power transmissions usually need a few ms), I'm certain that this peak power can be easily provided by the own current reserve stored in the capacitor itself, and because that I think is necessary focus tries to guarantee the stable supply of current for the "normal" operation of both circuits (additional plate and livolo), and that requires at least 15ma (I think that is the min) and much better if we can guarantee about 20-30ma.
In the next link you can see a fairly exhaustive analysis of current variations vs RF output power in a typical RFM69HW operation, which shows that the average current is around 20-30ma and the peaks can reach 80ma:
So trying to make a global vision of the power needs for that project in general and taking into account that usually we will always ignore the true capacity to generate current of the several type of loads that can be connected, the different topology of housing wiring (self-capacity, spur, etc ...), the huge variations in impedance of the loads according to their type, their dynamics of operation, etc. I think is much more reasonable and closer to the real needs use capacitors of at least 470nf min (although I would opt for 680nf or maybe 1uf), to guarantee that there will always be a enough constant current supply capacity really closer or exceeds demanded in any circumstances.
Therefore I would not consider so much in calculations the capacity of the own loads for the power supply and only would calculate the capacity of supply by using the correct value of the capacitor that in any case will have to be installed.I think it is very important to guarantee the stability of the circuit operation (speaking in the long term) given the "infinite" possibilities of characteristics so variable that can be found in the installations of any house.
Collaterall efffect: When installing this capacitor we removed the load limitation of > 3w for Livolo's Switch, so generally now they can be used "independently" of the power and type of the load.
We have just solved a serious problem for Livolo manufacturers :smile:
Regards.
-
Okay. According to your observations 200mw (peak) is required to feed the additional RF plate and to that must be added the self-consumption of the Livolo's power circuit.
I believe that in this case, it is not so important to calculate the peak power because given the dynamic of our operation (the peak power transmissions usually need a few ms), I'm certain that this peak power can be easily provided by the own current reserve stored in the capacitor itself, and because that I think is necessary focus tries to guarantee the stable supply of current for the "normal" operation of both circuits (additional plate and livolo), and that requires at least 15ma (I think that is the min) and much better if we can guarantee about 20-30ma.
In the next link you can see a fairly exhaustive analysis of current variations vs RF output power in a typical RFM69HW operation, which shows that the average current is around 20-30ma and the peaks can reach 80ma:
So trying to make a global vision of the power needs for that project in general and taking into account that usually we will always ignore the true capacity to generate current of the several type of loads that can be connected, the different topology of housing wiring (self-capacity, spur, etc ...), the huge variations in impedance of the loads according to their type, their dynamics of operation, etc. I think is much more reasonable and closer to the real needs use capacitors of at least 470nf min (although I would opt for 680nf or maybe 1uf), to guarantee that there will always be a enough constant current supply capacity really closer or exceeds demanded in any circumstances.
Therefore I would not consider so much in calculations the capacity of the own loads for the power supply and only would calculate the capacity of supply by using the correct value of the capacitor that in any case will have to be installed.I think it is very important to guarantee the stability of the circuit operation (speaking in the long term) given the "infinite" possibilities of characteristics so variable that can be found in the installations of any house.
Collaterall efffect: When installing this capacitor we removed the load limitation of > 3w for Livolo's Switch, so generally now they can be used "independently" of the power and type of the load.
We have just solved a serious problem for Livolo manufacturers :smile:
Regards.
@jirm said in π¬ Livolo EU switch Mysensors integration:
We have just solved a serious problem for Livolo manufacturers :smile:
I don't think ther didn't know about that. I bought a cheap US/AU switch with no visible brand on the front plate. It has 3 switches and a radio receiver and I paid 12$ only. The power consumption seems much less optimized (I have one bulb flickering with this switch while it's fine with Livolo) so in the box, they provided a capacitor to put parallel to the load. I think they just prefer to sell the 3+$ "lighting adapter" :)
-
@jirm said in π¬ Livolo EU switch Mysensors integration:
We have just solved a serious problem for Livolo manufacturers :smile:
I don't think ther didn't know about that. I bought a cheap US/AU switch with no visible brand on the front plate. It has 3 switches and a radio receiver and I paid 12$ only. The power consumption seems much less optimized (I have one bulb flickering with this switch while it's fine with Livolo) so in the box, they provided a capacitor to put parallel to the load. I think they just prefer to sell the 3+$ "lighting adapter" :)
-
I suppose my question is a bit too early to ask, but what could the total price be for each complete switch? This is a truly awsome projekt, huge respect for your work!
-
I suppose my question is a bit too early to ask, but what could the total price be for each complete switch? This is a truly awsome projekt, huge respect for your work!
Hi,
Thanks. Well the prices vary depending from where you're sourcing the components. I will update the BOM using EU prices as I'm from EU. But if you can source them from aliexpress from example you can get them at half the price - maybe even a quarter(this depends also on the fact that you trust the China suppliers from there). I bought components from aliexpress and I think I had one unfortunate incident until now: some L6920 chips that I bought were defective and/or fake.
-
I received Livolo switches from aliexpress but main board connector is 2x7pin with 2mm pitch not 2x6 pitch 2.54mm...
That's because you have another hw revision and maybe you bought a non-EU switch? I started this hw design using the EU variant because I'm from EU. I specified all these details in the project page too and for which hw revision of the board - quoting from there: "...the EU variant that I have(VL-C700X-1 Ver: B8)...". This hw revision of the board uses a 2x6 pin connector with 2.54mm pitch.
But if you can give me a dxf file with the front plate outline, touch sensors copper pads and 2x7 connector locations I can transpose that over the current board and do the arrangements so that it will align with yours too. One other thing that's needed is the 12V and 3V assignments to the 2x7 pin board connector and the relays drive pins too. I see here https://forum.mysensors.org/topic/2775/livolo-glass-panel-touch-light-wall-switch-arduino-433mhz/72# that @Nca78 posted that configuration but maybe you need to double check??
-
Yes I suggest a double check as mine is a US/AU format.
-
After a really long time I received the boards. I finished the assembly for one and uploaded some code to it. So far it seems to work but I need to perform some more tests. I attached some pictures of the finished product.
.

The silkscreen text is a little bit blurry and it was a little bit too small for the fab to print it so in some places is not right...anyways this is not important but the functionality is.
One note: the board round edges may be a little bit off the limits but that can be corrected by using some abrasive paper to remove the excess material(which I did in the above pictures and then the board fitted perfectly). -
After a really long time I received the boards. I finished the assembly for one and uploaded some code to it. So far it seems to work but I need to perform some more tests. I attached some pictures of the finished product.
.

The silkscreen text is a little bit blurry and it was a little bit too small for the fab to print it so in some places is not right...anyways this is not important but the functionality is.
One note: the board round edges may be a little bit off the limits but that can be corrected by using some abrasive paper to remove the excess material(which I did in the above pictures and then the board fitted perfectly). -
I updated the project page on openhardware.io. Added instructions too. I hope that I didn't forget anything.
These are the modifications required for the power/relays board in order to work with this project:

A capacitor is also needed in parallel with the light bulb otherwise the project board won't work as it doesn't get enough power from the standby circuit. I used a 470nF X2 type rated at 310Vac. I recommend using a light bulb of 10W or more(in my tests I used a 15W one.) I tested the setup with a 5W LED bulb but I got some instability from the livolo power supply board(it started to oscillate) - in this case maybe a bigger capacitor across the bulb might help(1uF one maybe). You don't need 2 capacitors in case of the 2 ways switch for each light bulb - one is sufficient across one of the bulbs.
Oh and please don't touch directly with your finger the sensor plates - use the plastics from the original board. I'm not responsible if you get an electric shock.
You can find more details in the project page on openhardware.io
Big thanks again to @jirm, @DJONvl and @Tigroenot and the rest of the community of course which contributed with the knowledge to make all this possible.
-
Hello,
i don't find anymore the VL-C700X-1 on aliexpress.
Can you tel me which is equal ?
Is it https://fr.aliexpress.com/store/product/Free-Shipping-Livolo-Luxury-White-Crystal-Glass-Switch-Panel-EU-Standard-VL-C701-11-110-250V/500715_512886492.html?spm=2114.12010612.0.0.deb0F4 ?Thx
-
Hello,
i don't find anymore the VL-C700X-1 on aliexpress.
Can you tel me which is equal ?
Is it https://fr.aliexpress.com/store/product/Free-Shipping-Livolo-Luxury-White-Crystal-Glass-Switch-Panel-EU-Standard-VL-C701-11-110-250V/500715_512886492.html?spm=2114.12010612.0.0.deb0F4 ?Thx
This one is: https://m.aliexpress.com/item/512770913.html
Please note that the board that I made is for the 2 channels model(VL-C702 series). Now I hope that they didn't changed the inside pcb hw revision meanwhile. The serial number that you mentioned and which I wrote about on openhardware project page is actually their pcb revision from inside the switch. I don't know for sure if that reflects the switch model which they advertise on AliExpress. But the link that I gave you is for the same switch which I bought some time ago because I took it from my orders list from my AliExpress account.
I see now that the price is bigger... it was 13$ when I bought it.
-
This one is: https://m.aliexpress.com/item/512770913.html
Please note that the board that I made is for the 2 channels model(VL-C702 series). Now I hope that they didn't changed the inside pcb hw revision meanwhile. The serial number that you mentioned and which I wrote about on openhardware project page is actually their pcb revision from inside the switch. I don't know for sure if that reflects the switch model which they advertise on AliExpress. But the link that I gave you is for the same switch which I bought some time ago because I took it from my orders list from my AliExpress account.
I see now that the price is bigger... it was 13$ when I bought it.
@mtiutiu Thanks you for your anwser ;)
Did you test a two way switch (va et viens) ?
I think we can do this with 1 gang 2 way :
https://fr.aliexpress.com/item/Black-Crystal-Glass-Switch-Livolo-EU-Standard-VL-C701SR-12-1-Gang-2-Way-Remote-Control/32786281129.html -
@mtiutiu Thanks you for your anwser ;)
Did you test a two way switch (va et viens) ?
I think we can do this with 1 gang 2 way :
https://fr.aliexpress.com/item/Black-Crystal-Glass-Switch-Livolo-EU-Standard-VL-C701SR-12-1-Gang-2-Way-Remote-Control/32786281129.htmlNo, I didn't tested a 2 way switch so I don't know how it behaves in that case. I don't have and I don't use switches with that setup.
-
This one is: https://m.aliexpress.com/item/512770913.html
Please note that the board that I made is for the 2 channels model(VL-C702 series). Now I hope that they didn't changed the inside pcb hw revision meanwhile. The serial number that you mentioned and which I wrote about on openhardware project page is actually their pcb revision from inside the switch. I don't know for sure if that reflects the switch model which they advertise on AliExpress. But the link that I gave you is for the same switch which I bought some time ago because I took it from my orders list from my AliExpress account.
I see now that the price is bigger... it was 13$ when I bought it.
Hi all
Can I suggest some improvements for that project?
For sure I agree with @tonnerre33 about make a version board for only one gang switch.
I buy regularly (once a month or so) some parts from livolo and from last 4 or 6 months I see that the switch plate boards (for the EU version) are the same on hardware specs at least from 6 or 9 month ago.
But we can expect that in near future (maybe few months) Livolo manufacturer make some changes and updates on his designs, because they regulary are doing that in past. So we need keep prepared for that and for make the propper updates to this project to mantain it working with the next version Livolo switchs.- -One gang switch I think is most common switch people have installed or at least I think is needed too with this two gang project version.
2.- Maybe will be better use (or make another plate board version) for the RFM69HW (high power), because the pinount on HW not match with RFM69CW you use, and HW type have same working specs but with the plus that HW type have high power possibilities and is most easy to find and both have similar price.
3.- How can be little better documented all the changes (wiring) we need do on the power relay plate board?
At least for me is hard to do correct wiring only seeing the photo and is easy to do some mistake trying to solder the wiring in the correct pins and places.
So I suggest trying to do some more work on that and maybe include some scheme and plan and take all best pic from each wiring bridge is needed to do that we can see without doubts the correct place to solder it.PD: @tonnerre33 I think one or two way switch function not be affected with this project plate board, because that function only differ on the pic (MCU) Livolo switch firmware and litles changes on power relay plate board to wire the additional pic pin output two way function to the COM connector.
Nothing of that function should be affected by anything that this plate modifies on the Livolo switch.My best wishes !