Navigation

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

    Tmaster

    @Tmaster

    34
    Reputation
    140
    Posts
    1722
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Tmaster Follow

    Best posts made by Tmaster

    • My Shiny Gateway and Irrigation system sHiNyBoX! :P

      Hello everybody.
      Since i discover this awesome project open source (mysensors) and the awesome work done here, i have been converted all my arduinos to Mysensor library ,because i already had Vera lite managing my home.

      so lets share what i already did. **Pictures!!!! **

      First, my gateway:
      i used a round small box , a ftdi adapter,and a 5v promini with 3.3v regulator on nrf24 .
      On picture is a normal nrf24 but then i use a amplified version that have an coaxial cable connected and an 2.4ghz antenna on outside roof(attach to my external TV antenna) ,So i can receive and send information to all my incoming sensors ,in all my garden(+3500m2) and it can receive inside home signal aswell.

      Alt text

      Alt text

      Alt text

      And then ,on 3rd day ,I created an irrigation control......

      Its not tested on vera yet, but at first look i have some work to do before it work properly. And i need replace this power wires for 12vpower adapter ones.

      Look at the switch ... you cant see it ... but its inside top rubber. just press on rubber and its water proof πŸ™‚

      Alt text

      Alt text

      Alt text

      Alt text

      Sory about my English errors ,not my natural language:P

      posted in My Project
      Tmaster
      Tmaster
    • Egg incubator IOT v3.0

      Do you think you've seen all kinds of projects here? So ..think again. πŸ™‚
      There it is my chicken eggs encubator .
      Made from a 25 liters plastic storage box and some foam outside to prevent heat loss.
      i used 2 X 18w halogen g9 bulbs and a 230v dimmer to decrease light brightness.

      There is a diagram above from fritzing. I uses an main arduino that controls a SSR relay for controls halogen light bulbs. this light bulbs are dimmed to half(in my case)
      for hold temperature much time as possible without decrease temperature.That makes SSR stay on for some minutes before goes off again. if halogen light are to powerfull makes the SSR goes on and off many times in short period. the ideal situation is having the dimmer controlled by arduino and hold temperature without turn ligh off ,but i didn't got this dimmer yet(is there any one ready for try it? πŸ˜› ).

      this is the 3rd version i build and all the other version hatch almost all eggs(+/-80%) even with some issues on controlling temperature.i only had 1 fan and that caused some zones that overheated (more on coners).
      Now i have 2x120mm(0.10A) pc fans that can spread hot air the same way in all this box.

      Then i have a secondary arduino that it's for safe features. it controls an alarm buzzer(pc speaker) ,its connected to an temperature sensor (ds18b20) and send temperature to emoncms.com through an nrf24 wireless board
      If temperatures goes over 39ΒΊC or below 30ΒΊC it sound an noisy alarm.Just in case main arduino or DHT22 fail.

      Egg roller its made os aluminium and plastic egg racks cutted and glued with hot glue(screws were better but this is enought to hold eggs).it makes 45ΒΊ each side.
      An High torque servo roll every 60 minutes. Note that an regular servo does not have enough torque should be an high toque version.

      0_1503674323666_IMG_20170825_100105.jpg
      eggs ready to start hatching! note the ds18b20 sensor in the back of the DHT22 sensor.they will stay same height than egg rack.

      0_1503674377143_IMG_20170825_095715.jpg

      0_1503674450331_IMG_20170825_095958.jpg
      2x18w halogen lighs

      0_1503674483401_IMG_20170825_100427.jpg
      lcd screen is configured for simplicity . code have hours and days passed and remaining ,but i decide use just passed days, temperature manual offset and time for next egg roll(minutes),and of course temperature and humidity on first line.

      0_1503674561645_IMG_20170825_100507.jpg

      0_1503674748968_IMG_20170825_100348.jpg

      0_1503674763845_IMG_20170825_100159.jpg
      its a mess of cables ...i know. It's what happening when we always improve our project until it be a final version πŸ˜›
      I used usb cables from computer cases for wire sensors, it work really well .
      There's 2 solid state relays on picture but we only need one.

      Parts:
      2x 12v 120mm pc fan(0.10A -slow speed/low noise)
      1x LM2596
      1x High torque servo or step motor(need additional controller).
      1x 5v Arduino pro mini (or equivalent )
      1x DHT22
      1x 5v relay Or SSR G3MB-202P Solid State
      1x 2 lines I2C 1602 LCD (i2c ,not serial) or 4 lines if you what more info on screen like time left and time spent clock.
      2x monetary switch
      2x 10k resistors
      2x 18w halogen light bulbs
      2x G9 Ceramic Sockets
      1x AC 220V 2000W SCR Voltage Regulator (overkill for 36W i know, but it cost 1.50€ on ebay)

      Optional parts
      1x 3.3v pro mini (or equivalent)
      1x computer speaker(buzzer)
      1x DS18b20
      1x NRF24L01
      1x 4.7K Resistor
      1x 3.7v litio battery (cellphone or 18650 cell)
      1x Battery Protection Board(just for charge battery before start hatching)
      note: this battery just hold main arduino in case of power failure. During normal work it never charge or discharge due 5v on line from LM2526

      FRITZING PROJECT:
      0_1504458462680_eggencubator v2.fzz

      0_1504458420052_egg encobator v2.jpg

      CODE:

      // Servo version of
      // Incubator code with lcd 16x2 ####--->>  I2C (4 wires) <<---  ###
      // ---------------------------------------------
      #include <Wire.h>
      #include <LiquidCrystal_I2C.h>
      
      #include "DHT.h"
      #include <Servo.h>
      #define DHTPIN 4                              // Define the temp sensor data pin
      #define DHTTYPE DHT22                         // define the temp/hum sensor type
      #define RELAY_1  7                              // define the relay 1 and 2 control pin
      #define RELAY_2  8
      
       
      Servo myservo;                                // create servo object to control a servo
      DHT dht(DHTPIN, DHTTYPE);                     //initialize the temp sensor
      
      LiquidCrystal_I2C lcd(0x3F,2,1,0,4,5,6,7,3, POSITIVE);    //set up what port the LCD will use
                            
      int pos = 0;                                  // variable to store the servo position
      int istate = 0;
      
      const int  buttonPin1 = 5;    // the pin that the Up pushbutton is attached to
      const int  buttonPin2 = 6;    // the pin that the Down pushbutton is attached to
      int buttonState1 = 0;
      int buttonState2 = 0;
      float val = 0; //val to increment/decrement (buttons/ threshold)
      
      int is, im, ih, id, ida, iha, ima;                      // variables for time
      float time, s1, m1, h1, d1;                   //  Set up variables to calculate time
      int ic, ip, ik;
      byte thermo[8] = {B00100, B01010, B01010, B01110, B01110, B11111, B11111, B01110}; //thermometer icon
      byte drop[8] = {B00100, B00100, B01010, B01010, B10001, B10001, B10001, B01110}; //drop icon
      byte arrow[8] = { B00100,  B01010,  B10101,  B00100, B10101,  B01010,  B00100,}; // smile icon
      byte tim[8] = {B00000, B01110, B10101, B10101, B10011, B10001, B01110,}; // clock icon
      
      int END = 0;
      unsigned long previousMillis = 0;
      const long interval = 3600000UL; //timer for roll eggs 1HOUR
      
      void setup()
      {
       Serial.begin(9600);
      
        pinMode(buttonPin1, INPUT);
        pinMode(buttonPin2, INPUT); 
        dht.begin();                                //start the temp sensor
        pinMode(RELAY_1, OUTPUT);
        pinMode(RELAY_2, OUTPUT);
        
        lcd.begin (16,2);                          // columns, rows.  use 16,2 for a 16x2 LCD, etc.
        lcd.clear();                                // start with a blank screen
        lcd.setCursor(0, 0);                        // set cursor to column 0, row 0 (the first row)
        lcd.print("Incubatora 1.0");                 // opening line
        lcd.setCursor(0, 1);                        // set cursor to column 0, row 1
        lcd.print("A iniciar!");
        delay(2000);
                                
        lcd.createChar(0, thermo);
        lcd.createChar(1, drop);
        lcd.createChar(2, arrow);
        lcd.createChar(3, tim);
        myservo.attach(9); // servo control is set to pin 9 (usually yellow wire is control, black goes to ground red goes to +5V)
        myservo.write(70); //put the servo at intitial position of 16 degrees
        myservo.detach();
      }
      
      //loop to read the sensor and display
      void loop() {
      
        int buttonState1 = digitalRead(buttonPin1);
        int buttonState2 = digitalRead(buttonPin2);
        delay(10);
      
      if (buttonState1 == HIGH)
           {     
           val-=0.1;
          } 
         else if (buttonState2 == HIGH) 
         { 
          val+=0.1;
         }
          
           
           
        float h = dht.readHumidity();                 // Read the humidity
        float t = dht.readTemperature();              // Read temperature in celsius
        float f = dht.readTemperature(true);          // get the temperature in Fahreheit
        
         //Temperature controller
          if (t >= (37.7 + val))
          {                       //  Set the temperature for the relay to come on (ideal 37.7ΒΊC)     
            digitalWrite(RELAY_1,LOW);          // TO HOT: Turns Relay OFF
          digitalWrite(RELAY_2,LOW);
          }
      
           if (t <= (37.5 + val))
         {                       //  Set the temperature for the relay to come on (ideal 37.7ΒΊC)    
            digitalWrite(RELAY_1,HIGH);          // TO HOT: Turns Relay ON
          digitalWrite(RELAY_2,HIGH);
          }
        
        
        // uncomment to compute heat index in Fahrenheit (the default)
        //float hif = dht.computeHeatIndex(f, h);
        // Compute heat index in Celsius (isFahreheit = false)
        //float hic = dht.computeHeatIndex(t, h, false);
        time = millis();                            //  Get time in milliseconds since tunit turn on
        s1 = time / 1000;                           //  Convert time to seconds, minutes, hours, days
        m1 = s1 / 60;
        h1 = m1 / 60;
        d1 = h1 / 24;
        id = int(d1);  //d                             //  Strip out remainder to leave Days:Hours:Minutes:Seconds
        ih = int((d1 - int(d1)) * 24); //h
        im = int((h1 - int(h1)) * 60); //m
        is = int((m1 - int(m1)) * 60);  //s
       
        
        
        
        // Calculate approximate TIME till hatch (assume 21 days to hatch)   -      not used yet
        ida = 21 - id;
        iha = 24 - ih;   
        ima = 60 - im;
        
      
      
        
        if (isnan(h) || isnan(t) || isnan(f)) {
          // if sensor can't be read
          lcd.clear();
          lcd.setCursor(0, 0);
          lcd.print("Falha No Sensor");
          Serial.print("Falha No Sensor" );
           digitalWrite(RELAY_1,HIGH);          // ERRO: Turns 1 Relay OFF to not kill all the eggs
          digitalWrite(RELAY_2,LOW);
          delay(5000);
          return;
        }
        else {      //  for  LCD 16x2
          //sensor was read succesfully so print values to LCD 16x2
          lcd.clear();                                // Clear the LCD
          //Print temperature and humidity in first two lines
          lcd.setCursor(0, 0);
          // lcd.print("Temperature:");
      
          lcd.write(byte(0));                       // Write the Thermometer icon
           lcd.print(t , 1);
          lcd.print((char)223);
          lcd.print("C  ");
          
          //lcd.setCursor(0,1);
          lcd.write(byte(1));                         // Write the drop icon
          // lcd.print("Humidade:");
           lcd.print(h, 0);
           lcd.print("%");
        //   lcd.print(" ");
        //  lcd.print(ic);
          lcd.setCursor(0, 1);
          
          //lcd.print("  ");
          lcd.write(byte(3));
          lcd.print(" ");
          // Print timein format Time: xxd:xxh:xxm:xxs
        lcd.print(id);
          lcd.print("d ");
         /* lcd.print(ih);
          lcd.print(":");
          lcd.print(im);
          lcd.print(" "); 
          lcd.print(is); lcd.print(" ");*/
          lcd.print(val,1);    
      
      
        if (21 - id <= 3){
             // Print days left till hatch
             lcd.print("!");
           END = 1; //stop move eggs
         }
        
         // this section is to roll the eggs   
      unsigned long currentMillis = millis();
      
       int tleft = ((currentMillis - previousMillis)/ 1000) /60;
      lcd.print(" ");  lcd.write(byte(2));  
       lcd.print(tleft); 
      
       
      if (currentMillis - previousMillis >= interval)
      {
        previousMillis = currentMillis;
       
      if(istate == 0 && END == 0){  
        //myservo.attach(9);
         for (pos = 80; pos <= 155; pos += 1) { // goes from 16 degrees to 80 degrees  in steps of 1 degree
           myservo.attach(9);
           myservo.write(pos);
           istate=1;
           delay(50);
         }
         myservo.detach();
       }
      else if( istate == 1 && END == 0)
      { 
       // myservo.attach(9);        
         for (pos = 155 ; pos >=80; pos -= 1) { // goes from 80 degrees to 0 degrees
          myservo.attach(9);
           myservo.write(pos); 
           istate = 0;
           delay(50);                      // slow the servo down a bit to turn the eggs        
         }
         myservo.detach();
       }
      
      }
        
             // Pause for 2 seconds
         delay(2000);
        }
      }
       
      

      auxiliary/optional arduino

      #define MY_DEBUG
      
      
      
      // ---------------------------------------------
      #define MY_RADIO_NRF24
      
      
      #include <SPI.h>
      #include <MySensors.h>  
      #include <OneWire.h>
      #include <DallasTemperature.h>
      
      
      #define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      // Data wire is plugged into pin 2 on the Arduino
      #define ONE_WIRE_BUS 2
       #define CHILD_ID_EGG 12 //id
      // Setup a oneWire instance to communicate with any OneWire devices 
      // (not just Maxim/Dallas temperature ICs)
      OneWire oneWire(ONE_WIRE_BUS);
       
      // Pass our oneWire reference to Dallas Temperature.
      DallasTemperature sensors(&oneWire);
      const int buzzer = 3; //buzzer to arduino pin 3
      unsigned int al = 0;
      
      bool receivedConfig = false;
      bool metric = true;
      MyMessage msg(CHILD_ID_EGG,V_TEMP);
      
      
      unsigned long previousMillis = 0;        // will store last time sent temperature
      const long interval =900000; //15min
      
      void before()
      {
        // Startup up the OneWire library
        sensors.begin();
      }
      
      void setup()
      {
        
            sensors.begin();
             pinMode(buzzer, OUTPUT); // Set buzzer - pin 9 as an output
      }
      
      
      void presentation() {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Temperature eggs", "2.0");
      
       
        // Present all sensors to controller
             present(CHILD_ID_EGG, S_TEMP);
        }
      
      
      
      void loop() {
      
        sensors.requestTemperatures(); // Send the command to get temperatures
      
      
        //Serial.print("Temperature is: ");
      
          float t =sensors.getTempCByIndex(0); 
      
      //Serial.print(t); 
      //-----------------------------timer & send-------------------------------------
       unsigned long currentMillis = millis();
      
        if (currentMillis - previousMillis >= interval) {
             
              previousMillis = currentMillis;
             
      // Send in the new temperature every 5min send(msg.setSensor(t).set(t,1));  
      send(msg.set(t,1));  Serial.print(t); 
        }
      //---------------------------------------------------------------------------------------
      
      //alarm buzzer-------
       if (t >=37.0) {    //(37ΒΊc)
        al=1;                 //save 1 when 1st temperature estabilize. after that "al" will be always 1 until reset/shutdows . This makes the alarm not start when incubator still cold on warm up
         }                      
      
         //Temperature controller alarm
          if (t >= 39.0) {  
            for (unsigned int i=750; i<2500; i++) {  // TO HOT: alarm!
            tone(buzzer, i ,700);
              delayMicroseconds (15);
            }
      delay(2000);
          }
      
              
        if (t <= 30.0 && al == 1) {                       
       
            for (unsigned int i=750; i<2500; i++) {  // TO HOT: alarm!
            tone(buzzer, i ,700);
              delayMicroseconds (15);
            }
      delay(2000);
          }
      
       
          
        }
      
      

      NOTE: English it's not my language. i'm sorry some errors that can happens πŸ˜›

      posted in My Project
      Tmaster
      Tmaster
    • Domoticz with DIY "razberry" card

      hello. like o wrote before my veralite dies after 4 years of work.
      So now i'm on Domoticz.For the dead vera lite i recover the z-wave part. i had some doubts that it works but i have seen n razberry cards that the hardware its the same,so why not try.
      I just cutted the 4 layers pcb and solder 4 wires on zm3102 chip directly(tx,rc,vcc and gnd). some hot glue and some nail polish /or epoxy to seal cutted sides.There are no working leds but how cares. and yea.I have an external antena πŸ™‚ . Everything fits inside vera case aswell(recycling on the best),raspbery,zwave card and mysensors GW.
      in beginning domoticz didn't detect it like in official zwave cards ,there are some procedures to make before,but soon as setup button gets blue ,was just reset or exclude and then include nodes again on Domoticz. until now (24hours later) everything still work like a charm ,And let me say Domoticz is far more complete than mios os.

      3_1520793722430_IMG_20180310_183236_962.jpg 2_1520793722429_IMG_20180310_183202_675.jpg 1_1520793722429_IMG_20180310_183135_708.jpg 0_1520793722429_IMG_20180310_181022_554.jpg

      posted in Domoticz
      Tmaster
      Tmaster
    • RE: Timer (Emergencie)

      if it is an emergency button should be connected directly to relay (connected by hardware). And not using code,because if arduino it's freezed it will not respond and you cant stop it

      posted in My Project
      Tmaster
      Tmaster
    • RE: Will a NRF24L01+PA+LNA help with my signal problems

      Hi to @Greymarvel .Well i already seen this movie before. I bought diferent nrf24 nodes,amplifed ,not amplified,with or without capacitors. In fact i had worst redults with amp nodes. I just change to rfm69hw and w
      . No more low power/high power...etc. now i got my 4000m2 terrain covered (around 80m long).
      I didn't check max range but i never had lost a packet again. I was a very good increment on my network stability.
      That fake nrf24 chips are crazy and unstable and yes,all ebay cheap nodes are fake second i know.

      posted in Development
      Tmaster
      Tmaster
    • RE: Egg incubator IOT v3.0

      And that is the result . 14 chicks of 25eggs ,but i could say that was 100% sucess because the other eggs were not fertilized. not even a single dead before or after hatch. Its not the arduino the most versatile machine? πŸ™‚

      0_1505665439485_IMG_20170914_145207.jpg

      top left chic just born 10min before i take the picture:P
      0_1505665502812_IMG_20170914_145158.jpg

      posted in My Project
      Tmaster
      Tmaster
    • RE: NRF24 Range

      i'm bilding this right now: http://www.qsl.net/eb4eqa/bt_yagi/bt_yagi.htm
      i tell you what is the increment of range in the next weekend ...

      0_1494431994498_upload-5f249d36-0af2-4bd6-b4f3-0b4b13788dad

      i have one of temp sensors under a water solar panel and the aluminium from the frame get me crazy because that sensor lose many of the sent reads to gw. i will finish that yagi antenna and solder that to my nrf24 and i hope signal increase performance.

      in my house (i dont have neighboard les than 80m with wifi signal and noise from other routers or any king of 2.4ghz signals ) i can send a door sensor signal(from my entrance gate) by 50m and 1 wall . that one have this antena alredy on tx:
      http://martybugs.net/wireless/collinear.cgi
      0_1494432012836_upload-41e2f334-6ce8-4308-8b9c-e67b2af5c252

      posted in General Discussion
      Tmaster
      Tmaster
    • RE: Roller shutter(s_cover) on Domoticz

      thank you for reply @mfalkvidd
      Payload like 100 shoud be 100% on domoticz, right? how does domoticz "know" that a blindcover /or shutter is open or close? because it's not respondig to that...

       
       __  __       ____
      |  \/  |_   _/ ___|  ___ _ __  ___  ___  _ __ ___
      | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __|
      | |  | | |_| |___| |  __/ | | \__ \  _  | |  \__ \
      |_|  |_|\__, |____/ \___|_| |_|___/\___/|_|  |___/
              |___/                      2.3.1
      
      16 MCO:BGN:INIT NODE,CP=RRNNA---,REL=255,VER=2.3.1
      26 MCO:BGN:BFR
      28 TSM:INIT
      30 TSF:WUR:MS=0
      34 TSM:INIT:TSP OK
      34 TSF:SID:OK,ID=4
      36 TSM:FPAR
      1257 TSF:MSG:SEND,4-4-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      1423 TSF:MSG:READ,0-0-4,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      1429 TSF:MSG:FPAR OK,ID=0,D=1
      3264 TSM:FPAR:OK
      3264 TSM:ID
      3266 TSM:ID:OK
      3268 TSM:UPL
      3276 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
      3315 TSF:MSG:READ,0-0-4,s=255,c=3,t=25,pt=1,l=1,sg=0:1
      3321 TSF:MSG:PONG RECV,HP=1
      3325 TSM:UPL:OK
      3328 TSM:READY:ID=4,PAR=0,DIS=1
      3540 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      3567 TSF:MSG:READ,0-0-4,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      3786 TSF:MSG:SEND,4-4-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.3.1
      4005 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
      4046 TSF:MSG:READ,0-0-4,s=255,c=3,t=6,pt=0,l=1,sg=0:M
      4263 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=11,pt=0,l=5,sg=0,ft=0,st=OK:Cover
      4483 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:2.0
      4708 TSF:MSG:SEND,4-4-0-0,s=0,c=0,t=5,pt=0,l=22,sg=0,ft=0,st=OK:shuttle for Livingroom
      4716 MCO:REG:REQ
      4929 TSF:MSG:SEND,4-4-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
      4956 TSF:MSG:READ,0-0-4,s=255,c=3,t=27,pt=1,l=1,sg=0:1
      4962 MCO:PIM:NODE REG=1
      4964 MCO:BGN:STP
      getting rolltime from eeprom: 
      28.00
      getting state from eeprom: 
      0
      4968 MCO:BGN:INIT OK,TSP=1
      Sending initial value
      5185 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=29,pt=1,l=1,sg=0,ft=0,st=OK:0
      5402 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=30,pt=1,l=1,sg=0,ft=0,st=OK:0
      5619 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=31,pt=1,l=1,sg=0,ft=0,st=OK:1
      5838 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=OK:0
      

      .
      .
      .
      .
      after I give an order of CLOSE (DOWN) shutter (v_percentage=0)

      ------------     *(HERE WAS AT 100% AND I ORDER TO GO 0%(CLOSED)* -------------------
      
      exiting incoming message
      Shutters going down
      612509 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=29,pt=1,l=1,sg=0,ft=0,st=OK:0
      612728 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=30,pt=1,l=1,sg=0,ft=0,st=OK:1
      612947 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=31,pt=1,l=1,sg=0,ft=0,st=OK:0
      613167 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=OK:100
      99
      98
      
      
      
      (...)
      
      7
      6
      5
      4
      3
      2
      1
      0
      Shutters halted X
      saving state to: 
      0
      645519 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=29,pt=1,l=1,sg=0,ft=0,st=OK:0
      645738 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=30,pt=1,l=1,sg=0,ft=0,st=OK:0
      645957 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=31,pt=1,l=1,sg=0,ft=0,st=OK:1
      646176 TSF:MSG:SEND,4-4-0-0,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=OK:0
      
      ------------    *(HERE REACH 0%)* -------------------
      
      posted in Domoticz
      Tmaster
      Tmaster
    • RE: bluetooth instead of wifi

      because wifi is not the most safe for humans... sleeping etc

      what are you talking about???
      are you the ones that say wifi boils water on a cup?

      mysensors library works on nrf24l01+ modules, Not wifi. its a kind of Bluetooth already... anyway Bluetooth is 2.4ghz like wi-fi, but Bluetooth consumes less power (Theoricly)

      posted in My Project
      Tmaster
      Tmaster
    • RE: Crazy timer on my sketch

      @mfalkvidd said in Crazy timer on my sketch:

      the debug log will probably give good insight to why the node reacts early.

      i just discovered the auto-formatting right now πŸ™‚

      About debug (mydebug) just reacts as normal,everything as should, but in shorter time... less 70-80% of the time most the times. Tomorrow i will get the arduino that its watering right know and change the code a bit..try some "while" instead of "if" or hammering it πŸ˜‰

      posted in General Discussion
      Tmaster
      Tmaster

    Latest posts made by Tmaster

    • RE: 2021 EU customs regulatory changes β€” where should I buy now?

      These extra taxes of 5€ or 7.5€ that you talk doesn't make sense. There in Portugal ,if we buy from ebay,or other similar website ,we pay vat(iva) on website and up to 150€ , we don't pay nothing else.when the goods arrive won't stop on costoms . What sense makes pay 5€ on a arduino promini that cost 1.5€?

      We only pay costoms (mail company) taxes if we do mot pay Vat(iva) on website.

      That extra taxes shoud be for you order more stuff toguether in the same order...and the mail companies don't deal with so many small packages

      posted in General Discussion
      Tmaster
      Tmaster
    • RE: domoticz motion(type)sensors don't show battery level

      On a new card i updated OS to Raspian Buster and installed latest domoticz V 2.2020. BUT the problem still the same . no battery value present soon as this sensor report a new "data" AND it's as motion sensor and not as any other type of sensor. If it works to others i really don't understand what happens...πŸ˜–

      posted in Domoticz
      Tmaster
      Tmaster
    • RE: domoticz motion(type)sensors don't show battery level

      My version it's V4.11207 .I can't upgrade more without upgrade Os from "strecht"to new raspbian Os. Shouldn't be the sensor update frequency because if i go to domoticz now and just change sensor type to" on/off switch" ,battery level just appears there on debices.
      I think that i have to upgrade everyting...Os and domoticz but its a pain,because i have to pair zwave devices from shutters again...and probably new bugs appear.... My thought is;linux that work...don't touch 😝

      posted in Domoticz
      Tmaster
      Tmaster
    • domoticz motion(type)sensors don't show battery level

      hello. i build an motion sensors that works great but if i select sensor type on domoticz like "motion sensor", the battery level from "devices" disappear. That only happens on "motion sensor type", if i select other like on/off type ,the level appears but than i can't use the "disable after x seconds" feature present only on motion sensor type.
      any one have this problem? i can't find if its an domoticz bug or mysensors , or what what happens
      code is bellow but i think it's ok because if i select other type of sensor ,on domoticz, battery status work good. .thanks.

      06443cd0-18a3-4171-bbc8-5304ac5372cf-image.png

      void setup()
      {
      	pinMode(DI_SENSOR1, INPUT);
      	//pinMode(DI_SENSOR2, INPUT); // sets the motion sensor digital pin as input
        analogReference(INTERNAL);
      }
      
      void presentation()
      {
      	// Send the sketch version information to the gateway and Controller
      	sendSketchInfo("Motion Sensor", "1.0");
      
      	// Register all sensors to gw (they will be created as child devices)
      	present(CHILD_ID, S_MOTION);
      }
      void loop()
      {
        int sensorValue = analogRead(BATTERY_SENSE_PIN);
       float vBat  = static_cast<float>(sensorValue * (8.2/1023));
        
        #ifdef MY_DEBUG
          Serial.print("A0: ");
          Serial.println(sensorValue);
          Serial.print("Battery Voltage: ");
          Serial.println(vBat);
        #endif
          delay(500);
          int batteryPcnt =  static_cast<int>(((vBat-6)/(8.4-6))*100.);
          delay(500);
      
        // ((1e3+150)/150)*1.1 = Vmax = 8.43 Volts
         // 8.43/1023 = Volts per bit = ~0.00804
      
        #ifdef MY_DEBUG
             Serial.print("Battery percent: ");
          Serial.print(batteryPcnt);
          Serial.println(" %");
        #endif
         if (oldBatteryPcnt != batteryPcnt)  {
              // Power up radio after sleep
              
              sendBatteryLevel(batteryPcnt);
              oldBatteryPcnt = batteryPcnt;
              }
      
       //motion 
      
          bool tripped = digitalRead(DI_SENSOR1) == HIGH;
      
      
            Serial.println(tripped);
           send(msg.set(tripped?"1":"0"));
      
          sleep(digitalPinToInterrupt(DI_SENSOR1), RISING, 0);
      }
      
      posted in Domoticz
      Tmaster
      Tmaster
    • RE: RFM69 Range issues

      The best antena that i tried on rfm69 is the dipole. Direct solder to the rfm69 board. One wire 0.8mm with 8.2cm long on Ant pin,and other in ground in oposite Direction,same size.thos for 868mhz.
      I have the gate sensor at 50m outdoor and never seen a miss comunication.

      I tried spring antenna and same dipole with an coax cable and didn't work at that range. And a mono-pole without ground plane(wire) have more lost packets( i just try communicate directly,dont have any signal scanner).

      posted in Troubleshooting
      Tmaster
      Tmaster
    • RE: Simple irrigation controller

      @markjgabb said in Simple irrigation controller:

      hey @Tmaster

      are you still using this solution?
      have you made any improvements or come across any issues with using it over time?

      Hello.still working good exept on winter that was disabled.
      Last summer worked until october without any fail.

      posted in My Project
      Tmaster
      Tmaster
    • RE: RS-485 to an wireless Gateway

      @mfalkvidd said in RS-485 to an wireless Gateway:

      Most controllers, including Domoticz, supports multiple gateways. I have 2 gateways on my Domoticz.

      That's what i wasn't sure.
      Right now i already have a zwave gw(module) hoked to raspberry pins,that controls all windows shutters and an Usb GW (mysensors serial gw) that controls 4 temperature sensors, irrigation valcs from my garden ,solar water panel relay , outdoor lights etc...all on rfm69W and C "transport" 868mhz, but i will consider if i build a second arduino usb GW or i keep the wireless to the gate.
      So if i see the zwave module like an GW i already have 2 as well πŸ˜•
      The true it's that the gate is already "mysensor-rized" with wireless but i keep preferring wired connection for outdoor and once i'm burying the cables for power and doorbell ,maybe i add an Cat6 cable for RS-485 connection.

      posted in Hardware
      Tmaster
      Tmaster
    • RE: RS-485 to an wireless Gateway

      So like mysensors is designed right now, it's not possible mix wired and wifi sensors on same gateway...
      if was you ,what you do in that situation?
      i just don't know what way to do it. Create a new gateway means a new raspberry and a new domoticz instance (in diferent port), or can i create something like this guy did and connect it to the already existing raspberry that it's connected to a wireless gateway(arduino+rfm69) ? i'm a bit confused about this.

      ps: forguet about new code or change mysensors core code(except sensor sketches that i can change) .i'm not programmer,i'm electronic engineer πŸ˜›

      posted in Hardware
      Tmaster
      Tmaster
    • RE: RS-485 to an wireless Gateway

      the fact is ,i don't know what i want!πŸ˜–
      Once the gate is far from my house(+50m) ,i thought that is good idea use the RS-485 modules for wired connection instead of use the wireless rfm69 that i have implemented in my Domotics/pi already.
      but i don't know if that it's possible? basically i want connect an wired sensor connected to my existing wireless mysensors network.

      posted in Hardware
      Tmaster
      Tmaster
    • RS-485 to an wireless Gateway

      Hi. like i have explained in other topics , my setup is an usb serial gateway(rfm69) connected to an raspberry pi and Domoticz as controller software .
      I have an electric slider gate(for cars) 50 meters away from house,and want domoticz open and close ,as well as an alarm beep and log when some familiar enters.
      i have some RS-485 modules that i bought before, ther is any way to use RS-485 serial instead on use an rfm69 at 50meters away ,once i have cables outside buried already ideal for serial communication?
      i read , that i need 2 gateways ,one for RS-485 other for wireless(rfm69) but make another gateway just for one sensor its overkill.
      Any other away?

      posted in Hardware
      Tmaster
      Tmaster