Cool project! Following.
gadu
Posts
-
BBQ Temp Controller Build -
MQTT and batterylevelFirst 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....
-
Minimal design thoughtsOh! Where do I order?! Been waiting for this!
-
230V power supply to ArduinoI've seen these and also got interested. Any input on these is appreciated.
-
Raspberry Pi2 + MQTT Gateway in one box!Great work!
-
Gerber/Eagle files and then...?Great, thanx! I have to look into this, so tired of the experimentboards
-
Gerber/Eagle files and then...?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"? -
MQTT controller - ping but Connection timeout on MQTT clients@TommySharp
Hmm dont really remember, but I think this was the solution
https://github.com/knolleary/pubsubclient/issues/46 -
Arduino Pro Mini adapter card and nice box from "biltema"When you order, lägg till 5st ;)
-
Arduino Pro Mini adapter card and nice box from "biltema"Where can one find these boards?
-
Humidity / Temperature SensorCool!
Perhaps a noob question, but how do you program the Atmega? -
Sensor shield for Arduino Pro Mini 3.3V with boost up regulatorI like the formfactor and if the price is right i'd buy a couple (5-10pcs).
-
Small wall outlet sensor nodeIt would be cool with a 90degree angled version as well :)
-
Strange value being sent from controller using mixed temp/relay nodeNo worries!
-
Strange value being sent from controller using mixed temp/relay nodeHere 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: 0This 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:1I hope it helps.
-
Strange value being sent from controller using mixed temp/relay nodeI'll get tomorrow. No worries :)
-
MQTT Gateway and Relay StatusI'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...
Or something similar... :)
-
Strange value being sent from controller using mixed temp/relay node@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 0I 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/7The 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 -
Strange value being sent from controller using mixed temp/relay nodeInteresting 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) ;)
-
KeypadsWow cool! I'll look into that one!