Help with the NRF24L01 Tranciever module
Hello, I'm making an RC Plane with NRF24L01 modules, one is set in TX mode or the controller and the other is set in RX mode for the plane.
The RX Arduino NANO has these components:
1. the radio module PCB antenna version, with a 5v-3.3v voltage reducer which uses the AMS something something(I can't remember)
2. 2 9g servos
3. Bldc motor
4. ESC with BEC
5. LiPo battery has not been purchased, currently I'm using a 12v power supply
The TX Arduino UNO has these components
1. NRF24L01 PA+LA external antenna version, with the same voltage reducer
2. 2 control joysticks
3. A mobile powerbank used for a phone for power
Currently I'm still workshopping it, I used a code from the Internet, and for some reason it isn't working.
Another thing, when I was testing with a simple code that transmitted 0 90 and 180 as values the transmitter picked it up as 8, 144, 90. This isn't the same code that I picked up from the Internet just something I made, thought it would be useful.
8 Replies
If you can help with the project it will be greatly appreciated
Just send over a count that goes up by 1 every 2 secconds
Wha? Send over a country I'm sorry I don't understand that maderdash
@Carrot 🥕 Sorry, autocorrect strikes again. Just send over an integer. Make it increase every 2 seconds and see what you get on the receiving side.
Sure
Hey maderdash i tried a code that checks if a nrf module work and apparently its being freaky ill send the values over here if you dont mind
/*
If your serial output has these values same then Your nrf24l01 module is in working condition :
EN_AA = 0x3f EN_RXADDR = 0x02 RF_CH = 0x4c RF_SETUP = 0x03 CONFIG = 0x0f
This code is under public domain
Last updated on 21/08/28 https://dhirajkushwaha.com/elekkrypt */ #include <SPI.h> #include <RF24.h> #include <printf.h> RF24 radio(9, 8); byte addresses[][6] = {"1Node", "2Node"}; void setup() { radio.begin(); radio.setPALevel(RF24_PA_LOW);
radio.openWritingPipe(addresses[0]); radio.openReadingPipe(1, addresses[1]); radio.startListening();
Serial.begin(9600); printf_begin(); radio.printDetails();
} void loop() { // empty }
EN_AA = 0x3f EN_RXADDR = 0x02 RF_CH = 0x4c RF_SETUP = 0x03 CONFIG = 0x0f
This code is under public domain
Last updated on 21/08/28 https://dhirajkushwaha.com/elekkrypt */ #include <SPI.h> #include <RF24.h> #include <printf.h> RF24 radio(9, 8); byte addresses[][6] = {"1Node", "2Node"}; void setup() { radio.begin(); radio.setPALevel(RF24_PA_LOW);
radio.openWritingPipe(addresses[0]); radio.openReadingPipe(1, addresses[1]); radio.startListening();
Serial.begin(9600); printf_begin(); radio.printDetails();
} void loop() { // empty }
Home - elekkrypt
elekkrypt is a YouTube channel where you can learn Electronics, Arduino etc. There are detailed video tutorials available on this channel in Hindi language. You can find varies projects and their tutorials.
i got it from a yt channel
no need to sift it i tried one module and it was good the other module had some problems
@Maderdash any questions?
Nope. Looks like you found the issue.