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
G

gadu

@gadu
Unfollow Follow
About
Posts
57
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • BBQ Temp Controller Build
    G gadu

    Cool project! Following.

    Development

  • MQTT and batterylevel
    G gadu

    @kunall

    First these two rows before setup..

    int BATTERY_SENSE_PIN = A0;  // select the input pin for the battery sense point
    int oldBatteryPcnt = 0;
    

    and in the loop i have these rows...

    // 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
    float batteryV  = sensorValue * 0.003363075;
    int batteryPcnt = sensorValue / 10;
    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;
    

    in OpenHab items i have this row...

    Number node2_batt  "Battery [%.1f %%]" <energy> (node2,All)  {mqtt="<[MySensor:MyMQTT/21/1/V_VAR1:state:default]"}
    

    hope this helps....

    Development

  • Minimal design thoughts
    G gadu

    Oh! Where do I order?! Been waiting for this!

    Hardware

  • 230V power supply to Arduino
    G gadu

    I've seen these and also got interested. Any input on these is appreciated.

    Hardware

  • Raspberry Pi2 + MQTT Gateway in one box!
    G gadu

    Great work!

    My Project mqtt raspberry pi gateway

  • Gerber/Eagle files and then...?
    G gadu

    Great, thanx! I have to look into this, so tired of the experimentboards

    Hardware

  • Gerber/Eagle files and then...?
    G gadu

    Well, I see some of you creating great custom boards in many (very interesting) sizes and shapes.
    But for a n00b in that area... if i would get hold of a gerber/eagle file, how and where do you go about to order them? Is there any "how-to"?

    Hardware

  • MQTT controller - ping but Connection timeout on MQTT clients
    G gadu

    @TommySharp
    Hmm dont really remember, but I think this was the solution
    https://github.com/knolleary/pubsubclient/issues/46

    Controllers port networking nrf24l01+ mqtt nrf24l01

  • Arduino Pro Mini adapter card and nice box from "biltema"
    G gadu

    When you order, lägg till 5st ;)

    My Project

  • Arduino Pro Mini adapter card and nice box from "biltema"
    G gadu

    Where can one find these boards?

    My Project

  • Humidity / Temperature Sensor
    G gadu

    Cool!
    Perhaps a noob question, but how do you program the Atmega?

    My Project dht22 temp humidity

  • Sensor shield for Arduino Pro Mini 3.3V with boost up regulator
    G gadu

    I like the formfactor and if the price is right i'd buy a couple (5-10pcs).

    My Project

  • Small wall outlet sensor node
    G gadu

    It would be cool with a 90degree angled version as well :)

    My Project

  • Strange value being sent from controller using mixed temp/relay node
    G gadu

    No worries!

    Bug Reports multiple sensor mqtt error

  • Strange value being sent from controller using mixed temp/relay node
    G gadu

    Here goes...

    This is the ProMini output from the monitor when I turn on and off the relay...

    send: 23-23-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    read: 0-0-23 s=1,c=1,t=2,pt=2,l=2:1
    This is an ack from gateway
    Incoming change for sensor:1, New status: 1
    read: 0-0-23 s=1,c=1,t=2,pt=0,l=4:1.6r
    Incoming change for sensor:1, New status: 1
    send: 23-23-0-0 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    read: 0-0-23 s=1,c=1,t=2,pt=2,l=2:0
    This is an ack from gateway
    Incoming change for sensor:1, New status: 0
    read: 0-0-23 s=1,c=1,t=2,pt=0,l=4:0.6r
    Incoming change for sensor:1, New status: 0
    

    This what I see on the gateway when I turn on and off the relay....

    publish: MyMQTT/23/1/V_LIGHT 1
    0;0;3;0;9;send: 0-0-23-23 s=1,c=1,t=2,pt=0,l=4,st=ok:1sor
    0;0;3;0;9;read: 23-23-0 s=1,c=1,t=2,pt=2,l=2:0
    0;0;3;0;9;send: 0-0-23-23 s=1,c=1,t=2,pt=2,l=2,st=ok:0
    publish: MyMQTT/23/1/V_LIGHT 0
    0;0;3;0;9;send: 0-0-23-23 s=1,c=1,t=2,pt=0,l=4,st=ok:0sor
    0;0;3;0;9;read: 23-23-0 s=1,c=1,t=2,pt=2,l=2:1
    0;0;3;0;9;send: 0-0-23-23 s=1,c=1,t=2,pt=2,l=2,st=ok:1
    

    I hope it helps.

    Bug Reports multiple sensor mqtt error

  • Strange value being sent from controller using mixed temp/relay node
    G gadu

    I'll get tomorrow. No worries :)

    Bug Reports multiple sensor mqtt error

  • MQTT Gateway and Relay Status
    G gadu

    I'm thinking outside the box (shouldn't do that) so here goes...

    This would require another type of relay with dual connections.
    If you combine the doorsensor with the relay sketch the arduino if "forced" to send activity (V_TRIPPED) from the relay.

    Here's a poor painted sketch...
    CaptureMyS.JPG

    Or something similar... :)

    Hardware

  • Strange value being sent from controller using mixed temp/relay node
    G gadu

    @Gambituk said:

    @gadu if you have a setup running, could you publish a message on your mosquitto server just like this?

    MyMQTT/25/1/V_LIGHT 1
    MyMQTT/25/1/V_LIGHT 0
    

    I don't think it matters if you have any relays connected or defined, it's just to see what value it tries to send to the node... (assuming you have your gateway connected to a pc to be able to see the serial output)?

    No problems if this is not possible.

    Actually yes, I have a relay sketch that BulldogLowell helped me with in this thread:
    http://forum.mysensors.org/topic/901/relaywithbuttonactuator-another-n00b-question/7

    The idea behind the sketch is written in the thread, but the short story is that I needed two relays and when the button is pressed one goes on for a sec (then off) and the other goes on until i push the button again. So it's actually only controlling one relay, nothing else.
    By publishing...

    pi@raspberrypi ~ $ mosquitto_pub -r -t MyMQTT/23/1/V_LIGHT -m "1"
    pi@raspberrypi ~ $ mosquitto_pub -r -t MyMQTT/23/1/V_LIGHT -m "0"
    

    I can see the following...

    pi@raspberrypi ~ $ mosquitto_sub -v -t MyMQTT/#
    MyMQTT/23/1/V_LIGHT 1
    MyMQTT/23/1/V_LIGHT 0
    
    Bug Reports multiple sensor mqtt error

  • Strange value being sent from controller using mixed temp/relay node
    G gadu

    Interesting findings, if you find any solution for this in the MQTT gateway I would really appreciate if you post it. I'm about to start implementing relays as well.

    (it's actually not my version, I think @ntruchsess is the one who created it) ;)

    Bug Reports multiple sensor mqtt error

  • Keypads
    G gadu

    Wow cool! I'll look into that one!

    Hardware
  • Login

  • Don't have an account? Register

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