@martinb Did you replace the NRF24L01 with another NRF24L01? iow was it a bad device?
Posts made by FrankVK
-
RE: [SOLVED] Poor battery life on door sensor
-
RE: [SOLVED] Poor battery life on door sensor
@mfalkvidd Interesting discussion!
I've got the same issue with a lux sensor based upon BH1750; battery life is limited to 7-10 days (3V, 9900mAh)
I gather that it's not possible to use the interrupt method in this case?Do you have any suggestions how I can improve battery life?
-
RE: Lux sensor (BH1750) sending battery level (V)
Actually, I needed to change 2 things: first one was dividing by 1000.0 rather than 1000 and the other one was calling send(msgVcc.set(Vcc, 2)); rather than send(msgVcc.set(Vcc)); Now the log reads 2.95V.
Thanks Mikael (@mfalkvidd) & everyone! Happy coding!
-
RE: Lux sensor (BH1750) sending battery level (V)
Hi Zboblamont,
Thanks for your response, but the error occurs in the line, obviously because Vcc is of the type 'float'
send(msgVcc.set(Vcc));
-
Lux sensor (BH1750) sending battery level (V)
Hi,
I really enjoy using MySensors!
Got a small general question though: I'm using a BH1750 light sensor, powered by a 3V battery and I'd like to keep an eye on the battery status.
I have added a line to the existing BH1750 scetch:
#define CHILD_ID_VCC = 1 MyMessage msgVcc(CHILD_ID_VCC, V_VOLTAGE); .. void Presentation() { sendSketchInfo("Light Lux Sensor", "1.1"); present(CHILD_ID_LIGHT, S_LIGHT_LEVEL); present(CHILD_ID_VCC, S_MULTIMETER); } Loop() { uint16_t lux = lightSensor.readLightLevel(); float Vcc = ReadVcc(); send(msgLux.set(Lux)); send(msgVcc.set(Vcc)); }
Domoticz recieves the data now, but the Voltage is reading 2968V because readVcc delivers mV
If I change the code to:float Vcc = readVcc()/1000;
I get an error message "call of overloaded 'set(float&)'is ambiguous"
How can I send decimal values to the Domoticz controller from MySensors?Regards, Frank
-
RE: Serial Gateway + MySensor working but devices not added in Domoticz
Yes Mikael, but it suddenly hit me that you have to allow Domoticz to add new devices from the console. I can see the Temperature and the Humidity now!
Thanks again!
-
Serial Gateway + MySensor working but devices not added in Domoticz
Hi,
Just got the MySensors Serial Gateway (Arduino Pro Mini (328) & NRF24L01) working with my first sensor (Arduino Pro Mini & NRF24L01 & DHT22). Running in DEBUG mode.
When debugging the Gateway, I can see the values:.. 0;255;3;0;14;Gateway startup complete. 0;255;0;0;18;2.3.1 0;255;3;0;9;73 MCO:BGN:STP 0;255;3;0;9;96 MCO:BGN:INIT OK,TSP=1 0;255;3;0;9;104 TSM:READY:NWD REQ 0;255;3;0;9;149 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 0;255;3;0;9;8488 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:53.3 1;0;1;0;1;53.3 0;255;3;0;9;71725 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.8 1;1;1;0;0;21.8 0;255;3;0;9;71743 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:53.2 1;0;1;0;1;53.2 0;255;3;0;9;134963 TSF:MSG:READ,1-1-0,s=0,c=1,t=1,pt=7,l=5,sg=0:53.4 1;0;1;0;1;53.4 0;255;3;0;9;198199 TSF:MSG:READ,1-1-0,s=1,c=1,t=0,pt=7,l=5,sg=0:21.7
From Domoticz, I can see the Gateway and the Child nodes. The values are also read.
However, no device is added..![Domoticz]( image url)
Any suggestions?
Regards, Frank
-
RE: [SOLVED] Testing Serial Gateway?
Recompiled & uploaded the sektch and now I see the Temperature and Humidity values allright!
Thanks again! -
RE: [SOLVED] Testing Serial Gateway?
Now that we have communication: if I run the (standard) DhtTemparatureAnd HumiditySensor sketch, the Setup() en Loop() never seem to run.. The Serial.println commands don't make it to the Serial monitor..
Am I missing something here?
-
RE: [SOLVED] Testing Serial Gateway?
Thanks for your reply!
It appears to be a newby mistake: I overpowered the NRF24L01 radios: the FTDI board did put out 5.0V although the output Voltage selectors witch wat at the 3.3V position..
Another lesson learned today... always doublecheck !
-
[SOLVED] Testing Serial Gateway?
Hi,
Being new to Sensors, I have build my first serial gateway (Aruino Pro Mini (328P 3.3V) & NRF24L01) according to the instruction video on this site. The gateway seems to be working according to the debug log; my controller (Domoticz) also 'sees' the gateway.
0;255;3;0;9;0 MCO:BGN:INIT GW,CP=RNNGA---,REL=255,VER=2.3.1 0;255;3;0;9;14 TSM:INIT 0;255;3;0;9;22 TSF:WUR:MS=0 0;255;3;0;9;34 !TSM:INIT:TSP FAIL 0;255;3;0;9;43 TSM:FAIL:CNT=1 0;255;3;0;9;51 TSM:FAIL:DIS 0;255;3;0;9;59 TSF:TDI:TSL 0;255;3;0;9;10070 TSM:FAIL:RE-INIT 0;255;3;0;9;10078 TSM:INIT 0;255;3;0;9;10090 !TSM:INIT:TSP FAIL 0;255;3;0;9;10100 TSM:FAIL:CNT=2 0;255;3;0;9;10110 TSM:FAIL:DIS 0;255;3;0;9;10119 TSF:TDI:TSL
However, when I fire up a (DHT22) client, it does not see the Gateway.
__ __ ____ | \/ |_ _/ ___| ___ _ __ ___ ___ _ __ ___ | |\/| | | | \___ \ / _ \ `_ \/ __|/ _ \| `__/ __| | | | | |_| |___| | __/ | | \__ \ _ | | \__ \ |_| |_|\__, |____/ \___|_| |_|___/\___/|_| |___/ |___/ 2.3.1 51 MCO:BGN:INIT NODE,CP=RNNNA---,REL=255,VER=2.3.1 81 TSM:INIT 86 TSF:WUR:MS=0 94 TSM:INIT:TSP OK 100 TSM:FPAR 104 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 2125 !TSM:FPAR:NO REPLY 2131 TSM:FPAR 2136 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 4157 !TSM:FPAR:NO REPLY 4163 TSM:FPAR 4167 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 6189 !TSM:FPAR:NO REPLY 6195 TSM:FPAR 6199 TSF:MSG:SEND,255-255-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK: 8220 !TSM:FPAR:FAIL 8224 TSM:FAIL:CNT=1 8230 TSM:FAIL:DIS 8235 TSF:TDI:TSL
I use 47uF capacitors, the gateway and client are 1-5m apart. I tried seperate power supply..
Any suggestions?
Is there any way I can test if the Gateway is working?Regards, Frank