Newbie Problem! Get Started with NRF24L01+
-
I'm kind of a newbie too, but yes I think you need a controller. It's the controller who assigns ID's to the sensor nodes.
@Striffster Hmm, so it can't be stand alone? If I press the inclusion button, will it not send the received ID for the NRF module?
-
The serial gateway does not hand out ids by itself.
If you want to create something standalone I suggest you set static id:s on your nodes and don't rely on any configuration (metric/imperial) received from controller.
-
Just to check, did you upload the DallasTemperatureSensor.ino, or did you upload the Temperature sketch inside the MySensors subfolder?
I'm at work currently so I can't give exact details, but I noticed that if you unpack the MySensors package into the Arduino libraries, you get a heap of example sketches for various items, but then inside the MySensors subfolder are the sketches set up for the MySensors stuff.
So check which one you have used for the remote module with the dallas sensor.
Also on the serial gateway, check the serial output on that (at 115,200 board speed), and check, it should say "Gateway setup complete" or something close to that.
@Chester : After checking the wire and the supply I know my connection isn't the problem so I replaced my Arduino.
This is the output:
send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail: req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: sensor started, id 255 req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail: req node id send: 255-255-255-0 s=255,c=3,t=3,pt=0,l=0,st=fail:@hek : After using gw.begin(NULL, 0);
Thi is the output:
send: 0-0-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail: sensor started, id 0 send: 0-0-255-0 s=255,c=0,t=17,pt=0,l=5,st=fail:1.4.1 send: 0-0-255-0 s=255,c=3,t=6,pt=1,l=1,st=fail:255 send: 0-0-255-0 s=255,c=3,t=11,pt=0,l=18,st=fail:Temperature Sensor send: 0-0-255-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0 send: 0-0-255-0 s=0,c=0,t=6,pt=0,l=5,st=fail:1.4.1 send: 0-0-255-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.9What are the s,c,t,pt
-
Don't use 0 for your node ID! (gw.begin(NULL, 0);) Choose a value beween 1 and 254.
nodeId - The unique id (1-254) for this sensor.Do not confuse this with child sensor ID
childSensorId - The unique child id you want to choose for the sensor connected to this Arduino. Range 0-254. -
Don't use 0 for your node ID! (gw.begin(NULL, 0);) Choose a value beween 1 and 254.
nodeId - The unique id (1-254) for this sensor.Do not confuse this with child sensor ID
childSensorId - The unique child id you want to choose for the sensor connected to this Arduino. Range 0-254. -
Maybe this may cover it http://www.mysensors.org/download/serial_api_14
-
@korttoma : Ok. Thank you! Could you kindly explain what are the send, s, c, t, pt, l and st?
-
The inclusion button is used to detect the connecting modules, yes?
This is the output I get when I press the inclusion button on the serial gateway
0;0;3;0;14;Gateway startup complete. 0;0;3;0;9;Inclusion started by button. 0;0;3;0;5;1 0;0;3;0;5;0I have another NRF module with ds18b20 connected. Can you help me on how I can get the temp sensor to connect to the serial gateway? I c
I used the code here and changed the gw.begin() to gw.begin(NULL, 1)
sensor started, id 1 send: 1-1-0-0 s=255,c=0,t=17,pt=0,l=5,st=fail:1.4.1 send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0 send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=18,st=fail:Temperature Sensor send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0 send: 1-1-0-0 s=0,c=0,t=6,pt=0,l=5,st=fail:1.4.1 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.6 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.7 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.6 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.7 send: 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail: send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.6 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.8 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.7 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.6 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.7 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.6 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:29.7 send: 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,st=fail: -
How are you powering your node? Your node's radio is constantly fail to transmit (st=fail).
-
How are you powering your node? Your node's radio is constantly fail to transmit (st=fail).
-
How are you powering your node? Your node's radio is constantly fail to transmit (st=fail).
It's actually the gateway having problems transmitting acks back to node.
@hek said:
How are you powering your node? Your node's radio is constantly fail to transmit (st=fail).
It's actually the gateway having problems transmitting acks back to node.
I'm powering the nrf modules from same 3.3V supply since I haven't bought a regulator yet. I'll test it again later. I'll be going out to buy them now.
Just to give me a heads up. What should the serial gateway get after i press the inclusion button?
-
Sorry for the late reply
Each modules are now supplied with 5V and 3.3V.
This is the serial gateway output:
0;0;3;0;14;Gateway startup complete. 0;0;3;0;9;read: 1-1-0 s=0,c=1,t=0,pt=7,l=5:30.2 1;0;1;0;0;30.2 0;0;3;0;9;Inclusion started by button. 0;0;3;0;5;1 0;0;3;0;5;0This is the temp output:
sensor started, id 1 send: 1-1-0-0 s=255,c=0,t=17,pt=0,l=5,st=fail:1.4.1 send: 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0 send: 1-1-0-0 s=255,c=3,t=11,pt=0,l=18,st=fail:Temperature Sensor send: 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,st=fail:1.0 send: 1-1-0-0 s=0,c=0,t=6,pt=0,l=5,st=fail:1.4.1 send: 1-1-0-0 s=0,c=1,t=0,pt=7,l=5,st=fail:30.2st keeps on failing. I checked the nrf supply and it ranges from 3.1v to 3.3 v. Is this bad? I'm using spx2815 since it's the only thing available to me. I placed 10uF capacitor in the 5v input and 3.3v output to ground
-
Maybe this may cover it http://www.mysensors.org/download/serial_api_14
@rvendrame said:
Maybe this may cover it http://www.mysensors.org/download/serial_api_14
It only explains the "0;0;3;0;14;" but not the "s=255,c=3,t=11,pt=0,l=18,st=fail:Temperature Sensor" that it sends or reads
-
@fakeJake , are the node far from gateway, or any obstacle (such as a wall) in between? Another source of interference is for example a microwave.