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. Hardware
  3. Controlling an inductive AC load

Controlling an inductive AC load

Scheduled Pinned Locked Moved Hardware
19 Posts 5 Posters 9.6k Views 4 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.
  • dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by
    #1

    I am looking for a way to do speed control of a ceiling fan. The motor is obviously an inductive load and from my understanding is not too friendly to triacs. Is there a way that I can create a MySensors controller for ceiling fan speed control? What I might like to do on some is create a dual purpose ceiling fan and light dimmer as I have some combinations like this in some rooms. The light dimming I can do easily with a triac, it's the fan I am having trouble with.

    I am pretty new to MySensors, so a question I would have is when creating a node that has more than one sensor/controller on it, how do you define each so they are seen as separate devices on that node?

    Thanks

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    martinhjelmareM m26872M 2 Replies Last reply
    0
    • dbemowskD dbemowsk

      I am looking for a way to do speed control of a ceiling fan. The motor is obviously an inductive load and from my understanding is not too friendly to triacs. Is there a way that I can create a MySensors controller for ceiling fan speed control? What I might like to do on some is create a dual purpose ceiling fan and light dimmer as I have some combinations like this in some rooms. The light dimming I can do easily with a triac, it's the fan I am having trouble with.

      I am pretty new to MySensors, so a question I would have is when creating a node that has more than one sensor/controller on it, how do you define each so they are seen as separate devices on that node?

      Thanks

      martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by martinhjelmare
      #2

      @dbemowsk

      Hi!

      I'm not much of a hardware guy so I'll leave that question up to others to answer.

      Regarding how to add different sensors/actuators to a node, you do this (for mysensors 1.5 releases):

      gw.present(child-sensor-id,sensor-type)
      

      You can call this method multiple times in the node sketch for each sensor or actuator you want to add. Increment child-sensor-id each time and use the appropriate sensor-type.

      See the "Presentation" section here:
      https://www.mysensors.org/download/sensor_api_15

      and the serial API for the sensor and value types here:
      https://www.mysensors.org/download/serial_api_15

      1 Reply Last reply
      0
      • dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #3

        Martin, Thanks for the response. I just wired up a serial gateway last night and now I need to build me a sensor to test it with. I may try some kind of multi-sensor node to test this

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        AWIA 1 Reply Last reply
        0
        • martinhjelmareM Offline
          martinhjelmareM Offline
          martinhjelmare
          Plugin Developer
          wrote on last edited by
          #4

          For testing the radio coms and mysensors protocol, I recommend this sketch that will mock sensors:
          https://github.com/mysensors/Arduino/tree/master/libraries/MySensors/examples/MockMySensors

          This will let you test node to gateway coms without having to add any real sensors.

          1 Reply Last reply
          0
          • dbemowskD dbemowsk

            I am looking for a way to do speed control of a ceiling fan. The motor is obviously an inductive load and from my understanding is not too friendly to triacs. Is there a way that I can create a MySensors controller for ceiling fan speed control? What I might like to do on some is create a dual purpose ceiling fan and light dimmer as I have some combinations like this in some rooms. The light dimming I can do easily with a triac, it's the fan I am having trouble with.

            I am pretty new to MySensors, so a question I would have is when creating a node that has more than one sensor/controller on it, how do you define each so they are seen as separate devices on that node?

            Thanks

            m26872M Offline
            m26872M Offline
            m26872
            Hardware Contributor
            wrote on last edited by
            #5

            @dbemowsk Buy a speed controller then MySensorize it.

            1 Reply Last reply
            0
            • dbemowskD dbemowsk

              Martin, Thanks for the response. I just wired up a serial gateway last night and now I need to build me a sensor to test it with. I may try some kind of multi-sensor node to test this

              AWIA Offline
              AWIA Offline
              AWI
              Hero Member
              wrote on last edited by
              #6

              @dbemowsk I agree with @m26872 to have it save . There are many different types of ceiling fan types. Most available where I live are multiple (3) speed types which can easily be controlled with 3 "on/off" triac circuis (do include a snubber for the inductive load).
              I suppose you are familiar with building triac circuits, make sure you have galvanic isolation (optocoupler).

              0_1465070067072_upload-cc622a7e-6dfd-4723-b02f-a9813aebb16e

              1 Reply Last reply
              0
              • dbemowskD Offline
                dbemowskD Offline
                dbemowsk
                wrote on last edited by
                #7

                I have done a few triac circuits in past years. I wouldn't interface a triac circuit with anything but an optocoupler.

                Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                1 Reply Last reply
                0
                • dbemowskD Offline
                  dbemowskD Offline
                  dbemowsk
                  wrote on last edited by
                  #8

                  @m26872 I have never taken a dimmer apart myself. Is the circuit complex? I would prefer a schematic, but if the circuit is as simple as the one above I may be able to figure it out.

                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                  alexsh1A 1 Reply Last reply
                  0
                  • dbemowskD dbemowsk

                    @m26872 I have never taken a dimmer apart myself. Is the circuit complex? I would prefer a schematic, but if the circuit is as simple as the one above I may be able to figure it out.

                    alexsh1A Offline
                    alexsh1A Offline
                    alexsh1
                    wrote on last edited by alexsh1
                    #9

                    @dbemowsk You need to get the SSR relay connected to your arduino. I have it hooked up to my raspberry to remotely control 240V devices. You need to apply 3V to it in order to relay to switch on. Crydom is the top name though expensive. The same relay I have to control my hot water tank, which is heated at night (due to lower electricity cost).

                    This is a link to a similar relay. I have 50A one as I need to control 3kW heater:
                    http://uk.farnell.com/crydom/d2425/ssr-25a-24-280vac-3-32vdc-zero/dp/1200241

                    1 Reply Last reply
                    0
                    • dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #10

                      @alexsh1 An SSR will only turn the fan on and off. It will not allow any speed control which is what I am looking for. I currently have them connected to X10 inductive load dimmers and they work, but I am trying to see if I can move away from my X10 setup.

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                      alexsh1A 1 Reply Last reply
                      0
                      • dbemowskD dbemowsk

                        @alexsh1 An SSR will only turn the fan on and off. It will not allow any speed control which is what I am looking for. I currently have them connected to X10 inductive load dimmers and they work, but I am trying to see if I can move away from my X10 setup.

                        alexsh1A Offline
                        alexsh1A Offline
                        alexsh1
                        wrote on last edited by
                        #11

                        @dbemowsk Ok, how is it set-up now? More voltage - more speed?

                        1 Reply Last reply
                        0
                        • dbemowskD Offline
                          dbemowskD Offline
                          dbemowsk
                          wrote on last edited by
                          #12

                          These are the dimmers I use: https://www.x10.com/xpdi3-dimmer-120-vac-500w-inductive.html . I never pulled the dimmer apart and scoped it or anything like that, so I am not sure. Could use PWM for all I know.

                          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                          AWIA alexsh1A 2 Replies Last reply
                          0
                          • dbemowskD dbemowsk

                            These are the dimmers I use: https://www.x10.com/xpdi3-dimmer-120-vac-500w-inductive.html . I never pulled the dimmer apart and scoped it or anything like that, so I am not sure. Could use PWM for all I know.

                            AWIA Offline
                            AWIA Offline
                            AWI
                            Hero Member
                            wrote on last edited by AWI
                            #13

                            @dbemowsk this article describes how to build triac dimmers for inductive loads. The x10 dimmer you use is most probably like the type 2. And thus a phase cutting dimmer.
                            The circuit above is for on/off (SSD) and would need to be switched synchronized with the net frequency. There are a few examples on the forum on how to let the Arduino take care of that.
                            All assuming that your fan can take phase cutting dimming.

                            1 Reply Last reply
                            0
                            • dbemowskD Offline
                              dbemowskD Offline
                              dbemowsk
                              wrote on last edited by
                              #14

                              So, do you think it would be possible to use something like this:
                              http://www.ebay.com/itm/DIMMER-AC-MOTOR-for-Fan-Light-Bulb-electric-1000-WATT-electronic-circuit-board-k-/282042936124?hash=item41ab11ab3c:g:2VMAAOSwxehXPWC3
                              and control it with something like an AD5171 Digital Pot in place of the pot that comes with the kit?

                              Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                              Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                              AWIA 1 Reply Last reply
                              0
                              • dbemowskD dbemowsk

                                So, do you think it would be possible to use something like this:
                                http://www.ebay.com/itm/DIMMER-AC-MOTOR-for-Fan-Light-Bulb-electric-1000-WATT-electronic-circuit-board-k-/282042936124?hash=item41ab11ab3c:g:2VMAAOSwxehXPWC3
                                and control it with something like an AD5171 Digital Pot in place of the pot that comes with the kit?

                                AWIA Offline
                                AWIA Offline
                                AWI
                                Hero Member
                                wrote on last edited by AWI
                                #15

                                @dbemowsk No... looking at the diagram there is no galvanic isolation.. .
                                0_1465105655511_upload-36f004aa-9aca-4d09-b0fc-60a54756c18f
                                This one requires to be isolated with plastic (including knob).

                                The AD5171 is a nice piece of circuit but is not isolated either, would need a seperate power supply from your arduino and is not suited for high voltage/current AC environment. (and would make an expensive solution)

                                If you want to meet you expected lifetime (I don't want to contribute to someone death) you better take a safer approach..

                                A few options:

                                1. the cheapest: build a circuit yourself like the one you cited and replace VR1 with and LDR and LED like this guy did. 0_1465106462915_upload-c804b20a-d546-43df-ad83-98881b6141cb

                                2. similar circuit (or take another working dimmer and attach a servo ;-) (that is what my son would do)

                                3. Go for the (complicated but fun) solution and like discussed in this topic.
                                  0_1465106962029_upload-573c2269-184f-445f-ab1d-78569c0ddf8b

                                1 Reply Last reply
                                0
                                • dbemowskD Offline
                                  dbemowskD Offline
                                  dbemowsk
                                  wrote on last edited by
                                  #16

                                  Another option mentioned by @m26872 was modifying an existing switch. I was thinking a switch like this:
                                  http://www.menards.com/main/electrical/light-switches-dimmers-outlets/dimmer-fan-control-combination/legrand-2-5-amp-300-watt-de-hummer-fan-single-pole-control-dimmer/p-1444451193535-c-6322.htm?tid=1329371385801776297
                                  I could use the LED, LDR and shrink tube solution to get isolation as I would imagine that the switch just has 2 VR sliders. With that I would already have a combination switch that is designed to do what I want, I would just have to MySensorize it as @m26872 says.

                                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                  AWIA 1 Reply Last reply
                                  0
                                  • dbemowskD dbemowsk

                                    These are the dimmers I use: https://www.x10.com/xpdi3-dimmer-120-vac-500w-inductive.html . I never pulled the dimmer apart and scoped it or anything like that, so I am not sure. Could use PWM for all I know.

                                    alexsh1A Offline
                                    alexsh1A Offline
                                    alexsh1
                                    wrote on last edited by alexsh1
                                    #17

                                    @dbemowsk
                                    FYG, I am controlling dimming via SSR on a few 240V lamps - ok not motors.
                                    I think @AWI already said it all - time to dismantle your dimmer :)

                                    You may want to read this:
                                    http://alfadex.com/2014/02/dimming-230v-ac-with-arduino-2/

                                    1 Reply Last reply
                                    0
                                    • dbemowskD dbemowsk

                                      Another option mentioned by @m26872 was modifying an existing switch. I was thinking a switch like this:
                                      http://www.menards.com/main/electrical/light-switches-dimmers-outlets/dimmer-fan-control-combination/legrand-2-5-amp-300-watt-de-hummer-fan-single-pole-control-dimmer/p-1444451193535-c-6322.htm?tid=1329371385801776297
                                      I could use the LED, LDR and shrink tube solution to get isolation as I would imagine that the switch just has 2 VR sliders. With that I would already have a combination switch that is designed to do what I want, I would just have to MySensorize it as @m26872 says.

                                      AWIA Offline
                                      AWIA Offline
                                      AWI
                                      Hero Member
                                      wrote on last edited by
                                      #18

                                      @dbemowsk what you will find is a circuit very comparable to the ones mentioned.
                                      To "MySensor"ize you you still need to control it from an arduino with (safe) stable power supply and isolation.

                                      Maybe easier to dismantle your x10 device.

                                      It's hard to determine your experience level from your questions but you need to be able to:

                                      1. Build a (semi) digital motor control.
                                      2. Have little experience with an arduino MySensors device.
                                        3.tie these together
                                      1 Reply Last reply
                                      0
                                      • dbemowskD Offline
                                        dbemowskD Offline
                                        dbemowsk
                                        wrote on last edited by
                                        #19

                                        @awi I have one of the X10 switches that I dismantled the other day and the issue with trying to use that is that there is so much circuitry for the X10 portion of the thing that without having a schematic, I wouldn't know exactly what to disconnect to only leave the triac motor control circuit. Also where and how to connect in my galvanic isolation circuit.

                                        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

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


                                        21

                                        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