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. 💬 Roller Shutter Node

💬 Roller Shutter Node

Scheduled Pinned Locked Moved OpenHardware.io
rollershuttercurrent sensorrelayblinds
107 Posts 25 Posters 38.3k Views 27 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.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by scalz
    #67

    acs read can set an endstop bool = "event" which trig the shutter state machine. you should see it ;)
    in case you have some trouble, then you can set few default define in sketch to set your travel time. perhaps a cleareeprom needed, then shutter should be ready.

    TakeroT 1 Reply Last reply
    1
    • scalzS scalz

      acs read can set an endstop bool = "event" which trig the shutter state machine. you should see it ;)
      in case you have some trouble, then you can set few default define in sketch to set your travel time. perhaps a cleareeprom needed, then shutter should be ready.

      TakeroT Offline
      TakeroT Offline
      Takero
      Hardware Contributor
      wrote on last edited by Takero
      #68

      @scalz

      Yes, i work on it . . . still my ACS wont work well. At the moment i init the node with the Endstop Bool, that works fine.

      I work also on an delay between the UP/DOWN States, i don't like it if the shutter change the direktion directly. But . . . not find the right way yet :-)

      EDIT: ACS works right now!!! :+1: I think my IC was defective :-1:

      1 Reply Last reply
      0
      • TakeroT Offline
        TakeroT Offline
        Takero
        Hardware Contributor
        wrote on last edited by Takero
        #69

        Dont know why but while autocali. they stop messurement of current . . .

        If i start the process the first is go UP, my messurment of power is: 30W
        if i Power of the attached Bulb the value stays on 30W, so it is normal he cant detect anythink

        In your loop:

         // Read current sensor, endstop
          uint16_t acsread = 0;  
          acsread = readAdcWithFilter(ACS712_SENSOR, PS_64); 
          if (acsread < ACS712_LEVELDETECT) {
              // Endstop detected  
              if (getCalibrationState() > 0) setEndStopState(true); 
              else {};
          }
        

        I modified for debug like this:

        // Read current sensor, endstop
          uint16_t acsread = 0;  
          acsread = readAdcWithFilter(ACS712_SENSOR, PS_64); 
        
        
          Serial.print(F("ACS712: READ DEBUG: ")); 
          Serial.println(acsread);
        
        
          if (acsread < ACS712_LEVELDETECT) {
              // Endstop detected  
              if (getCalibrationState() > 0) setEndStopState(true); 
              else {};
          }
        

        It never change the value of acsread after the init process is started. . .

        LOG:

        TSP:MSG:READ 0-0-50 s=2,c=1,t=2,pt=0,l=1,sg=1:1
        CMD: Autocalibration
        ACS712: READ DEBUG: 7
        ACS712: READ DEBUG: 29
        ACS712: READ: 29
        TSP:MSG:SEND 50-50-0-0 s=6,c=1,t=17,pt=3,l=2,sg=0,ft=0,st=ok:29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        ACS712: READ DEBUG: 29
        

        29 will stay until timout stop. . . between this i power of the attached test bulb (20W)

        1 Reply Last reply
        0
        • TakeroT Offline
          TakeroT Offline
          Takero
          Hardware Contributor
          wrote on last edited by
          #70

          Level detection work right now . . .

          my modifications:

          // send % progression for controller widgets NOT TESTED  
            static uint8_t oldpos = getPosition();
            
            if (oldpos != getPosition() && getCalibrationState()==0) {
              send(msgShutterPosition.set(getPosition()));
              send(msgPercent.set(getPosition()));
              oldpos = getPosition();
            } 
          
          1 Reply Last reply
          0
          • TakeroT Offline
            TakeroT Offline
            Takero
            Hardware Contributor
            wrote on last edited by
            #71

            I am finished and everythink is working well right now.

            I dit some modifications on PCB:

            • add an 470uF near to NRF24
            • add two Diodes recovery diode (or free-wheeling diode) dunno how it called in english :-) at the relays

            And some changes in your example code :+1:

            Thanks for the Layout, thanks for the code, thanks for help!

            I design a 3D Case, but only the bottom side. . . but not tested right now . .

            alt text

            0_1478263225360_RollerShutter_back.stl
            0_1478263256093_RollerShutter_Back.123dx

            1 Reply Last reply
            1
            • F Offline
              F Offline
              Fabien
              wrote on last edited by
              #72

              Did you try ACS measurement for up AND down ? On my 2 boards, i have problem with relay just over ACS and errors in current measurment (magnetic field of relay just over Hall sensor)
              @scalz : I think we could try to turn 90° acs712, it could be fine.

              1 Reply Last reply
              0
              • TakeroT Offline
                TakeroT Offline
                Takero
                Hardware Contributor
                wrote on last edited by Takero
                #73

                With a Little Bit Trouble yes. The Problem is the Dimension of the amplifier. Below 60W the messured voltage is to Low.

                I think it is netter the Diode must be in the Feedback cycle of the amplifier. But in my case the Free running voltage is below 6 and with running Roller above 20. So it is possible to detect the End stops. Just modify the variables.

                I will Test it in the"real" System tomorow. If it Works i will post the Sketch.

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

                  @Fabien
                  i will take a look asap.. i'm actually playing with my nano32, and some design ;)
                  perhaps for the atsam version when more time to release..

                  @Takero
                  thx for feedback :+1:

                  • i'll look to your suggestions too. for the wheeling diode if i remember it's integrated in the relay driver. depends what you mean.
                  • For sketch, hehe, i warned it was not complete :) but the most important there. I'll look at your change and update it, sure !i have actually no time to play with it, still using an old sketch.

                  too much coding to do, and hardware to play! but this is so fun :)

                  see you soon

                  TakeroT 1 Reply Last reply
                  0
                  • scalzS scalz

                    @Fabien
                    i will take a look asap.. i'm actually playing with my nano32, and some design ;)
                    perhaps for the atsam version when more time to release..

                    @Takero
                    thx for feedback :+1:

                    • i'll look to your suggestions too. for the wheeling diode if i remember it's integrated in the relay driver. depends what you mean.
                    • For sketch, hehe, i warned it was not complete :) but the most important there. I'll look at your change and update it, sure !i have actually no time to play with it, still using an old sketch.

                    too much coding to do, and hardware to play! but this is so fun :)

                    see you soon

                    TakeroT Offline
                    TakeroT Offline
                    Takero
                    Hardware Contributor
                    wrote on last edited by
                    #75

                    @scalz said:

                    for the wheeling diode if i remember it's integrated in the relay driver. depends what you mean

                    It isn't :-)

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

                      well, it is a zener, not wheeling diode, which should be enough..
                      http://www.onsemi.com/pub_link/Collateral/MDC3105-D.PDF
                      perhaps not for nrf! cool if it improves.

                      sidenote: i won't change nrf version in future. as i only have rfm69 (doing nrf was bonus), i don't want to waste my time improving both! and i have enough pcb ahah

                      1 Reply Last reply
                      0
                      • TakeroT Offline
                        TakeroT Offline
                        Takero
                        Hardware Contributor
                        wrote on last edited by
                        #77

                        Dont Care :-) its cool. Zenner its not enoth but dont worry. I need it .. the nrf is verry "female" :-D (sensible). But i think for both version, you have to modify the current messurment. No Roller shutter has >200w so u are on the Limit below 100w of adc scale.

                        But hey it Works and your Layout is verry cool and Safe.

                        1 Reply Last reply
                        1
                        • F Offline
                          F Offline
                          Fabien
                          wrote on last edited by
                          #78

                          Very stange. Zener in forward side is equivalent to classical diode.
                          @Takero, you change the amplifier ? Wich mods did you make ?

                          1 Reply Last reply
                          0
                          • TakeroT Offline
                            TakeroT Offline
                            Takero
                            Hardware Contributor
                            wrote on last edited by Takero
                            #79

                            I was a little bit bussy the last days.
                            My Nodes are completed installed right now, it works well. BUT, i had to change some thinks.

                            I had the Probleme of automatic reset of the device if i set the shutter to 50% or anythink else 0% or 100%.
                            The Diode alone dont solve these Probleme. I think the Problem is to stop the shutter while running. If i set it to 100% or 0% the shutter shut of before the relay falls down.

                            I solve the Problem with a 220uF Capacitor at the 3.3V Out and deactivate the BOD.

                            My Fuses right now: L: CF // H:DA // E:07

                            Now it works very well!!

                            @Fabien: I dont change the amp . . i just tested some thinks but it wont work . . for i dont use the current messurment and setup the Node with the manual endstop. It works realy good!

                            Finaly again, Thanks @scalz

                            The Temp. of the devices is below 30°C ;-)

                            In the picture the green temp.

                            0_1481916187089_Unbenannt.JPG

                            1 Reply Last reply
                            0
                            • F Offline
                              F Offline
                              fabiancrg
                              wrote on last edited by
                              #80

                              Hi
                              I was wondering if the ACS712 can detect the current if the roller shutter power is 85W?

                              1 Reply Last reply
                              0
                              • kduinoK Offline
                                kduinoK Offline
                                kduino
                                wrote on last edited by
                                #81

                                Hi, there is something similar available although without an ac712. So you can't check the percentage o the shutter.
                                See https://github.com/JanGoe/esp8266-wifi-relay
                                I had one at home and it is working well. Because of the esp8266 it is directly connected to any controller using udp or MQTT or other protocols.
                                The only problem is the missing box. I have to admit I wouldn't put this in my wall without a proper box using AC 240 V!!!
                                The project you proposed is of course the most advanced. Do you think there is a smaller version available perhaps less parts on the BOM and easy to build?
                                Thank you very much, kduino

                                1 Reply Last reply
                                0
                                • F Offline
                                  F Offline
                                  Fabien
                                  wrote on last edited by Fabien
                                  #82

                                  Cloudy/rainning day ... Good for MySensors
                                  0_1491138689145_IMG_20170402_145718.jpg

                                  1 Reply Last reply
                                  2
                                  • F Offline
                                    F Offline
                                    Fabien
                                    wrote on last edited by
                                    #83

                                    There is a mistake on the above photo. Radios are on the wrong way (180°)

                                    1 Reply Last reply
                                    0
                                    • F Offline
                                      F Offline
                                      Fabien
                                      wrote on last edited by
                                      #84

                                      @scalz, little mistake on BOM, C4 is 100n AND 10n ..

                                      1 Reply Last reply
                                      1
                                      • Sergio RodriguesS Offline
                                        Sergio RodriguesS Offline
                                        Sergio Rodrigues
                                        wrote on last edited by
                                        #85

                                        Hi, I make this project, pretty cool.

                                        How I can upload the firmware? What I need to do?

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

                                          @Sergio-Rodrigues
                                          It's better to talk about this here instead of private, so other people can learn or help you ;)

                                          it's "like" programming an arduino board.

                                          1. in arduino ide, program bootloader (for these, i used the sensebender board in Board manager).
                                          2. Then, with a FTDI adapter, program the rollershutter sketch.

                                          For more infos on programming arduino:

                                          • see official docs from arduino website
                                          • https://www.mysensors.org/about/fota for a bootloader programming example

                                          What do you need to know exactly ??

                                          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