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. My Project
  3. AC light dimmer with 2x TRIAC

AC light dimmer with 2x TRIAC

Scheduled Pinned Locked Moved My Project
23 Posts 7 Posters 21.7k Views 12 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.
  • J jacikaas

    Hey,

    @ahmedadelhosni
    Thanks for long post ;)

    Safety is in first place. This circuit should be safer with snubber circuit, inductor and varistor. I miss something? DIAC is same purpose like varistor?

    I look at few already made products in China. Im not realy sure about whats that in pictures, is that inductor or antenna for rf module :)

    First smart switch from China:
    0_1456680598953_upload-d7de8b51-9fa6-491b-8890-ba237374a0a7

    Second smart switch from China:
    0_1456681086581_upload-5f889d7a-2e39-488b-8099-0d7059df050c

    Even more cheaper: Cheap smart switch

    But theese switches are with relays.

    @rvendrame
    I was trying to change around dimtime constant values - and with no any good luck.

    Today I move last modified code to Arduino Mini Pro and test it. When I test it - there was no flickering at all. Only there is same problem with:
    When I turn it on, bulb also graceful goes to 100%, but when max power had been reached - power instantly goes to 0% and in Domoticz status leaves as ON.
    But if I use slipper to set 100% - dim level leaves and light bulb is shining as 100%.

    I will check it and try to figure out why this is happening. :)))

    rvendrameR Offline
    rvendrameR Offline
    rvendrame
    Hero Member
    wrote on last edited by
    #14

    @jacikaas said:

    When I turn it on, bulb also graceful goes to 100%, but when max power had been reached - power instantly goes to 0% and in Domoticz status leaves as ON.
    But if I use slipper to set 100% - dim level leaves and light bulb is shining as 100%.

    I saw you still using 'static int' instead 'volatile int' for currentLevel . Did you try 'volatile int' ?

    Apart from that, I don't see any other reason for that. Perhaps something into controller side (domoticz)? I use Vera Lite with similar arduino circuit as yours, and I never had this behavior in my setup.

    Home Assistant / Vera Plus UI7
    ESP8266 GW + mySensors 2.3.2
    Alexa / Google Home

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zeph
      Hero Member
      wrote on last edited by
      #15

      If I understand, sometimes when you think you should be seeing 100%, the light is actually off?

      You are counting on the triac to latch and hold until the next Zero Crossing. However a triac needs a certain level of current in order to latch. If you try to trigger it too early in the AC cycle (while the AC voltage is still close to zero, just starting to rise), the load may not provide enough current to latch the triac. This is especially true with some kinds of loads. For example, LED Xmas lisghts don't conduct until the AC instantaneous voltage rises above the combined Vfwd of 25-50 series LEDs.

      One way to test this hypothesis is to lengthen the pulse. Or you could adjust your timing multiplier.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jemish
        wrote on last edited by
        #16

        Can we control AC fan using this module???

        1 Reply Last reply
        0
        • OitzuO Offline
          OitzuO Offline
          Oitzu
          wrote on last edited by
          #17

          @jemish which module do you mean exactly?
          The schematic in the first post is not suitable for inductive loads.

          J 1 Reply Last reply
          0
          • OitzuO Oitzu

            @jemish which module do you mean exactly?
            The schematic in the first post is not suitable for inductive loads.

            J Offline
            J Offline
            jemish
            wrote on last edited by
            #18

            @Oitzu okk my friend, thank you so much.

            But is there any design available for controlling inductive load???

            1 Reply Last reply
            0
            • OitzuO Offline
              OitzuO Offline
              Oitzu
              wrote on last edited by
              #19

              @jemish maybe have a look at following blog-post: http://www.homemade-circuits.com/2012/04/how-to-use-triacs-for-inductive-loads.html
              With this information you should be able to "improve" above schematic to be also able to handle inductive loads.

              If you have no clue about all that... maybe have a look at this module:
              https://www.kemo-electronic.de/en/Light-Sound/Effects/Modules/M028-Power-control-110-240-V-AC-2600-VA.php
              It can control AC Motors,
              in combination with this module:
              https://www.kemo-electronic.de/en/Transformer-Dimmer/Converter/M150-DC-pulse-converter.php
              You can connect it safely to the arduino.

              ahmedadelhosniA 1 Reply Last reply
              0
              • OitzuO Oitzu

                @jemish maybe have a look at following blog-post: http://www.homemade-circuits.com/2012/04/how-to-use-triacs-for-inductive-loads.html
                With this information you should be able to "improve" above schematic to be also able to handle inductive loads.

                If you have no clue about all that... maybe have a look at this module:
                https://www.kemo-electronic.de/en/Light-Sound/Effects/Modules/M028-Power-control-110-240-V-AC-2600-VA.php
                It can control AC Motors,
                in combination with this module:
                https://www.kemo-electronic.de/en/Transformer-Dimmer/Converter/M150-DC-pulse-converter.php
                You can connect it safely to the arduino.

                ahmedadelhosniA Offline
                ahmedadelhosniA Offline
                ahmedadelhosni
                wrote on last edited by
                #20

                @Oitzu i cant find the price of them on the site. Are they listed ?

                1 Reply Last reply
                0
                • OitzuO Offline
                  OitzuO Offline
                  Oitzu
                  wrote on last edited by
                  #21

                  @ahmedadelhosni
                  http://www.ebay.com/itm/KEMO-M028-Power-control-110-240-V-AC-2600-VA-Made-in-Germany-/251096815198
                  as example..they are relativ expensive.. see it more as an example. :)

                  ahmedadelhosniA 1 Reply Last reply
                  1
                  • OitzuO Oitzu

                    @ahmedadelhosni
                    http://www.ebay.com/itm/KEMO-M028-Power-control-110-240-V-AC-2600-VA-Made-in-Germany-/251096815198
                    as example..they are relativ expensive.. see it more as an example. :)

                    ahmedadelhosniA Offline
                    ahmedadelhosniA Offline
                    ahmedadelhosni
                    wrote on last edited by
                    #22

                    @Oitzu assume that I didn't ask you :) :)

                    1 Reply Last reply
                    0
                    • rsaefulR Offline
                      rsaefulR Offline
                      rsaeful
                      wrote on last edited by
                      #23

                      @jacikaas did you solve the issued? any luck i also have same problem event now i migrated to mysensors v 2.

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


                      14

                      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