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. 💬 Wireless Touch Switch: Relay Model - (For Livolo crystals)

💬 Wireless Touch Switch: Relay Model - (For Livolo crystals)

Scheduled Pinned Locked Moved OpenHardware.io
livolomysensorsrelaylight switchswitchlightnrf24l01
30 Posts 10 Posters 7.3k Views 9 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.
  • giridhararmG giridhararm

    nice can i start making pcb now ?

    G Offline
    G Offline
    giltesa
    Hardware Contributor
    wrote on last edited by giltesa
    #12

    Hello @giridhararm,

    In this version of the PCB all the features work correctly, except the signature that I have not yet tried but should work without problems.

    You can manufacture the PCBs, although my recommendation is that you wait (it will take several months). A problem with the current version is that once the cables are screwed to the switch, it takes a lot of effort to place the switch in the wall box because the cables rub against the box.
    That's why I bought these connectors with superior insertion of the cables, and redesigned the 3D model:

    alt text
    alt text

    It is possible that I also change the pinout of the microcontroller in the next version to take better advantage of the PWM pins... I still do not know if they are necessary to control a Triac, in case of not being necessary I will leave the flash chip in its original pin and connect the blue led to a PWM pin.

    Edit:
    I have cut with the Dremel the holes in the new position (they are deflected towards the inside of the plate 1mm) after the welded the new connector, it is perfect!
    alt text

    1 Reply Last reply
    1
    • giridhararmG Offline
      giridhararmG Offline
      giridhararm
      wrote on last edited by
      #13

      thank you will wait :) but really appreciated

      1 Reply Last reply
      0
      • G giltesa

        @giltesa
        Having customized the CS pin of the flash chip, the bootloader should not know the pin.
        I have to compile the bootloader with the correct pin.

        Edit: I've already got the FOTA updates working, later I'll write more information.

        G Offline
        G Offline
        giltesa
        Hardware Contributor
        wrote on last edited by
        #14

        @giltesa said in 💬 Wireless Touch Switch: Relay Model - (For Livolo crystals):

        @giltesa
        Having customized the CS pin of the flash chip, the bootloader should not know the pin.
        I have to compile the bootloader with the correct pin.

        Edit: I've already got the FOTA updates working, later I'll write more information.

        The problem that the sketch if I knew how to burn the new code in the flash memory, but the bootloader could not read it was because I had changed the SS pin that is used by default ... it is obvious but at the beginning it had not occurred to me , @kalina gave me the idea and told me how to compile a new bootloader, that is why I created a very detailed guide in my blog with all the steps, here I will place a summary since I am translating it with Google Translator and if I extend Surely it does not understand, I'm sorry for it.

        To create a new Dualoptiboot bootloader it is necessary to install Atmel Studio, we also need to download the Dualoptiboot source code, in my case use the MDMSGate project.

        Once both were downloaded, we installed Atmel Studio and imported the MDMSGate project.

        First we must customize the properties of the project, with the keyboard shortcut ALT+F7 the window will open automatically.
        In this window we have to customize these three fields: Make file Name, Build Commandline, and Clean Commandline.

        In the first field we must indicate the complete path, including the name of the file, of the Makefile file that we downloaded next to the MDMSGate project.
        In the second field we must indicate the compilation parameters such as the microcontroller model and the frequency of the crystal, (if we look at the code we will see that we can customize more things like making an LED flash when the bootloader is executed)
        The third field we leave in "clean"

        alt text

        Now in the code of the optiboot.c file you have to modify the Cable Select pin where the flash chip is connected.
        In the documentation of Arduino indicate the values of each pin, for pin A0 the codes correspond.
        https://www.arduino.cc/en/Reference/PortManipulation

        /******************* SPI FLASH Code **********************************/
        #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
          #define FLASHSS_DDR     DDRC  // <<= Value 1: "Memory address where the pin block is located"
          #define FLASHSS_PORT    PORTC // <<= Value 2: "Block of pins"
          #define FLASHSS         PINC0 // <<= Value 3: "Pin 0 of the indicated pin block (For A0)"
          #define SS              PINB2
        #elif defined (__AVR_ATmega1284P__) || defined (__AVR_ATmega644P__)
          #define FLASHSS_DDR     DDRC
          #define FLASHSS_PORT    PORTC
          #define FLASHSS         PINC7
          #define SS              PINB4
        #endif
        
          //SPI INIT
        #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
          DDRB |= _BV(SS) | _BV(PB3) | _BV(PB5);
          DDRC |= _BV(FLASHSS);  //OUTPUT for FLASH_SS // <<= Value 4:Inicialización del pin SS 
          FLASH_UNSELECT;
          PORTB |= _BV(SS);
        #elif defined (__AVR_ATmega1284P__) || defined (__AVR_ATmega644P__)
          DDRC |= _BV(FLASHSS); //OUTPUT for FLASH_SS
          DDRB |= _BV(SS) | _BV(PB5) | _BV(PB7);
          FLASH_UNSELECT;
          PORTB |= _BV(SS);
        #endif
        

        Finally, we will only need to execute the code, with the green button in the form of a triangle / play, or with the F5 key) and in the project directory the new bootloader file will be created.

        1 Reply Last reply
        0
        • G Offline
          G Offline
          giltesa
          Hardware Contributor
          wrote on last edited by
          #15

          I have modified the code to send the temperature every minute, when both relays are off the temperature of the feed funete is 35ºC, when the relays are active is 55ºC. (On the test board, it is not embedded in the wall)

          https://giltesa.com/wp-content/uploads/2018/01/Touch-Switch-Temp.txt

          1 Reply Last reply
          0
          • T Offline
            T Offline
            TeT
            wrote on last edited by
            #16

            Hello! Realy good job!
            Dimmer good idea too. :+1:
            Did you plan to do livolo two gang ? and roller shutter witch current detection?

            G 1 Reply Last reply
            0
            • T TeT

              Hello! Realy good job!
              Dimmer good idea too. :+1:
              Did you plan to do livolo two gang ? and roller shutter witch current detection?

              G Offline
              G Offline
              giltesa
              Hardware Contributor
              wrote on last edited by
              #17

              Hello @tet

              This circuit does not allow to regulate the light of the lamps, the circuit that will allow it is this other (only changes the red PCB):
              https://forum.mysensors.org/topic/8952/wireless-touch-switch-triac-model-for-livolo-crystals

              However, as it puts in that thread, I am having problems with the regulation of brightness, today I have arrived a new Philips bulb and it works much better than the Ikea bulb however it keeps blinking, I am going to buy some new triacs and optocouplers to see if those work better.

              As for your questions, I had not planned to make a switch with two tactile pushbuttons, I think it is uncomfortable to press when there is more than one pushbutton since you have to be aware of which area of ​​the crystal you press, however now you can press with the palm hand in any area to have a single button. In any case, doing that is not complicated and since I am going to share all the files, anyone can customize the plate to their liking.

              Does current detection have utility? Is it to know the consumption of the lamp? If it is for that I do not think it is useful to measure the consumption of the lamps independently, I had thought to make a current measurement node that was installed in the electrical panel and there measure the areas that interested me, for example the kitchen.

              Kind regards.

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TeT
                wrote on last edited by
                #18

                I would like to know if you plan to do a roller shutter node (for up and down store)?
                current detection is to mesure the time to up or down the store. And calculate position in %.
                2 gang one for up and the other for down :relaxed:

                G 1 Reply Last reply
                0
                • T TeT

                  I would like to know if you plan to do a roller shutter node (for up and down store)?
                  current detection is to mesure the time to up or down the store. And calculate position in %.
                  2 gang one for up and the other for down :relaxed:

                  G Offline
                  G Offline
                  giltesa
                  Hardware Contributor
                  wrote on last edited by
                  #19

                  @tet said in 💬 Wireless Touch Switch: Relay Model - (For Livolo crystals):

                  I would like to know if you plan to do a roller shutter node (for up and down store)?
                  current detection is to mesure the time to up or down the store. And calculate position in %.
                  2 gang one for up and the other for down

                  My idea is to design all the nodes that I need, for now I am developing these four:

                  Touch push button, relay type
                  Touch push button, triac type
                  Multi purpose sensor: Doors, windows, temperature, humidity, light, and three expansion connectors.
                  Remote control

                  When I finish them I also want to make:

                  LED strip controller WRGB 12V
                  Clamp sensor SCT-013 for electrical panel.
                  PIR sensor
                  Plug with relay
                  Roller shutter
                  Boiler control (or maybe buy it if it is compatible with the control software)

                  As you see my intention is to also design the node to control the blinds, I think the easiest thing would be to manufacture a PCB that is installed inside the double switch of the blind and activate the pulsations. I have not yet documented on how it works but I think that something like that should give good results, all the work would be done by the roller blind electronica, the node would only activate the button (with transistor/ssr).

                  I must also say that now I do not have a house where to install all these nodes so I am testing them in my test panel but not in a real environment...

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giltesa
                    Hardware Contributor
                    wrote on last edited by
                    #20

                    I just ordered to manufacture the next version of the PCB, actually I also sent to manufacture the other 4 modules.
                    When the PCBs arrive and perform the necessary tests, I will publish the updated files.

                    On the work panel and openhardware.io there are images of all the modules / nodes.

                    S 1 Reply Last reply
                    1
                    • G giltesa

                      I just ordered to manufacture the next version of the PCB, actually I also sent to manufacture the other 4 modules.
                      When the PCBs arrive and perform the necessary tests, I will publish the updated files.

                      On the work panel and openhardware.io there are images of all the modules / nodes.

                      S Offline
                      S Offline
                      shabba
                      wrote on last edited by
                      #21

                      @giltesa Looking forward to seeing results! Great work.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        giltesa
                        Hardware Contributor
                        wrote on last edited by
                        #22

                        I have published all the documentation in a Github repository. If someone wants to make PCBs, I recommend that you wait a little longer until you receive my PCBs and try them.

                        https://github.com/giltesa/SmartHome

                        1 Reply Last reply
                        0
                        • G Offline
                          G Offline
                          giltesa
                          Hardware Contributor
                          wrote on last edited by giltesa
                          #23

                          Today the new PCBs have arrived, I will try to weld them this week!

                          alt text

                          By the way, I present the Wireless Touch Switch node to the pcbway.com contest and I won the third prize for best design :)

                          https://www.pcbway.com/blog/News/Winner_List_of_2017_2018_PCBWay_First_PCB_Design_Contest.html

                          S 1 Reply Last reply
                          1
                          • G giltesa

                            Today the new PCBs have arrived, I will try to weld them this week!

                            alt text

                            By the way, I present the Wireless Touch Switch node to the pcbway.com contest and I won the third prize for best design :)

                            https://www.pcbway.com/blog/News/Winner_List_of_2017_2018_PCBWay_First_PCB_Design_Contest.html

                            S Offline
                            S Offline
                            shabba
                            wrote on last edited by
                            #24

                            @giltesa Congrats!

                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              marcusakamg7
                              wrote on last edited by
                              #25

                              Would this work in the US version light switch?

                              G 1 Reply Last reply
                              0
                              • M marcusakamg7

                                Would this work in the US version light switch?

                                G Offline
                                G Offline
                                giltesa
                                Hardware Contributor
                                wrote on last edited by giltesa
                                #26

                                @marcusakamg7 said in 💬 Wireless Touch Switch: Relay Model - (For Livolo crystals):

                                Would this work in the US version light switch?

                                Yes, you can use it perfectly, both the power supply and the relays allow a voltage range of 90~264V and 0~240V AC respectively.

                                Edit: Investigate if the EU switches can be screwed into the wall box of the US switches.
                                I have used this standard size box:
                                https://translate.google.com/translate?sl=es&tl=en&js=y&prev=_t&hl=es&ie=UTF-8&u=http%3A%2F%2Fwww.leroymerlin.es%2Ffp%2F14004172%2Fcaja-de-empotrar-imprex-interruptores-y-enchufes&edit-text=

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  marcusakamg7
                                  wrote on last edited by
                                  #27

                                  well i mean i have livolo crystal (US) switch and was wondering if your pcb would work with it?
                                  https://www.ebay.com/itm/Livolo-Touch-Screen-Switch-with-White-Crystal-Glass-Panel-US-standard/172969628674?hash=item2845cb1402:m:m8U0RNT_lW0oZAr9my3wYKg
                                  I notice the gang box is different in the (US) model.

                                  G 1 Reply Last reply
                                  0
                                  • M marcusakamg7

                                    well i mean i have livolo crystal (US) switch and was wondering if your pcb would work with it?
                                    https://www.ebay.com/itm/Livolo-Touch-Screen-Switch-with-White-Crystal-Glass-Panel-US-standard/172969628674?hash=item2845cb1402:m:m8U0RNT_lW0oZAr9my3wYKg
                                    I notice the gang box is different in the (US) model.

                                    G Offline
                                    G Offline
                                    giltesa
                                    Hardware Contributor
                                    wrote on last edited by
                                    #28

                                    @marcusakamg7

                                    It is not compatible, you just have to see that the shape of the glass and the frame that holds it is completely different to the EU version, and if it was compatible Livolo would not have bothered to make several versions.

                                    alt text

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      dzungpham0703
                                      wrote on last edited by
                                      #29

                                      @giltesa where do you buy "HTTM light reflector"?

                                      G 1 Reply Last reply
                                      0
                                      • D dzungpham0703

                                        @giltesa where do you buy "HTTM light reflector"?

                                        G Offline
                                        G Offline
                                        giltesa
                                        Hardware Contributor
                                        wrote on last edited by giltesa
                                        #30

                                        @dzungpham0703

                                        I buy them on Aliexpress:
                                        https://www.aliexpress.com/wholesale?catId=0&initiative_id=SB_20180706102504&SearchText=HTTM

                                        If you apply hot air it is easy to take off the white "double sided tape" and the plastic.

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


                                        10

                                        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