First Sensor project, Steep learning curve.
-
Hi All, this is my first post, so before I start I would just like to say thank you to the mysensors team. Once I get this working I am sure it will be a great system.
I have built a wifi gateway as per instructions, which works with HA and a local sensor, but not with a radio node. Radio node sends but gets no reply from gateway. Is there an easy way to test the NRF24LO1+ transceivers. Thanks Laurie
-
@lozzer65 welcome!
https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help has information on common problems and how to read the debug log to figure out what is happening (troubleshooting without debug log is almost impossible for anyone). Best is probably to start there.
You can also use the pingpong sketch to eliminate risk for sketch errors.
-
Thanks for the reply. I have been through the fault finding. added capacitors forst 4.7s then changed for 22's. Put Transceivers on seperate supply. Still no change. Now trying pingpong but will not compile on nanoV3 or nodemcu 0.9. both error on #include <MySensor.h> What am I missing here
-
@lozzer65 the include should be MySensors.h Do you have any idea why the s is missing in your sketch? It is present in the sketch I linked.
It would help a lot of you could post the debug logs for your gateway and node.
-
0_1483628888879_Compile error.txt
Not sure what happened there. Anyway installed on Nano V3 ok, but on nodemcu 0.9 would not compile with this call of overloaded 'set(long unsigned int)' is ambiguous. I have attached full compile error report generated
-
@lozzer65 seems like no-one has tested the pingpong sketch on esp8266 with MySensors 2.1. It might be some work to get that sketch in proper condition u fortunately.
The "ambigous" error should be solved by changing
response.set( millis() );
to
response.set((uint32_t) millis() );
The eeprom error I am a bit unsure about. Maybe it is easier to start with the debug output of the node and the gateway with the sketches you used for your first post.
-
Thanks again. . I want to go right back to basics here. I need to prove the hardware.
Can someone confirm the connections to a Nano V3 board and also to a Nodemcu 0.9. Having researched this it looks like different libraries have different pinouts. Not sure which one mysensors use. Also I have 22 microF caps. Is this right on the supply.
-
@lozzer65 the wiring recommended by MySensors can be found at https://www.mysensors.org/build/connect_radio for Nano and https://www.mysensors.org/build/esp8266_gateway for Nocemcu/esp8266.
4.7-100uF cap as close to the radio as possible is what most people use. There is no consensus on what size if "optimal".
-
I loaded up the pingpong skech on my computer. I think you need to change
eeprom_write_byte((uint8_t*)EEPROM_NODE_ID_ADDRESS, (byte)nodeID);
to
hwWriteConfig(EEPROM_NODE_ID_ADDRESS, (byte)nodeID);
You are very welcome to try this and report back. If the change is correct, I'll submit a pull request to update the example.
-
Hi mfalkvidd I really appreciate your time with this. Really strange whats happening here. I have loaded blink in both nano and Nodemcu. Both work. Modifications above compile and upload, but when looking at serial it looks like old sketches running. NodeMCU shows connection to my wifi for example. IDE says it loaded. Very frustrating.
-
Ok I have proven radios work, but not on the NodeMCU. I have put all gateway code back in and sensor code. I have attached as much information as I can. Anyone that can help would be much appreciated. Please see read me first file for extra details. I have run out of ideas, after 7 days of trying to resolve. Thanks to anyone's help6_1483727101339_serial sent from sensor.txt 5_1483727101339_serial from nodemcu 0.9.txt 4_1483727101339_sensor sketch nano V3.txt 3_1483727101338_PLEASE READ FIRST.txt 2_1483727101338_Nodemcu 0.9 eps8266 sketch.txt 1_1483727101338_mysensors_json in home assistant.txt 0_1483727101337_Home assistant log.txt
-
Finally bottomed out the issues on this. Radios purchased from ebay were sub standard quality. Purchased some that had the proper IC and components on the board. Plugged in and worked straight away. Thank you for all your assistance.
Regards
Laurie
-
@lozzer65 great work, thanks for reporting back
-
@lozzer65 I'm very curious where you bought the radio with the proper IC and components!
-
Purchased from Amazon