Hi
I am using the Radio Head Library nrf24_reliable_datagram_client/Server sketch's. (as per You Tube video on remote motor control etc)
2 x Arduino Nanos.
1. The Client sketch work on both Nanos.
2. The Server sketch's will not work on either of the 2 Nanos.
This happened with all the server and client sketch's in that series.
Both were wiped and the sketch loaded through IDE 1.8.13.
Both a Win 10 and a Linux Mint computer utilised for numerous attempts, cables swapped etc.
Is the sketch faulty ?- I do not know how to check this as I have not gone that far into things Arduino.
or
Are the nrf24 modules faulty ( how to check?)
Thank you for any assistance on this.
Greg
Hi
After purchasing a Uno and using it as a receiver the sketch worked.
This still of course does not resolve why the Nano's kept giving an 'INIT Failure'.
But still have managed to make an operating system.
Greg
After purchasing a Uno and using it as a receiver the sketch worked.
This still of course does not resolve why the Nano's kept giving an 'INIT Failure'.
Have you checked the nano's? For example, are you able to upload a simple "Hello World!" output to serial program?
Did you make any changes to the client or server code examples?
Can you provide a link to the exact ones you downloaded?
Cheers.
Hi
Thanks for the questions, sorry for the long answer.
1. Have 3 x Nano's, checked these against each other.
Changed nRF components, cabling etc.
Removed Nano's from bread boards and direct wired, powered the nanos from 12v dc supply.
Tried same direct wire with computer 5vdc supply.
Ran the nrf24 from adapter on 5v, with and without 10uf (bipolar) cap. Ran nrf's direct from 3.3 vdc supply with 10uf (bipolar) cap. (not from Nano)
Ran the 'wipe' code to clean out vestiges of sketch's. (as per forum example)
Reloaded code. etc etc etc.
Used the attached Nano pin diagram.
All of the nano's would accept the upload code for the transmitter (client) action.
None of them would accept the receiver (server) code - all showed "Init Failed" in the serial monitor and all of them showed 2 x led's with no activity ( as observed with the transmitter code activity of central LED and the other 2 flashing in sequence.) -
Serial monitor on these showed the expected outgoing message "Hello World!" with the "No reply, is nrf24_server running?"
2. Used the codes exactly as downloaded from the radio head library/DroneBot Workshop - no changes.
Ran codes from 1 x WIN10 desktop, 1 x WIN10 Laptop, 1 x Linux Mint (20.1) Laptop.
Running Arduino 1.8.13 - also tried 1.8.6 and 1.8.0
3. RadioHead-1.113, http://www.airspayce.com/mikem/arduino/RadioHead/RadioHead-1.113.zip , nRF24L01+Sketches+-+DroneBot+Workshop, https://dronebotworkshop.com/nrf24l01-wireless-joystick/
4. It is probably a simple challenge to do with the different pins on the Nano to the Uno, I do not have the expertise to find that difference.
5. Once I replaced a Nano with the Uno I had communication up to and including the remote motor drive L298N sketch working. (with the wiring as per attached)
UNO Nano
Here is a link to an example, that shows you the pins to use with a nano:
Arduino-NRF24L01-Simple-Bidirectional-Wireless-Com
Cheers.
Apologies for the delay in replying, will give this one a go.
Thanks for the help
Cheers
Greg