Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. jacikaas
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    jacikaas

    @jacikaas

    1
    Reputation
    56
    Posts
    1017
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    jacikaas Follow

    Best posts made by jacikaas

    • RE: Recommendation for motorized roller blinds solution (actual motor, like somfy, rollertrol, ebay...)

      Hello. I also thinking of my roller blinds automation and i was found this on thingiverse https://www.thingiverse.com/thing:2392856

      Its very cheap project for 5-10€/window. With 28BYJ-48 stepper motor you at least need 9v psu, it's even better with 12v.

      I also saw, that someone was already discusing in mysensors forum about how to start this motor and there is a code. Of course if you want to use percentage for open blinds, you should modify code and add some typen of encoder on mechanics. https://forum.mysensors.org/topic/3394/curtain-control-node/31

      posted in Hardware
      jacikaas
      jacikaas

    Latest posts made by jacikaas

    • Sniffing RS485 MODBUS data

      Hello,

      I have installed ventilation system in my apartment with this LCD acting like separate device:
      6d9528c4-4851-4edc-9976-ca6b2f21bc49-image.png

      It have 4 wires connected. After researching I found main board uses RS485 MODBUS:
      026e8213-51dc-41ec-915d-6939dc497f72-image.png

      I know there is Arduino RS485 modules, which probably could simulate signals to main board. But main problem is I don't know what messages there are. I tried to look for some suggestions on internet, but had no luck. Could some point me how to read this LCD messages to main board so I could simulate same messages over Arduino?

      Thanks!

      posted in Development
      jacikaas
      jacikaas
    • Solenoid water valve

      Hello,

      I tried to search something on this forum, tried to ask in special stores with bathroom supplies, tried to google looks like i found something but nothing what I would like.

      Could someone recommend solenoid water valve for cold and hot water that i could install on my new apartment?

      I would like to have this feature: if water leak sensor is triggered, then it should close solenoid water valves. I found some of these on Aliexpress, but I better choose branded product like Danfoss or simillar.

      Maybe someone is confronted with it and could recommend something?

      Thank You!

      posted in General Discussion
      jacikaas
      jacikaas
    • RE: Curtain Control Node.

      @suresh-mali
      I now reading about that funktions in http://www.airspayce.com/mikem/arduino/AccelStepper/classAccelStepper.html#a344f58fef8cc34ac5aa75ba4b665d21c

      Did what You said, but getting error: no matching function for call to 'AccelStepper::runToPosition(int)'
      I paste here all code, but I think I did everything without mistakes:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // Enable and select radio type attached
      #define MY_NODE_ID 10
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      // Enable repeater functionality for this node
      //#define MY_REPEATER_FEATURE
      
      #include <SPI.h>
      #include <MySensors.h>
      #include <AccelStepper.h>
      
      #define HALFSTEP 8
      #define CURTAIN_CLOSED 10000
      #define CURTAIN_OPEN 0
      #define CHILD_ID 1
      
      // int powerPin = 7;
      
      // definicje MySensors
      
      MyMessage message(CHILD_ID, S_COVER);
      
      // Definicja pinow silnika
      #define IN1  3     // IN1
      #define IN2  4     // IN2
      #define IN3  5     // IN3
      #define IN4  6     // IN4
       
      AccelStepper stepper1(HALFSTEP, IN1, IN3, IN2, IN4);
      
      void setup()
      {
        stepper1.setMaxSpeed(1000.0);
        stepper1.setAcceleration(100.0);
        stepper1.setSpeed(200);
        stepper1.runToPosition(CURTAIN_CLOSED);
      }
      
      void presentation() 
      {
        sendSketchInfo("Roller blinds", "1.0");
        present(CHILD_ID, S_COVER); // Window Cover sub-type, commands: V_UP, V_DOWN, V_STOP
      }
      
      void loop()
      {
        //stepper1.run();  //Start
      }
      
      void receive(const MyMessage &message)
      {
      stepper1.enableOutputs ();
        // if message = V_UP start moving until closed
        if (message.type==V_UP) {
           if (stepper1.distanceToGo() == 0){
               if (stepper1.currentPosition() == CURTAIN_OPEN){
                   stepper1.runToPosition(CURTAIN_CLOSED);
           // Store state in eeprom
           saveState(message.sensor, message.getBool());
           request(CHILD_ID, V_UP, 0); // request new values from controller
               }
            }
         }
         if (message.type==V_DOWN) {
             stepper1.moveTo(CURTAIN_OPEN);
             // Store state in eeprom
             saveState(message.sensor, message.getBool());
             request(CHILD_ID, V_DOWN, 0); // request new values from controller   
          }
          if (message.type==V_STOP) {
              stepper1.setCurrentPosition(0);
              // Store state in eeprom
              saveState(message.sensor, message.getBool());
              request(CHILD_ID, V_STOP, 0); // request new values from controller
          }
      stepper1.disableOutputs ();
      }
      
      
      posted in My Project
      jacikaas
      jacikaas
    • RE: Curtain Control Node.

      @suresh-mali Thank You Suresh for Your answer!
      I disconnect relay and delete it lines from the code.

      I add lines to code like You said:

      void receive(const MyMessage &message)
      {
      stepper1.enableOutputs ();
       // rest of code
      stepper1.disableOutputs ();
      }
      

      It looks like it have to work because it is simple solution, but it doesn't... On driver board ULN2003, when motor is not rotating, A Led is always on. I think if command with disableOutputs would be activated, then the LED should not be on?

      posted in My Project
      jacikaas
      jacikaas
    • RE: Curtain Control Node.

      Hello,

      I trying to adopt the code for 28BYJ-48 stepper motor with ULN2003 driver board for roller blinds control. Code is working, but when the stepper motor is always on - it gets hot. Because of it also its consumes more energy. So thats why I want to turn on ULN2003 board only when new action is started, and after that it should be shuted down again. I could do it, because ULN2003 has On/Off jumper:
      alt text

      Question #1: I trying to use relay for that On/Off. Could I do it without relay and control On/Off jumper directly from arduino? Does relay is the best solution?

      Question #2: I suck at programming, but I trying to add theese lines to my code to control the relay SIL05-1A72-71D, which controls the ULN2003 driver board:
      int powerPin = 7; //before SETUP
      pinMode(powerPin, OUTPUT); // In SETUP
      digitalWrite(powerPin, LOW); // In SETUP
      digitalWrite(powerPin, HIGH); // In void receive function
      delay(CURTAIN_CLOSED); // In void receive function
      digitalWrite(powerPin, LOW); // In void receive function

      digitalWrite(powerPin, HIGH); - I think is in right position, but I don't know how to turn off relay when action is done. Please advise for coding, because I not good in it. Thank You! Below is the code:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // Enable and select radio type attached
      #define MY_NODE_ID 10
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      // Enable repeater functionality for this node
      //#define MY_REPEATER_FEATURE
      
      #include <SPI.h>
      #include <MySensors.h>
      #include <AccelStepper.h>      //import biblioteki AccelStepper 
      
      #define HALFSTEP 8
      #define CURTAIN_CLOSED 10000  // wartosc gdy kurtyna zamknieta
      #define CURTAIN_OPEN 0       // wartosc gdy kurtyna otwarta
      #define CHILD_ID 1
      
      int powerPin = 7;
      
      // definicje MySensors
      
      MyMessage message(CHILD_ID, S_COVER);
      
      // Definicja pinow silnika
      #define IN1  3     // IN1 - zielony
      #define IN2  4     // IN2 - czarny
      #define IN3  5     // IN3 - niebieski
      #define IN4  6     // IN4 - czerwony
       
      AccelStepper stepper1(HALFSTEP, IN1, IN3, IN2, IN4);
      
      void setup()
      {
        stepper1.setMaxSpeed(1000.0);
        stepper1.setAcceleration(100.0);
        stepper1.setSpeed(200);
        stepper1.moveTo(CURTAIN_OPEN);
        
        pinMode(powerPin, OUTPUT);
        digitalWrite(powerPin, LOW);
      }
      
      void presentation() 
      {
        // Wyslanie informacji o wersji programu
        sendSketchInfo("Roller blinds", "1.0");
        // Register all sensors to gw (they will be created as child devices)
        present(CHILD_ID, S_COVER); // Window Cover sub-type, commands: V_UP, V_DOWN, V_STOP
      }
      
      void loop()
      {
        stepper1.run();  //Start
      }
      
      void receive(const MyMessage &message)
      {
        // if message = V_UP start moving until closed
        if (message.type==V_UP) {
           digitalWrite(powerPin, HIGH);
           if (stepper1.distanceToGo() == 0){
               if (stepper1.currentPosition() == CURTAIN_OPEN){
                   stepper1.moveTo(CURTAIN_CLOSED);
           // Store state in eeprom
           saveState(message.sensor, message.getBool());
           request(CHILD_ID, V_UP, 0); // request new values from controller
               }
            }
         }
         if (message.type==V_DOWN) {
             digitalWrite(powerPin, HIGH);
             stepper1.moveTo(CURTAIN_OPEN);
             // Store state in eeprom
             saveState(message.sensor, message.getBool());
             request(CHILD_ID, V_DOWN, 0); // request new values from controller   
          }
          if (message.type==V_STOP) {
              digitalWrite(powerPin, HIGH);
              stepper1.setCurrentPosition(0);
              // Store state in eeprom
              saveState(message.sensor, message.getBool());
              request(CHILD_ID, V_STOP, 0); // request new values from controller
          }
       //   delay(CURTAIN_CLOSED);
       //   digitalWrite(powerPin, LOW);
      }
      
      
      posted in My Project
      jacikaas
      jacikaas
    • RE: Recommendation for motorized roller blinds solution (actual motor, like somfy, rollertrol, ebay...)

      @nca78
      Yes, thats quite heavy. Need to check it practically. I started to test the motor (now only on the desk), but my 28BYJ-48 motor is shaking with AccelStepper library. With some simple code without included any library - working fine, so I will look why thats happening.

      posted in Hardware
      jacikaas
      jacikaas
    • RE: Recommendation for motorized roller blinds solution (actual motor, like somfy, rollertrol, ebay...)

      @Yveaux
      Yes, that outdoor blinds need a lot more power 🙂

      posted in Hardware
      jacikaas
      jacikaas
    • RE: Recommendation for motorized roller blinds solution (actual motor, like somfy, rollertrol, ebay...)

      Hello. I also thinking of my roller blinds automation and i was found this on thingiverse https://www.thingiverse.com/thing:2392856

      Its very cheap project for 5-10€/window. With 28BYJ-48 stepper motor you at least need 9v psu, it's even better with 12v.

      I also saw, that someone was already discusing in mysensors forum about how to start this motor and there is a code. Of course if you want to use percentage for open blinds, you should modify code and add some typen of encoder on mechanics. https://forum.mysensors.org/topic/3394/curtain-control-node/31

      posted in Hardware
      jacikaas
      jacikaas
    • RE: MYSBootloader 1.3.0-beta.3

      @jacikaas

      Hello, maybe someone was trying 8MHz bootloader for standlaone Atmega328p?

      posted in Development
      jacikaas
      jacikaas
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka thank You for the answer. I'm not sure is answer was dedicated for me or for Mark, but I tested 1.3.0-beta.4 in the same way I described before:

      • Tested with 2 different Atmega328p
      • First try was with 1MHz - working on both Atmega328p
      • Second try with 8MHz - same situation as with beta 3, skecth won't upload and I get answer from Arduino Avrdude (this time I post full log after uploading):
      avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
               Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
               Copyright (c) 2007-2014 Joerg Wunsch
      
               System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
      
               Using Port                    : COM4
               Using Programmer              : arduino
               Overriding Baud Rate          : 38400
      avrdude: stk500_recv(): programmer is not responding
      avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xf1
      avrdude: stk500_recv(): programmer is not responding
      < ... >
      avrdude: stk500_recv(): programmer is not responding
      avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xf1
      
      avrdude done.  Thank you.
      

      It would be best if someone also could try to burn same bootloader on standalone Atmega328p and post results to be sure all wiring and steps I did is without mistakes.
      Strange if I I burn 1.3pre2 8MHz bootloader - it works.

      What troubleshooting I could make?

      posted in Development
      jacikaas
      jacikaas