Navigation

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

    Posts made by Tomasz Pazio

    • RE: Fibaro HC2 Virtual Device Gateway

      Any progress on this topic? Fibaro have good controller, it would be interesting to have it fully integrated with Mysensors.

      posted in Controllers
      Tomasz Pazio
      Tomasz Pazio
    • RE: My Slim 2AA Battery Node

      @m26872 thanks for advice, bootloader burned on IDE 1.0.x and after that, sketches are uploaded properly on 1.6.x.

      One more question, how it should report battery state? I can not see any variable created for this in Vera.

      posted in My Project
      Tomasz Pazio
      Tomasz Pazio
    • RE: My Slim 2AA Battery Node

      Hi, I build the board but I still have issues with burning ATMega328p chip.
      Can you describe and attach files that should work?
      The only success "burn" I had with burning bootloader was with hex and boards entry from first post using arduino uno and ips programer ( so it is like burning uno bootloader with your setup)
      After that I was trying to upload sketch but than it was not possible because of "?# in boards file but there is no such sign.
      I rewert file to stock and burn sketch like it would be standard uno board but using programer and not standard usb. No idea if it is corect so that is why I ask for more details.
      Thank you in advance
      Tomasz

      posted in My Project
      Tomasz Pazio
      Tomasz Pazio
    • RE: Need idea for turn off speakers when tv is off

      Ok solution is now live 🙂
      PowerNode from GreenWave with power monitoring.
      I'm monitoring power consumption on DVBT reciever. When it goes up from idle, tv and speakers turn on, when goes to idle consumption it turn off all 🙂

      posted in General Discussion
      Tomasz Pazio
      Tomasz Pazio
    • Need idea for turn off speakers when tv is off

      I have some idea to turn off speakers connected to power when tv turn off.
      I was thinking about ping tv/reciever and when off than simple relay switch.. but... tv has no LAN and recieever do not support ping reply.
      Any idea how to make it happen? Power consumption monitoring?

      posted in General Discussion
      Tomasz Pazio
      Tomasz Pazio
    • RE: Humidity, temperature, motion and bunch of relays...

      @BulldogLowell works fine with this 🙂 thanks for support.

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: Humidity, temperature, motion and bunch of relays...

      @Dwalt think that I undersand the idea but no idea how to write this in code, google gives a lot of examples but hard for me to code this 😞

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: Humidity, temperature, motion and bunch of relays...

      Sorry I was to fast. I have problem with second "array" or sensors, first is working on pins 14-17 so analog. Second part should work on pins 5-8 but I have no idea how to make this. All works fine now but on 4 relays, I need to add 4 more.

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • Humidity, temperature, motion and bunch of relays...

      Hi everybody,
      I'm trying to have a sketch for my leaving room which should have 8 relays, humidity, temperature and motion sensors.
      I was able to merge few sketches to one and it works fine with 4 relays but i have problem with second "array" or sensors
      this is my working sketch

      #include <MySensor.h>
      #include <SPI.h>
      #include <Wire.h>
      #include <DHT.h>
      #include <SimpleTimer.h>
      #define CHILD_ID_HUM 20
      #define CHILD_ID_TEMP 21
      #define CHILD_ID_MOTION 22
      
      #define RELAY_1  14  // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
      #define NUMBER_OF_RELAYS 4 // Total number of attached relays
      #define RELAY_ON 0  // GPIO value to write to turn on attached relay
      #define RELAY_OFF 1 // GPIO value to write to turn off attached relay
      #define HUMIDITY_SENSOR_DIGITAL_PIN 19
      #define MOTION_SENSOR_DIGITAL_PIN 3
      #define INTERRUPT MOTION_SENSOR_DIGITAL_PIN-2 // Usually the interrupt = pin -2 (on uno/nano anyway)
      unsigned long SLEEP_TIME = 600000; // Sleep time between reads (in milliseconds) - 10mins
      
      MySensor gw;
      DHT dht;
      SimpleTimer timer;
      
      float lastTemp;
      float lastHum;
      boolean lastTripped;
      boolean metric = true;
      
      MyMessage msgHum(CHILD_ID_HUM, V_HUM);
      MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
      MyMessage msg(CHILD_ID_MOTION, V_TRIPPED);
      
      
      void setup()  
      {   
        // Initialize library and add callback for incoming messages
        gw.begin(incomingMessage, AUTO, true);
        
        dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 
        // Send the sketch version information to the gateway and Controller
        gw.sendSketchInfo("HumTempRelayMotion", "1.4");
         // Register all sensors to gw 
          gw.present(CHILD_ID_HUM, S_HUM);
          gw.present(CHILD_ID_TEMP, S_TEMP);
          gw.present(CHILD_ID_MOTION, S_MOTION);
        // Fetch relay status
         for (int sensor=1, pin=RELAY_1; sensor<=NUMBER_OF_RELAYS;sensor++, pin++) {
          // Register all sensors to gw (they will be created as child devices)
          gw.present(sensor, S_LIGHT);
          // Then set relay pins in output mode
          pinMode(pin, OUTPUT);   
          // Set relay to last known state (using eeprom storage) 
          digitalWrite(pin, gw.loadState(sensor)?RELAY_ON:RELAY_OFF);
      
      }
        //Serial.begin(9600);
        timer.setInterval(30000, getMeasure);
        metric = gw.getConfig().isMetric;
      
      }
      
      void loop() 
      {
        // Alway process incoming messages whenever possible
        gw.process();
        timer.run();
      
        boolean tripped = digitalRead(MOTION_SENSOR_DIGITAL_PIN) == HIGH;    
        if (tripped != lastTripped) {
          lastTripped = tripped;
          Serial.print("M: ");
          Serial.println(tripped);
          gw.send(msg.set(tripped?"1":"0"));  // Send tripped value to gw
         }
      }
      
      void incomingMessage(const MyMessage &message) {
        // We only expect one type of message from controller. But we better check anyway.
        if (message.type==V_LIGHT) {
           // Change relay state
           digitalWrite(message.sensor-1+RELAY_1, message.getBool()?RELAY_ON:RELAY_OFF);
           // Store state in eeprom
           gw.saveState(message.sensor, message.getBool());
           // Write some debug info
           Serial.print("Incoming change for sensor:");
           Serial.print(message.sensor);
           Serial.print(", New status: ");
           Serial.println(message.getBool());
         } 
      }
      void getMeasure() {
        delay(dht.getMinimumSamplingPeriod());
      
        float temperature = dht.getTemperature();
        if (isnan(temperature)) {
            Serial.println("Failed reading temperature from DHT");
        } else if (temperature != lastTemp) {
          lastTemp = temperature;
          if (!metric) {
            temperature = dht.toFahrenheit(temperature);
          }
          gw.send(msgTemp.set(temperature, 1));
          Serial.print("T: ");
          Serial.println(temperature);
        }
        
        float humidity = dht.getHumidity();
        if (isnan(humidity)) {
            Serial.println("Failed reading humidity from DHT");
        } else if (humidity != lastHum) {
            lastHum = humidity;
            gw.send(msgHum.set(humidity, 1));
            Serial.print("H: ");
            Serial.println(humidity);
              }
      }
      
      
      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: Relay / Motion Multisensor

      Guys, I would like to use this sketch with dht but on Uno and with 8 relays and use analog pins...
      Should I Just change part:

      #define RELAY 8
      To
      #define RELAY A0
      ?

      posted in My Project
      Tomasz Pazio
      Tomasz Pazio
    • Multiple nodes or multiple sensors

      I'm trying to merge dallas sensors and relays sketches but all the time "something"...
      Just grab a drink and start to think about "why"?
      What is better: multiple nodes with single "type" of sensor or one node with multiple sensors?

      posted in General Discussion
      Tomasz Pazio
      Tomasz Pazio
    • RE: How To: Make a Simple/Cheap Scene Controller (with video)

      ok easy.... two changes and 32 scenes can be managed 🙂

      const byte ROWS = 4;
      const byte COLS = 4;
      byte rowPins[ROWS] = {3, 4, 5, 6};
      byte colPins[COLS] = {A0, A1, A2, A3};
      char keys[ROWS][COLS] = {{'1','2','3','A'},
                               {'4','5','6','B'},
                               {'7','8','9','C'},
                               {'*','0','#','D'}};
      
      
      -----------------------------------------
      
       keyInt = keyInt + 100;
      
      
      posted in My Project
      Tomasz Pazio
      Tomasz Pazio
    • RE: How To: Make a Simple/Cheap Scene Controller (with video)

      @petewill really nice thing which can also be a nice solution for "old" people leaving with us.
      I was thinking to use matrix keypad which I own.
      Any help from community? probably analog input should be used as digital input because of missing inputs on nano...
      link

      posted in My Project
      Tomasz Pazio
      Tomasz Pazio
    • RE: IR remote control

      I would like to receive IR code on pilot and based on this "value" trigger scenes for light relays etc.
      when i use this example the only thing which i have on the monitor is

      send: 4-4-0-0 s=3,c=1,t=24,pt=0,l=8,sg=0,st=ok:00ff30cf
      Decoded NEC: Value:FFFFFFFF (0 bits)
      Raw samples(4): Gap:38550
      Head: m8700 s2300
      0:m450
      Extent=11450
      Mark min:450 max:450
      Space min:32767 max:0

      send: 4-4-0-0 s=3,c=1,t=24,pt=0,l=8,sg=0,st=ok:ffffffff
      Decoded NEC: Value:FF30CF (32 bits)
      Raw samples(68): Gap:23684
      Head: m8750 s4500
      0:m450 s650 1:m450 s650 2:m450 s650 3:m450 s650
      4:m450 s650 5:m450 s650 6:m450 s650 7:m450 s650
      8:m450 s1750 9:m500 s1700 10:m500 s1750 11:m450 s1750
      12:m450 s1750 13:m450 s1750 14:m450 s1750 15:m450 s1750

      16:m500 s600 17:m500 s600 18:m500 s1750 19:m450 s1750
      20:m450 s650 21:m450 s650 22:m450 s650 23:m450 s650
      24:m450 s1750 25:m450 s1750 26:m500 s600 27:m500 s600
      28:m500 s1700 29:m500 s1750 30:m450 s1750 31:m450 s1750

      32:m450
      Extent=66650
      Mark min:450 max:500
      Space min:600 max:1750

      on vera side there is one light sensor created only.

      how this actually should work like?

      posted in Hardware
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      removed all Arduino related stuff from PC
      Installed new IDE and libs from https://github.com/mysensors/Arduino/archive/master.zip
      now I have progress, there are no readings no mater on which sketch hahaha.

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • Nano shield from Robotale

      Hi
      Do You think that http://www.robotshop.com/en/io-shield-arduino-nano.html this shield can be used as nice board to build nodes?
      Radio seams to be connected the same, nice "prototyping" layout gives flexibility,
      cheap from Alli.... what do You think?
      http://www.robotshop.com/media/files/pdf/datasheet-shd034.pdf
      http://www.robotshop.com/media/files/pdf/schematic-shd034.pdf

      posted in General Discussion
      Tomasz Pazio
      Tomasz Pazio
    • Connect mysensors node to existing alarm system.

      I have quite old but still working fine alarm system connected to monitoring service.
      I would like to monitor states of sensors connected to it, do You think that this is possible just to connect to inputs of alarm system and check logic states via analog ports?
      http://www.pyronix.com/toolbox/Matrix8321.html

      posted in General Discussion
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      @rvendrame, why You need log from gateway? When no values are sent from node than nothing on Vera. When use some dummy values which are visible in node log - than those values are in Vera.

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      exactly like o the example so power from arduino 5V (not parasite)

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: Temperature not presented to controller

      Sander, I have the same issue on my side.
      http://forum.mysensors.org/topic/1715/multiple-ds18d20-does-not-report-temperature

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      any idea?

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      yes the same.

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      2015-08-01 15_47_46-Poczta.png
      when I use Example for Dallas multiple sensors it works fine.
      2015-08-01 15_49_37-Poczta.png
      when I use example for one-wire temperature sensor ds18.... it works fine as well
      so i can reed but can not use Mysensors sketch 😞

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      There are two parts of issue:
      problem with no data on vera was on this part:
      // Only send data if temperature has changed and no error
      #if COMPARE_TEMP == 1
      if (lastTemperature[i] != temperature && temperature != -127.00 && temperature != 85.00) {
      #else
      if (temperature != -127.00 && temperature != 85.00) {
      #endif

      my reading is now -127.00
      changed to -200 and now I can see the data on vera.
      however this is not correct data because should be something like 27 Celsius.
      so there is something with conversion as well 😞

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      Now trying with one and two. No more.

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      log is now different
      send: 3-3-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
      send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
      read: 0-0-3 s=255,c=3,t=6,pt=0,l=1,sg=0:M
      sensor started, id=3, parent=0, distance=1
      send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=18,sg=0,st=ok:Temperature Sensor
      send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.1
      send: 3-3-0-0 s=0,c=0,t=6,pt=0,l=0,sg=0,st=ok:
      send: 3-3-0-0 s=1,c=0,t=6,pt=0,l=0,sg=0,st=ok:

      but still no readings on vera 😞

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      no, only this one, and nothing else.

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      so something wrong with presenting readings 😞 what to check on vera side?

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      Today after vera update I do not have any readings from temp.sensors on onewire eaven one...
      when using "generic " example for arduino all sensors are reported.
      Something wrong with this example 😞

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      and log
      sensor started, id 3
      send: 3-3-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
      send: 3-3-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
      read: 0-0-3 s=255,c=3,t=6,pt=0,l=1:M
      send: 3-3-0-0 s=255,c=3,t=11,pt=0,l=18,st=ok:Temperature Sensor
      send: 3-3-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
      send: 3-3-0-0 s=0,c=0,t=6,pt=0,l=5,st=ok:1.4.1
      send: 3-3-0-0 s=1,c=0,t=6,pt=0,l=5,st=ok:1.4.1

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: multiple DS18D20 does not report temperature

      made all accept debug log.
      unfortunately fail, next thing, last update time change only after re-plug arduino, it is not changing recurrently every 30000ms

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • multiple DS18D20 does not report temperature

      Hi all.
      I'm new so do nos scream too much 😉
      I have working Gateway with Vera system, I would like to replace my current setup with OneWire network with 9 in line sensors connected to openwrt router.
      I used sketch from http://www.mysensors.org/build/temp with Nano but used two sensors (for now), For one sensor it was working fine, when added second, readings are gone from Vera.
      Setup looks correct because when uploading sketch from arduino libraty serial monitor shows two sensors with temperatures.
      Could You lease help?

      posted in Troubleshooting
      Tomasz Pazio
      Tomasz Pazio
    • RE: tinyBrd = NRF24L01 + ATtiny84

      cheap and ready to work.... would be nice if it plays with mysensors setup...

      posted in General Discussion
      Tomasz Pazio
      Tomasz Pazio