livolo Glass Panel Touch Light Wall Switch + arduino 433Mhz
-
Hello, for those who have it, can you please confirm if it contains a CD74HC238 like I have in the US(AU) sized switch ? (same PCB for 1 and 3 switches). Chip marking on my chip is HJ238. It then feeds a darlington array chip (marking UN2003A on mine) to trigger the relays.
These would be the 2 ICs in the middle of the last picture from @DJONvl
Would be interesting to know as it would mean the touch PCB for both types of switches would be very similar. -
@Nca78 The euro version doesn't. Just the ULN2003A.
Unfortunately, I can't attach images for some unknown reason.
Finally :)
That's a single button switch.@Tigroenot this is a picture of the EU dubble switch version.
image url)
But what I am looking for is how to connect the arduino to this PCB
The picture of DJONvI is a good start, but I want to know if the SMD components which where added are resistors or a before I blow up the PCB ;-) -
@frankie This diagram shows how a guy fixed his switch that didn't change the rele. But it is quite right. You need to add an optocoupler to connect to the sensor pin with 5,1 pF con to ground and connect the LED to the arduino sensor pin through resistor for the status read. I'll try to find the diagram later.
-
Thank you very much for the pictures @frankie and @Tigroenot !
No 74HC238 on the single switch which can be understood as it's not necessary, with one switch there are enough pins to drive the relay. But it's nicer in the US(AU) world as they are using the same PCB for both and just mounting one relay and one sensor.
On the Russian schematic it is not matching the board you have photographed @frankie as it has a 12 pins connector (2x6) instead of 14 (2x7) on yours (and mine, too). From what I see your board is very similar similar to mine with the 74HC238 and the pins are different than on the schematic. I'm a bit confused with this as this schematic seems to manage 2 buttons/relays.
HC238 will decode value sent by 3 pins on the connector, and set HIGH one of it's 8 outputs based on the binary value. For example, if input is 000 then output 0 is high, if input is 010 then output 2 is high, etc. All other outputs of the 74HC238 are low.
This is done because they are using bistable relays. For each relay there is a SET latch to switch on, and RESET latch to switch off. When it's not switching, the relays stays in it's state without consuming any power. This is a smart way of doing the board to keep it low power, but you need 2 pins for each relay which the PIC controller on the sensor board doesn't have. As they use the 74HC238 they can command up to 4 relays.I used my multimeter and datasheets for the 2ICs to find out how they were connected and this is what I found out for my switch, US(AU) with 1 or 3 buttons/relays. I'm not saying you have the same mapping, you should check the datasheets to find out the input pins on the 74HC238 and verify with your multimeter to which pin of the connector they are connected.
Pinout (only for the pins I'm interested in...). Big squares at the top are the mains connectors.

Pinout of the 74HC238 :

Values on the connector pins to switch on/off the relays:

-
https://geektimes.ru/post/258366/ здесь описание библиотеки для эмуляции радио протокола, если получится ее использовать то можно будет подключиться к светодиодам для получения статуса, а управлять с ее помощью
-
Too I´m start working to provide a universal way to feedback status (for HA) to all my Livolo switches. My main concern is how can get enought supply current to my radio circuit (actually im thinking on ESP8266) from a standard connected switch (only the live AC wire avaible for supply on switch wall case) because needed about 3/5 V with 300 ma (peak when wi-fi are at full work) and I cannot see how the supply circuit in the livolo switch can provide that enough amount of power to supply this element.
I cannot see nothing clear how can draw that amount of current trough "any" load connected over the switch...@DJONvl or anyone had well tested what amount of power supply (3V or 5V,) can "secure" draw trough standard connected Livolo switch ?
Can any confirm if that circuit arduino+nrf24 have self power supply (additional) and how need connected and mainly how much current drawn arduino+nrf24 when they are full working ?
That guys https://www.youtube.com/watch?v=Ny8Rt75he0A had working a circuit (comercial purposes) but seems use aditional power supply for that.
Regards
-
Those guys have an additional 12 v power wire in the switch mounting, the wire fore 12v power has been put there during the construction.
The power supply in livolo switches is capable to make up to 250mA current. So I suppose it is not possible to feed the esp8266, but more than enough to power the 328p and Nrf24 radio. Currently I have one double button livolo switch running for a week or so with no issues whatsoever. But you have to change the BOD fuses to 1,8 v. Running at 2,7 bod causes reboot at sending data.
Drawing more power from livolo power supply is not hard, but your load has to be at least 40w light bulbs. -
Those guys have an additional 12 v power wire in the switch mounting, the wire fore 12v power has been put there during the construction.
The power supply in livolo switches is capable to make up to 250mA current. So I suppose it is not possible to feed the esp8266, but more than enough to power the 328p and Nrf24 radio. Currently I have one double button livolo switch running for a week or so with no issues whatsoever. But you have to change the BOD fuses to 1,8 v. Running at 2,7 bod causes reboot at sending data.
Drawing more power from livolo power supply is not hard, but your load has to be at least 40w light bulbs.@Tigroenot Thank you for your quick reply.
I think additional power supply is not the right path for that, because needed modify all house wiring is a real pain and most costly solution.If 250ma drawn current is avaiable from livolo switch I think is really so close for the "calculate" needs for a esp8266, so maybe is time to real test it and see what happends but If esp cannot not work properly it does not matter because you say have stable working arduino+nrf24 that is equal good solution or in some cases maybe better than an alone esp.
Maybe we always easily can add one parallel capacitor at loads (any 0,47nf X2 400V rated or livolo can provide someone too) to increase load current drawn if we find that some switch cannot drawn enough power from his load?
Regards
-
Hello Tigroenot, you have the EU version of livolo correct?
Can you please post a schematic on how you performed the Boost to the power supply? I'm using mysensors+nrf24 so I just need arround 20ma power.
Thank you. -
@Tigroenot Thank you for your quick reply.
I think additional power supply is not the right path for that, because needed modify all house wiring is a real pain and most costly solution.If 250ma drawn current is avaiable from livolo switch I think is really so close for the "calculate" needs for a esp8266, so maybe is time to real test it and see what happends but If esp cannot not work properly it does not matter because you say have stable working arduino+nrf24 that is equal good solution or in some cases maybe better than an alone esp.
Maybe we always easily can add one parallel capacitor at loads (any 0,47nf X2 400V rated or livolo can provide someone too) to increase load current drawn if we find that some switch cannot drawn enough power from his load?
Regards
@jirm
@Tigroenot .The BOD fuses you mean that we need forced to work the 328p at 1.8V and not at 2.7V as default is usually done?
How do you power the arduino + nrf24 circuit?
From what voltage of the switch livolo and since what "pins" ?.
I am not able to see exactly where to extract the feed (in the real circuit board) of the plate on the livolo (I use the version 2016 EU of switches).
You could put some schematic and / or pics regarding how to connect the feed on the livolo board because in the posts I have seen above I am not able to verify it in what correspond at least to my EU version switches?
regards -
I have the pictures, but I have to resize them so the forum engine accepts. I will do it at work tomorrow.
In two words you need to bypass the big resistor that feeds the transformator and decrease the resistance of the voltage divider that controls the mosfet in the primary coil of the trans. I'll provide the pictures.
Can you please show the lower board of the 2016 model switch?P. S. And by the way I didn't find a proper way to control the esp switch in domoticz. I need to have two dummy switches - one for state and one for changing state. I used espEasy and Lua scripts both but no luck... With MySensors it is IMHO the proper way :)
-
I have the pictures, but I have to resize them so the forum engine accepts. I will do it at work tomorrow.
In two words you need to bypass the big resistor that feeds the transformator and decrease the resistance of the voltage divider that controls the mosfet in the primary coil of the trans. I'll provide the pictures.
Can you please show the lower board of the 2016 model switch?P. S. And by the way I didn't find a proper way to control the esp switch in domoticz. I need to have two dummy switches - one for state and one for changing state. I used espEasy and Lua scripts both but no luck... With MySensors it is IMHO the proper way :)
@Tigroenot Ok I wait your pics. I half understand that you say we need to do but better "see" how do it that not suposse because is easy to kill the switch if that is not do it propperly.
I have same problems than you to post here pics from my switch boards and so on (I have all my house with livolo´s... near 40 switch) and need too some time to take good pics and feet to post it here, but tomorrow can upload some of them.See you
-
I have the pictures, but I have to resize them so the forum engine accepts. I will do it at work tomorrow.
In two words you need to bypass the big resistor that feeds the transformator and decrease the resistance of the voltage divider that controls the mosfet in the primary coil of the trans. I'll provide the pictures.
Can you please show the lower board of the 2016 model switch?P. S. And by the way I didn't find a proper way to control the esp switch in domoticz. I need to have two dummy switches - one for state and one for changing state. I used espEasy and Lua scripts both but no luck... With MySensors it is IMHO the proper way :)
@Tigroenot Sorry I dont know Domoticz, and only few little steps in Home Assistant and in past some on Openhab...but I belive that any people there in Domoticz forums can help you for sure to make that work.
I only "ear" that easyesp is so "easy" to make it work with domoticz and for sure you know is trivial for setup easyesp to work a simple relay with any easpeasy sketch for that.
I dont know your exactly issue and how to help you better and also I'm a real newby in any home system, just starting now only with some few steps starting to try to make work livolo's like I want with a realiable (and hope easy way) to provide a good feedback status from them hope universal for any home automation system.
We need some look, but seems close to have some good results.
See you -
Are you saying that you can draw up to 250mA but when you transmit with NRF, which should consume less than 25mA, the power supply is already on it's knees and the voltage drops ?
It doesn't sound like a good idea to make any changes to the main voltage board to achieve this. Have you tried using a ceramic capacitor (100uF or more) to help the power supply when power consumption increases too quickly ? -
It's not just that. In the off state the switch is powered through a standby power circuit. When radio activates it draws power and the same moment the pic of the switch draws power, and the rele changes state to on also drawing a lot of power. All together it is a significant amount of power. So the voltage drops from 3v to 2,7-2,6 causing the brown out.
And the 250mA is in theory. With the trans used.


