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.
  • 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
                    • hhaliboH Offline
                      hhaliboH Offline
                      hhalibo
                      wrote on last edited by hhalibo
                      #28

                      @HouseIOT Sorry to trouble you, i use a mysensors-wifi-gateway with protocol 2.1.1 , and my homeautomation is home-assistant. I can't use your dimmer in my system.

                      After read the reference, there need to add V-percentage and V-status in the code, as a newbie , I can't do it myself. So I wondered,can you do me a favor?

                      Thanks a lot.

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


                      28

                      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