Navigation

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

    Topics created by Dheeraj

    • Dheeraj

      SmartClock
      pimatic • nrf24l01+ pimatic-mysenso • • Dheeraj  

      3
      4
      Votes
      3
      Posts
      2464
      Views

      Drcashman

      Any more details would to make one of these!
    • Dheeraj

      Hackathon @Office showcasing Mysensors capability
      My Project • • Dheeraj  

      1
      5
      Votes
      1
      Posts
      1068
      Views

      No one has replied

    • Dheeraj

      IR blaster for AC , TV etc.
      Development • ir blaster • • Dheeraj  

      17
      0
      Votes
      17
      Posts
      7691
      Views

      blacey

      @tbowmo said: @blacey I have seen an arduino library somewhere to control different types of AC units, I even think it was mentioned on the forum,( half a year ago). Indeed - this proves it is possible https://www.cooking-hacks.com/documentation/tutorials/control-hvac-infrared-devices-from-the-internet-with-ir-remote/ With a bit more legwork (e.g. https://github.com/r45635/HVAC-IR-Control), I am confident that IR Blaster will be able to support HVAC units. Heck (pun intended), it wouldn't be fun if there weren't any challenges NOTE: Given that we plan to provide HVAC control in the IR Blaster, should we merge this discussion into the IR Blaster thread?
    • Dheeraj

      Any suggestion to use arduino 328p internal temperature as ambient temp.
      Hardware • • Dheeraj  

      2
      0
      Votes
      2
      Posts
      1207
      Views

      m26872

      @Dheeraj Personally I think it's interesting, but I also know it¨s been rejected in earlier discussions. It requires calibration, low-power and low activity arduino use. And even then, the accuracy isn't very impressive. I would still like to play a little and maybe use it as a complement in some projects. We'll see.
    • Dheeraj

      Temp/Humidity/Light Sensor on battery
      Hardware • • Dheeraj  

      3
      1
      Votes
      3
      Posts
      6857
      Views

      Dheeraj

      @Dwalt actually the sketch is simple. #include <SPI.h> #include <MySensor.h> #include <DHT.h> #define CHILD_ID_HUM 0 #define CHILD_ID_TEMP 1 #define CHILD_ID_LIGHT 2 #define HUMIDITY_SENSOR_DIGITAL_PIN 4 #define BATTERY_SENSE_PIN A0 // select the input pin for the battery sense point #define LIGHT_SENSOR_ANALOG_PIN A1 unsigned long SLEEP_TIME = 60000; // Sleep time between reads (in milliseconds) MySensor gw; DHT dht; float lastTemp; float lastHum; boolean metric = true; MyMessage msgHum(CHILD_ID_HUM, V_HUM); MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP); MyMessage msg(CHILD_ID_LIGHT, V_LIGHT_LEVEL); int oldBatteryPcnt = 0; int battLoop =0; int lightLevel =0; int lastLightLevel =0; void setup() { gw.begin(NULL,15); dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); // Send the Sketch Version Information to the Gateway gw.sendSketchInfo("Temp Humidity Light", "1.0"); // Register all sensors to gw (they will be created as child devices) gw.present(CHILD_ID_HUM, S_HUM); gw.present(CHILD_ID_TEMP, S_TEMP); gw.present(CHILD_ID_LIGHT, S_LIGHT_LEVEL); metric = gw.getConfig().isMetric; check_batt(); } void loop() { 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); } lightLevel = (analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; if (lightLevel != lastLightLevel) { Serial.println(lightLevel); gw.send(msg.set(lightLevel)); lastLightLevel = lightLevel; } battLoop++; if (battLoop > 10) { check_batt(); battLoop=0; } gw.sleep(SLEEP_TIME); //sleep a bit } void check_batt() { // get the battery Voltage int sensorValue = analogRead(BATTERY_SENSE_PIN); Serial.println(sensorValue); // 1M, 470K divider across battery and using internal ADC ref of 1.1V // Sense point is bypassed with 0.1 uF cap to reduce noise at that point // ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts // 3.44/1023 = Volts per bit = 0.003363075 // vout = (sensorvalue x 3.3) / 1023 //vin = vout / (R2/(R1+R2)); float batteryV = ( sensorValue * 0.003225806 ) / 0.3; // divide R2/(R1+R2) int batteryPcnt = sensorValue / 10 ; if ( batteryPcnt > 100 ) batteryPcnt = 100; Serial.print("Battery Voltage: "); Serial.print(batteryV); Serial.println(" V"); Serial.print("Battery percent: "); Serial.print(batteryPcnt); Serial.println(" %"); if (oldBatteryPcnt != batteryPcnt) { // Power up radio after sleep gw.sendBatteryLevel(batteryPcnt); oldBatteryPcnt = batteryPcnt; } } //```
    • Dheeraj

      compiling issue with MYSBootloader.
      Troubleshooting • • Dheeraj  

      6
      0
      Votes
      6
      Posts
      2984
      Views

      tekka

      @vikasjee Moving CSN and CE to PORTA should work - do not forget to set DDRA accordingly.
    • Dheeraj

      Relay with ACS712
      Hardware • relay nrf24l01+ • • Dheeraj  

      18
      3
      Votes
      18
      Posts
      12126
      Views

      Boots33

      @Shivanand-Chanderbally I recently finished a node using the acs712 and found it to be very sensitive to nearby magnetic fields. It is best to have it as far away from these as you can.
    • Dheeraj

      Handy Serial Gateway for testing.
      Hardware • raspberry serial gatewayc • • Dheeraj  

      1
      2
      Votes
      1
      Posts
      1200
      Views

      No one has replied

    • Dheeraj

      pimatic-mysensors controller plugin
      pimatic • mysensors nrf24l01+ controller node id rasp • • Dheeraj  

      92
      2
      Votes
      92
      Posts
      55966
      Views

      DavidZH

      @ricardot said in pimatic-mysensors controller plugin: @Dheeraj, Do you plan to continue to develop this plugin? I will very pleased to see a mysensors button. Thank you! I second this. And also see if we can lose the dependency on serialport 2.0.6 so that we can use Node.js > 4.9.1
    • Dheeraj

      Node-Red as Controller
      Node-RED • node-red • • Dheeraj  

      54
      0
      Votes
      54
      Posts
      47995
      Views

      chisight

      @wergeld Odd, I went to the raw file, hit select all in Firefox and right click copy, then went to Node Red and did the import from clipboard, no edits. Maybe it's something related to Windows, I did mine through Debian. Still, good to know that some paths need the single/double quotes repaired so thank you.
    • Dheeraj

      Same Node id for two separate nodes.
      Controllers • • Dheeraj  

      6
      0
      Votes
      6
      Posts
      3049
      Views

      cribben

      If you add a new device and then remove it. After that you add another new device it probably get same Id. Clean EPROM and retry.