Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. OpenHardware.io
  3. 💬 Livolo 3 buttons US/AU switch adapter

💬 Livolo 3 buttons US/AU switch adapter

Scheduled Pinned Locked Moved OpenHardware.io
contest2017livolowall switchusaumysensorsswitch
75 Posts 12 Posters 21.9k Views 11 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A achurak1

    @Nca78 - only 500 pieces :) That's OK though, they're cheap, I already ordered the 0603 ones, just hoping my soldering skills are going to be enough for that size. Let me know as soon as you decide on the res/cap packages. I have only 0805, but can order something else if needed.
    Thanks for keeping me in the loop and hope you will be able to crack that protocol!

    Nca78N Offline
    Nca78N Offline
    Nca78
    Hardware Contributor
    wrote on last edited by
    #49

    @achurak1 I managed to keep everything else in the same size, that's more convenient for me to solder too :D

    Nearly finished, I'll try to see tomorrow how the 2 boards discuss, then connect necessary digital pins and put back extra leds with the pins I have left.
    0_1497985334913_Board.png

    1 Reply Last reply
    1
    • Nca78N Offline
      Nca78N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by
      #50

      Unfortunately it's not that easy to understand. After double checking I realized they connected TX to TX and RX to RX so it's not serial communication.
      I'm trying to check with logic analyser but I'm not very talented with that :D

      tonnerre33T 1 Reply Last reply
      0
      • Nca78N Nca78

        Unfortunately it's not that easy to understand. After double checking I realized they connected TX to TX and RX to RX so it's not serial communication.
        I'm trying to check with logic analyser but I'm not very talented with that :D

        tonnerre33T Offline
        tonnerre33T Offline
        tonnerre33
        Hardware Contributor
        wrote on last edited by tonnerre33
        #51

        @Nca78 said in 💬 Livolo 3 buttons US/AU switch adapter:

        In the livolo EU board, the RX and TX pin are for the radio. It's the same PCB all the time, they just put or not the 433MHZ radio ;)

        Nca78N 1 Reply Last reply
        0
        • tonnerre33T tonnerre33

          @Nca78 said in 💬 Livolo 3 buttons US/AU switch adapter:

          In the livolo EU board, the RX and TX pin are for the radio. It's the same PCB all the time, they just put or not the 433MHZ radio ;)

          Nca78N Offline
          Nca78N Offline
          Nca78
          Hardware Contributor
          wrote on last edited by
          #52

          @tonnerre33 but they are connected to the PIC MCU on the main PCB, that would make no sense if those pins were used with the radio ?

          tonnerre33T 1 Reply Last reply
          0
          • Nca78N Offline
            Nca78N Offline
            Nca78
            Hardware Contributor
            wrote on last edited by
            #53

            And I have synchronized signals on the 3 pin too (TX, RX and RB4 pin). The TX and RX pins are obviously those used for communication as the signal on those pin always follow a level change on RB4 pin.

            0_1498056188460_analyzer.png

            1 Reply Last reply
            0
            • Nca78N Nca78

              @tonnerre33 but they are connected to the PIC MCU on the main PCB, that would make no sense if those pins were used with the radio ?

              tonnerre33T Offline
              tonnerre33T Offline
              tonnerre33
              Hardware Contributor
              wrote on last edited by tonnerre33
              #54

              @Nca78 said in 💬 Livolo 3 buttons US/AU switch adapter:
              It's true. Can you take a picture of you pic mcu main board ? It's for compare with my EU board ;)

              Nca78N 1 Reply Last reply
              0
              • tonnerre33T tonnerre33

                @Nca78 said in 💬 Livolo 3 buttons US/AU switch adapter:
                It's true. Can you take a picture of you pic mcu main board ? It's for compare with my EU board ;)

                Nca78N Offline
                Nca78N Offline
                Nca78
                Hardware Contributor
                wrote on last edited by
                #55

                @tonnerre33 sure, here you are.

                Pins I'm checking with the logic analyser are connected to the PIC using the R1, R3, R4 200 Ohms resistors (top right of the PIC) they are the only ones I see connected to the PIC.
                0_1498114935822_IMAG1771.jpg

                1 Reply Last reply
                0
                • Nca78N Offline
                  Nca78N Offline
                  Nca78
                  Hardware Contributor
                  wrote on last edited by
                  #56

                  So maybe I will need help/advice from someone who has a bit of knowledge about this kind of data exchange between 2 processors, to see if it rings a bell for them... @scalz maybe (sorry to bother you :))

                  Channel 2 is connected to RA4 (touch PCB PIC) and RB4 (main PCB PIC). It's obviously a clock signal, at 25Hz, 50% duty cycle. Each edge (raising and falling) generates pulses on the 2 other pins.
                  0_1498115333868_analyser_0_Clock.png

                  Channel 0 is connected to pin RB7/TX/CK.
                  Channel 1 is connected to pin RB5/AN11/RX/DT
                  What I see is this base signal, with some pulse that are always repeated every 20ms:

                  • edge on C2 triggers pulses on C0 and C1 (both at the same time) with a 12us delay. I call them "start" pulses later.
                  • C1 pulse lasts 16us, it's falling edge triggers a falling edge on C0 with 10us delay
                  • after 260us there is another pulse on C1, triggering another pulse on C0 with a 10us delay. I call them "end" pulses later.
                  • C1 pulse last 40us, C0 pulse 152us
                  • duration between start and end pulses is always the same (468us)

                  0_1498118808938_analyser_1_NoPulse.png

                  Adding to that base signal, I have some "extra" pulses that appear between the start/end pulses, in 3 different

                  • pulse on C1 208us after start pulse ,
                  • pulse on C1 208us after start pulse, followed 10us later by another pulse on C0 with 10us delay
                  • pulso on C1 156us after start pulse, no pulse on C1. I've seen this case only once. Signal repeated 7 times then

                  I have not seen the case where a pulse on C1 happens after a pulse on C0, but maybe it happened and I just missed it as it's pretty hard to search in the logic software for this case ...

                  As the pulses always have the same duration, my stupid guess is middle pulse between start end end pulse = 1, no middle pulse = 0. Plausible ? Not ? Anything specific I should check ?
                  Any suggestion is welcome :)

                  0_1498119263609_analyser_3_BPulse.png
                  0_1498119271061_analyser_4_2Pulse.png
                  0_1498119252439_analyser_2_TPulse.png

                  1 Reply Last reply
                  0
                  • A achurak1

                    @Nca78 - only 500 pieces :) That's OK though, they're cheap, I already ordered the 0603 ones, just hoping my soldering skills are going to be enough for that size. Let me know as soon as you decide on the res/cap packages. I have only 0805, but can order something else if needed.
                    Thanks for keeping me in the loop and hope you will be able to crack that protocol!

                    Nca78N Offline
                    Nca78N Offline
                    Nca78
                    Hardware Contributor
                    wrote on last edited by
                    #57

                    @achurak1 I'll give up on the dimmer at the moment as I need to spend more time on my NModule projects.
                    I kept TX and RX pins connected as they can be used as normal digital pins, and I connected D3 to what I see is the clock pin so it should be possible to use dimmers in the future.
                    I have 3 extra LEDs in place but #4 is challenging to route so maybe I will not put it.
                    I'm thinking about a version with ws2812b too as it would be much more convenient than those extra LEDs, both to route and to use.

                    1 Reply Last reply
                    0
                    • scalzS Offline
                      scalzS Offline
                      scalz
                      Hardware Contributor
                      wrote on last edited by scalz
                      #58

                      @Nca78
                      sorry i miss time to take a look at your project actually. will do it later if i can, as it's always easier with the hardware for debugging this. I don't have this livolo version, only a one button version, but i'm still wondering how much it costs to use a Livolo+custom made mysensors board VS redesigning completely one

                      Nca78N 1 Reply Last reply
                      0
                      • scalzS scalz

                        @Nca78
                        sorry i miss time to take a look at your project actually. will do it later if i can, as it's always easier with the hardware for debugging this. I don't have this livolo version, only a one button version, but i'm still wondering how much it costs to use a Livolo+custom made mysensors board VS redesigning completely one

                        Nca78N Offline
                        Nca78N Offline
                        Nca78
                        Hardware Contributor
                        wrote on last edited by
                        #59

                        @scalz said in 💬 Livolo 3 buttons US/AU switch adapter:

                        @Nca78
                        sorry i miss time to take a look at your project actually. will do it later if i can, as it's always easier with the hardware for debugging this. I don't have this livolo version, only a one button version, but i'm still wondering how much it costs to use a Livolo+custom made mysensors board VS redesigning completely one

                        Thank you but I just wanted to know if you had seen something like that before ? Any lead to protocole/example/anything that could make me on the right track (or not, as long as I learn something I won't complain) is welcome :)

                        For redesigning one, well this kind of power supply using live wire only is beyond my knowledge at the moment, and I can't pull neutral wire to have it in my switches. For around 20€ delivered for a full Livolo switch it costs 25-30€ to have a MySensors version, I'm not sure there's much money to save

                        A 1 Reply Last reply
                        0
                        • Nca78N Nca78

                          @scalz said in 💬 Livolo 3 buttons US/AU switch adapter:

                          @Nca78
                          sorry i miss time to take a look at your project actually. will do it later if i can, as it's always easier with the hardware for debugging this. I don't have this livolo version, only a one button version, but i'm still wondering how much it costs to use a Livolo+custom made mysensors board VS redesigning completely one

                          Thank you but I just wanted to know if you had seen something like that before ? Any lead to protocole/example/anything that could make me on the right track (or not, as long as I learn something I won't complain) is welcome :)

                          For redesigning one, well this kind of power supply using live wire only is beyond my knowledge at the moment, and I can't pull neutral wire to have it in my switches. For around 20€ delivered for a full Livolo switch it costs 25-30€ to have a MySensors version, I'm not sure there's much money to save

                          A Offline
                          A Offline
                          achurak1
                          wrote on last edited by
                          #60

                          @Nca78 - Hi! Haven't heard from your for quite some time :) Any progress with this? Were you able to resolve the poor sensitivity issues?

                          Nca78N 1 Reply Last reply
                          0
                          • A achurak1

                            @Nca78 - Hi! Haven't heard from your for quite some time :) Any progress with this? Were you able to resolve the poor sensitivity issues?

                            Nca78N Offline
                            Nca78N Offline
                            Nca78
                            Hardware Contributor
                            wrote on last edited by
                            #61

                            @achurak1 said in 💬 Livolo 3 buttons US/AU switch adapter:

                            @Nca78 - Hi! Haven't heard from your for quite some time :) Any progress with this? Were you able to resolve the poor sensitivity issues?

                            Hello !
                            Sorry I'm testing NModule and all shields at the moment.
                            Then I'll work on this again and make some PCBs.

                            A 1 Reply Last reply
                            0
                            • Nca78N Nca78

                              @achurak1 said in 💬 Livolo 3 buttons US/AU switch adapter:

                              @Nca78 - Hi! Haven't heard from your for quite some time :) Any progress with this? Were you able to resolve the poor sensitivity issues?

                              Hello !
                              Sorry I'm testing NModule and all shields at the moment.
                              Then I'll work on this again and make some PCBs.

                              A Offline
                              A Offline
                              achurak1
                              wrote on last edited by
                              #62

                              @Nca78 - I'm not sure if you've seen this or not, but someone seems to have managed to crack the dimmer protocol in this thread: https://forum.mysensors.org/topic/2775/livolo-glass-panel-touch-light-wall-switch-arduino-433mhz

                              Nca78N 1 Reply Last reply
                              0
                              • A achurak1

                                @Nca78 - I'm not sure if you've seen this or not, but someone seems to have managed to crack the dimmer protocol in this thread: https://forum.mysensors.org/topic/2775/livolo-glass-panel-touch-light-wall-switch-arduino-433mhz

                                Nca78N Offline
                                Nca78N Offline
                                Nca78
                                Hardware Contributor
                                wrote on last edited by
                                #63

                                @achurak1 yes I have seen, I will have a look again :)

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  DenisPac
                                  wrote on last edited by
                                  #64

                                  @Nca78, yes very interesting in Livolo hacking in order to get feedback status that is not available by default. Any progress on your end?

                                  Nca78N 1 Reply Last reply
                                  0
                                  • D DenisPac

                                    @Nca78, yes very interesting in Livolo hacking in order to get feedback status that is not available by default. Any progress on your end?

                                    Nca78N Offline
                                    Nca78N Offline
                                    Nca78
                                    Hardware Contributor
                                    wrote on last edited by
                                    #65

                                    @DenisPac said in 💬 Livolo 3 buttons US/AU switch adapter:

                                    Any progress on your end?

                                    Not yet, I'm still testing other boards, then I will fix a batch of PCBs including this one and order.
                                    Not sure if I keep the many leds or if I try to put a ws2812b though...

                                    1 Reply Last reply
                                    0
                                    • Nca78N Offline
                                      Nca78N Offline
                                      Nca78
                                      Hardware Contributor
                                      wrote on last edited by
                                      #66

                                      Hello, I have finally finished a new version of this board, I will double check tomorrow and order PCB before end of week.

                                      Changes :

                                      • radio moved between 2 buttons, it should fix the touch sensing problem on the third button
                                      • touch pads improved using restrict layers to keep constant distance between touch electrode and ground planes, it should give much more margin to set sensitivity of each pad with the Cs capacitors of the TTP223
                                      • added a ws2812B for middle button instead of the "extra leds". I'm not 100% sure that it will work...
                                      • rearranged all components on the PCB, so they are properly aligned instead of the mess it was before
                                      1 Reply Last reply
                                      1
                                      • Nca78N Offline
                                        Nca78N Offline
                                        Nca78
                                        Hardware Contributor
                                        wrote on last edited by
                                        #67

                                        I assembled a new board and quickly tested on a switch. There's a software bug that prevents the relays to switch and I'm out of SMD leds, so it was a bit difficult to test efficiently, but I could check on domoticz if buttons were activated, good news is it works for the 3 buttons so I can keep this design.
                                        I put the SK6812 on central button and it can run but unfortunately it's too thick so light is not visible when glass cover is on :( Meaning I'll have to make a new version with SK6812mini which is thinner (less than 1mm against 1.6), or use a RGB side led which is not a convenient solution as atmega is missing pins and PWM capabilities. So I guess I'll try the mini version first to try to keep the component count as low as possible.

                                        Tomorrow I'll steak some leds from another project and make more tests for touch to make sure the problem on third button is solved.

                                        (meanwhile the old version PCB is great for one button switches, I installed one 2 months ago and it's been running perfectly, 100% instant response by touch or via controller).

                                        1 Reply Last reply
                                        2
                                        • H Offline
                                          H Offline
                                          htko89
                                          wrote on last edited by
                                          #68

                                          I'm very interested in this project. I suppose it isn't too hard for me to swap the microcontrollers to something like an ESP or Photon? I just want WIFI capability :) I never bought anything on openhardware / mysensors before, does this come with all parts soldered (plug and play), or will I have to assemble?

                                          Sorry for all the questions!! Thanks

                                          Nca78N 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          7

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular