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. 💬 4-channel switcher/dimmer

💬 4-channel switcher/dimmer

Scheduled Pinned Locked Moved OpenHardware.io
contest2017mysensorsdimmer
28 Posts 10 Posters 8.5k 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.
  • tonnerre33T Offline
    tonnerre33T Offline
    tonnerre33
    Hardware Contributor
    wrote on last edited by
    #8

    Thanks you very much for this work ;)

    I have only few comments about the security issue :

    • In france, we only put the fuse on the phase, never on the neutral because if the fuse blows, we cut the dangerous potential (230V)
    • Will you add a varistor for increase the protection of this board ?
    HouseIOTH 1 Reply Last reply
    0
    • tonnerre33T tonnerre33

      Thanks you very much for this work ;)

      I have only few comments about the security issue :

      • In france, we only put the fuse on the phase, never on the neutral because if the fuse blows, we cut the dangerous potential (230V)
      • Will you add a varistor for increase the protection of this board ?
      HouseIOTH Offline
      HouseIOTH Offline
      HouseIOT
      wrote on last edited by
      #9

      @tonnerre33,
      Thank you for your interest to my device.
      The fuse installed to protect the mains 220V from short circuit in the device. Phase need to be connected to the device through a circuit breaker. It will protect from dangerous potential and this allows the lamps to be served safely. But you're right. It would be properly to put the fuse on the phase.

      Looking at my experience I can say that never had a problem without varistor. But probably in the future I will add it to the board.

      S 1 Reply Last reply
      1
      • HouseIOTH HouseIOT

        @tonnerre33,
        Thank you for your interest to my device.
        The fuse installed to protect the mains 220V from short circuit in the device. Phase need to be connected to the device through a circuit breaker. It will protect from dangerous potential and this allows the lamps to be served safely. But you're right. It would be properly to put the fuse on the phase.

        Looking at my experience I can say that never had a problem without varistor. But probably in the future I will add it to the board.

        S Offline
        S Offline
        Samuel235
        Hardware Contributor
        wrote on last edited by
        #10

        @HouseIOT - From my understanding of a varistor: it stops voltage spikes and voltage spikes are the things that causes arcs and therefore shorts on the board. I would include one, i do on my modules anyway.

        MySensors 2.1.1
        Controller - OpenHAB (Virtual Machine)
        Gateway - Arduino Mega MQTT Gateway W5100

        HouseIOTH 1 Reply Last reply
        2
        • S Samuel235

          @HouseIOT - From my understanding of a varistor: it stops voltage spikes and voltage spikes are the things that causes arcs and therefore shorts on the board. I would include one, i do on my modules anyway.

          HouseIOTH Offline
          HouseIOTH Offline
          HouseIOT
          wrote on last edited by
          #11

          @Samuel235, It is just my first project and it has some weaknesses. But thanks for the comment, I will use it in future.

          tonnerre33T S 2 Replies Last reply
          1
          • HouseIOTH HouseIOT

            @Samuel235, It is just my first project and it has some weaknesses. But thanks for the comment, I will use it in future.

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

            @HouseIOT said in 💬 4-channel switcher/dimmer:

            It is just my first project and it has some weaknesses

            It's a very good project for your first. I hope see many another projects from you ;)

            1 Reply Last reply
            1
            • HouseIOTH HouseIOT

              @Samuel235, It is just my first project and it has some weaknesses. But thanks for the comment, I will use it in future.

              S Offline
              S Offline
              Samuel235
              Hardware Contributor
              wrote on last edited by
              #13

              @HouseIOT - Not for a second was I point out mistakes to make you feel your first project wasn't good enough dude. Its a very nice project and i'm interested in using it to develop one myself. I'm just giving you my perspective on where to develop this board on your next revision, that is all :)

              MySensors 2.1.1
              Controller - OpenHAB (Virtual Machine)
              Gateway - Arduino Mega MQTT Gateway W5100

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

                hello,

                congrats for your first board :+1:
                if i can add a sidenote..
                hopefully you have never got problem without varistor. but imho, varistor should be "mandatory", it protects against overvoltage, storms for instance etc. It's not the same as a fuse, and should be always used in combination with a fuse.
                Googling will give you a lot of infos i think.
                My 2cents if this can help ;)

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DavidZH
                  wrote on last edited by
                  #15

                  @scalz

                  I agree with the comments about the varistor, it can certainly help with spikes. But only around 10 times. After that, the varistor will fail. Violently. In Europe, Australia and North America that will not be a big problem, but in countries with a little less reliable grid that could be within a year.
                  When the MOV fails, it will become a short across the live and neutral, so ALWAYS put your varistor/MOV behind the primary fuse so that that will blow and stop the current across. Otherwise you'll have a nice fire inside the switchbox...

                  little story: a friend of mine lives in the Carribean and they have a sketchy power grid there. One day the fridge was "tingly", so we start searching. Few minutes later: POOF!: magic smokes escapes from the power conditioner for the TV. OK. Something's really wrong here.
                  So we suspected the wiring because of the corrosive nature of the air there (warm, humid sea breeze). Switch off the power, and start opening switchboxes and outlets (all US 120V system), we start finding all sorts of weird stuff like a circuit that is spliced off, goes into the floor and exits in another box, that is also fed directly from the panel.....

                  So a few hours later we have checked everything, ripped out some unused wires and checked all connections and switch all back on. Still auchie on the fridge. So after a few minutes unplugging all appliances and socketstrips it was gone!

                  It was a socket strip with net filter. The MOVS had blown and created a short to earth. And since the US system does not use RCDs on all circuits that could go on for a while.

                  Moral of the story: MOVs can do good. And bad. Use them wisely!

                  1 Reply Last reply
                  2
                  • HouseIOTH HouseIOT

                    @tbowmo said in 💬 4-channel switcher/dimmer:

                    Would you mind adding the schematics as a PDF file

                    Yes, I add it soon.

                    hhaliboH Offline
                    hhaliboH Offline
                    hhalibo
                    wrote on last edited by
                    #16

                    @HouseIOT There's missing a hole of C170_1493528212379_20170430125409.jpg

                    1 Reply Last reply
                    0
                    • Andrea BoarinoA Offline
                      Andrea BoarinoA Offline
                      Andrea Boarino
                      wrote on last edited by
                      #17
                      This post is deleted!
                      HouseIOTH 1 Reply Last reply
                      0
                      • HouseIOTH HouseIOT

                        @tbowmo said in 💬 4-channel switcher/dimmer:

                        Would you mind adding the schematics as a PDF file

                        Yes, I add it soon.

                        hhaliboH Offline
                        hhaliboH Offline
                        hhalibo
                        wrote on last edited by hhalibo
                        #18

                        @HouseIOT As a newbie, I did a board completely following you schematics. But unfortunately,not working...

                        I use the MYsensores-bootloader(8Mhz,V1.5.4!), and I flashed your source ino-code into the board.

                        I can see the dimmer in the MYSController(as picture show), but there's no output from the X1.

                        My gateway is a esp8266 wifi gateway, version is 2.1.1 and it works fine.

                        PS: After testing job, the circuits of low voltage seems work well, shortcuts x5 and x2, the indicator led show lightness change(OFF, 30 & 100). The problem maybe in the Hi-voltage parts.

                        PLS help, THANKS a lot !
                        0_1496310192532_4ch-dimmer.jpg
                        0_1496310203983_4ch-dimmer001.jpg

                        HouseIOTH 1 Reply Last reply
                        0
                        • hhaliboH hhalibo

                          @HouseIOT As a newbie, I did a board completely following you schematics. But unfortunately,not working...

                          I use the MYsensores-bootloader(8Mhz,V1.5.4!), and I flashed your source ino-code into the board.

                          I can see the dimmer in the MYSController(as picture show), but there's no output from the X1.

                          My gateway is a esp8266 wifi gateway, version is 2.1.1 and it works fine.

                          PS: After testing job, the circuits of low voltage seems work well, shortcuts x5 and x2, the indicator led show lightness change(OFF, 30 & 100). The problem maybe in the Hi-voltage parts.

                          PLS help, THANKS a lot !
                          0_1496310192532_4ch-dimmer.jpg
                          0_1496310203983_4ch-dimmer001.jpg

                          HouseIOTH Offline
                          HouseIOTH Offline
                          HouseIOT
                          wrote on last edited by
                          #19

                          @hhalibo
                          Check for neutral and phase connected right. I can see only one wire of load connected to X1. Other one must be connected to neutral if on X4.1 is phase. Otherwise try to reduce down to zero R5,7,9,11. May be not open the optocouplers.

                          hhaliboH 1 Reply Last reply
                          0
                          • Andrea BoarinoA Andrea Boarino

                            This post is deleted!

                            HouseIOTH Offline
                            HouseIOTH Offline
                            HouseIOT
                            wrote on last edited by
                            #20

                            @Andrea-Boarino
                            Hi! It is Sanhe enclosure. I have bought it in Ukraine.

                            1 Reply Last reply
                            0
                            • HouseIOTH HouseIOT

                              @hhalibo
                              Check for neutral and phase connected right. I can see only one wire of load connected to X1. Other one must be connected to neutral if on X4.1 is phase. Otherwise try to reduce down to zero R5,7,9,11. May be not open the optocouplers.

                              hhaliboH Offline
                              hhaliboH Offline
                              hhalibo
                              wrote on last edited by
                              #21

                              @HouseIOT THANKS for rapid reply!

                              I changed the resistor(r5) to 0 as pitcture shown, no function...
                              0_1496319342078_4ch-dimmer002.jpg

                              HouseIOTH 1 Reply Last reply
                              0
                              • hhaliboH hhalibo

                                @HouseIOT THANKS for rapid reply!

                                I changed the resistor(r5) to 0 as pitcture shown, no function...
                                0_1496319342078_4ch-dimmer002.jpg

                                HouseIOTH Offline
                                HouseIOTH Offline
                                HouseIOT
                                wrote on last edited by
                                #22

                                @hhalibo
                                What supply voltage? 3.3V?..
                                Usually if properly assembled, there should be no problems.

                                hhaliboH 2 Replies Last reply
                                0
                                • HouseIOTH HouseIOT

                                  @hhalibo
                                  What supply voltage? 3.3V?..
                                  Usually if properly assembled, there should be no problems.

                                  hhaliboH Offline
                                  hhaliboH Offline
                                  hhalibo
                                  wrote on last edited by
                                  #23

                                  @HouseIOT supply voltage is 220v.

                                  HouseIOTH 1 Reply Last reply
                                  0
                                  • HouseIOTH HouseIOT

                                    @hhalibo
                                    What supply voltage? 3.3V?..
                                    Usually if properly assembled, there should be no problems.

                                    hhaliboH Offline
                                    hhaliboH Offline
                                    hhalibo
                                    wrote on last edited by
                                    #24

                                    @HouseIOT Hi,in your schematics, the D1 is a DIODE, but in your BOM, D1 is nothing. Maybe the problem is here?

                                    1 Reply Last reply
                                    0
                                    • hhaliboH hhalibo

                                      @HouseIOT supply voltage is 220v.

                                      HouseIOTH Offline
                                      HouseIOTH Offline
                                      HouseIOT
                                      wrote on last edited by
                                      #25

                                      @hhalibo said in 💬 4-channel switcher/dimmer:

                                      is 220v

                                      My English not so good, sorry. I say about low voltage on Atmega. There should be not less than 3.3v. If it is less then may not be enough current to open the optocoupler.

                                      D1 i not problem. The zero crossing detect works correctly. You see it on LEDs.

                                      hhaliboH 1 Reply Last reply
                                      0
                                      • HouseIOTH HouseIOT

                                        @hhalibo said in 💬 4-channel switcher/dimmer:

                                        is 220v

                                        My English not so good, sorry. I say about low voltage on Atmega. There should be not less than 3.3v. If it is less then may not be enough current to open the optocoupler.

                                        D1 i not problem. The zero crossing detect works correctly. You see it on LEDs.

                                        hhaliboH Offline
                                        hhaliboH Offline
                                        hhalibo
                                        wrote on last edited by hhalibo
                                        #26

                                        @HouseIOT The voltage output from the AMS1117-3.3 is 3.29v, and the voltage of the JP1 (VCC & GND) is 3.29v.

                                        And when the V_PERCENTAGE is 100, the voltage input of the pin1&2 with OK2(3,4,5) is 0.825V.

                                        when V_PERCENTAGE is 30, the voltage input of the pin1&2 with OK2(3,4,5) is 0.25V.

                                        except the voltage input of OK(2,3,4,5) is definitely low,others seems OK.

                                        1 Reply Last reply
                                        0
                                        • hhaliboH Offline
                                          hhaliboH Offline
                                          hhalibo
                                          wrote on last edited by hhalibo
                                          #27

                                          @HouseIOT
                                          I replaced the led1 with a 0Ω resistor, YEAH! Works!:laughing:

                                          and I will replace the led 2,3,4

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


                                          19

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 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