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
Tomasz PazioT

Tomasz Pazio

@Tomasz Pazio
About
Posts
33
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Fibaro HC2 Virtual Device Gateway
    Tomasz PazioT Tomasz Pazio

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

    Controllers

  • My Slim 2AA Battery Node
    Tomasz PazioT Tomasz Pazio

    @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.

    My Project

  • My Slim 2AA Battery Node
    Tomasz PazioT Tomasz Pazio

    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

    My Project

  • Need idea for turn off speakers when tv is off
    Tomasz PazioT Tomasz Pazio

    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 :)

    General Discussion

  • Need idea for turn off speakers when tv is off
    Tomasz PazioT Tomasz Pazio

    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?

    General Discussion

  • Humidity, temperature, motion and bunch of relays...
    Tomasz PazioT Tomasz Pazio

    @BulldogLowell works fine with this :) thanks for support.

    Troubleshooting

  • Humidity, temperature, motion and bunch of relays...
    Tomasz PazioT Tomasz Pazio

    @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 :(

    Troubleshooting

  • Humidity, temperature, motion and bunch of relays...
    Tomasz PazioT Tomasz Pazio

    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.

    Troubleshooting

  • Humidity, temperature, motion and bunch of relays...
    Tomasz PazioT Tomasz Pazio

    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);
            }
    }
    
    
    Troubleshooting

  • Relay / Motion Multisensor
    Tomasz PazioT Tomasz Pazio

    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
    ?

    My Project motion relay multisensor

  • Multiple nodes or multiple sensors
    Tomasz PazioT Tomasz Pazio

    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?

    General Discussion

  • How To: Make a Simple/Cheap Scene Controller (with video)
    Tomasz PazioT Tomasz Pazio

    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;
    
    
    My Project

  • How To: Make a Simple/Cheap Scene Controller (with video)
    Tomasz PazioT Tomasz Pazio

    @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

    My Project

  • IR remote control
    Tomasz PazioT Tomasz Pazio

    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?

    Hardware

  • multiple DS18D20 does not report temperature
    Tomasz PazioT Tomasz Pazio

    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.

    Troubleshooting

  • Nano shield from Robotale
    Tomasz PazioT Tomasz Pazio

    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

    General Discussion

  • Connect mysensors node to existing alarm system.
    Tomasz PazioT Tomasz Pazio

    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

    General Discussion

  • multiple DS18D20 does not report temperature
    Tomasz PazioT Tomasz Pazio

    @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.

    Troubleshooting

  • multiple DS18D20 does not report temperature
    Tomasz PazioT Tomasz Pazio

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

    Troubleshooting

  • Temperature not presented to controller
    Tomasz PazioT Tomasz Pazio

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

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular