NRF24L01 Tips and Tricks - Cheap and Easy Wirless
Тәжірибелік нұсқаулар және стиль
Looking for a cheap and easy wireless solution that doesn't involve a lot of code? Check out the NRF24L01 modules. You can get them cheaply on Amazon or eBay and as long as you know a few things, they can be really easy and reliable to use.
Make sure you buy them with the voltage regulator breakout. The links below are what I recommend.
NRF24L01 (Antenna Version) - amzn.to/3RxsBuI
NRF24L01 (Chip Antenna) - amzn.to/3ANLDX1
Having an assortment of electrolytic caps on hand is nice. This kit includes a 10uF that you can use for the power lines.
670 Piece Capacitor Assortment - amzn.to/3qgnzHe
There are many libraries for these, I'm using Arduino and this is the library I've been using successfully. You can use the Arduino library manager by searching for NRFLite.
Arduino Library - github.com/dparson55/NRFLite
My Favorite Tools - www.amazon.com/hz/wishlist/ls...
00:00 Intro
00:36 NRF24L01 Overview
02:28 Application Example
03:43 Performance Expectations
04:10 Reliability and Power Mods
06:41 Final Notes
07:33 Voltage is 3.3V Only
Пікірлер: 31
I dont know which library you are using. I am using the nrf24 mesh library, which I found to be pretty awesome. As it allows for very dynamic network configurations, adding more sensors as you go etc... Also I have added a counter to each device, that performs a restart every so many data packets sent, or every so many failed attempts. This creates a bit of a self healing behavior to the entire system. At the indoor unit, I opted to build a 'router' from nRF24 to Wifi. This feeds the data to Node-Red, to Influx DB and then can be graphically accessed via a Graffana web page.
@RobertCowanDIY
Жыл бұрын
I'm using NRFlite. That's a good idea about restarting periodically.
very well explained! thanks!
@RobertCowanDIY
6 ай бұрын
Glad it was helpful!
@Farmingforskills247
2 күн бұрын
@@RobertCowanDIY Hello, I'm a beginner and wanted to make a gesture control car, using an MPU6050 and the nRF24L01 module for wireless communication. Plus Arduino UNO and NANO as microcontrollers for receiver and transmitter. But after wiring it all up I noticed that the angles from my aren't being transmitted to the receiver nRF. The return value of radio.write() is LOW, and the received value is NULL. Could you please suggest any fixes? I believe the issue isn't with the code, but I might be wrong. I cross-checked it with few examples and the code seems right. What do you think might be the issue?
You mentioned packet transmissions, so I assume you’re using packets with a checksum or CRC. Does your software track the number of bad packets you receive? Wondering just how clean your reception is across that distance and through walls.
@RobertCowanDIY
Жыл бұрын
I think I disabled that feature, but when I had it enabled, I wasn't seeing anything significant.
can you tell us where I can get the weather station you are using in your video. thanks
@RobertCowanDIY
Ай бұрын
I got it from sparkfun.
NRF24L01's are very handy I used them in 150g combat robots 6+ years ago when commercial RX gear wasn't as small/light My other reliability tip for them, if you are using them in a location where they get rattled or bumped regularly, add glue, potting compound or at least hot glue to the crystal as otherwise the crystal has a tendency to break
@RobertCowanDIY
Жыл бұрын
Got it. Padding for all electronics is a good practice!
In my experience the cap is all you need. The culprit in most cases I observed is that the jumper cables are of really bad conductivity (made from chinesium and not copper).
@RobertCowanDIY
Жыл бұрын
Interesting. Good to know.
@SarahKchannel
Жыл бұрын
@@RobertCowanDIY I have about 20 odd nrf's deployed at the moment and I always traced it back to the wiring and the 'buffer' capacitor that just levels out spikes as you described...
@AdityaMehendale
Жыл бұрын
@@SarahKchannel How is it on power-consumption? I can imagine that with 20-odd devices you likely rely on harvesting rather than whizzing around changing batteries the whole time..
@SarahKchannel
Жыл бұрын
@@AdityaMehendale I do not know the power draw from the top of my head. I am running all the remote satellite ones of solar panels with 18650 batteries and ESP8266 (wemos) MCUs. The nrf24 does not draw that much power per se, you can control it by how often you send data - only in the mesh configuration you have less control over how much each node receives or transmits.
@Farmingforskills247
2 күн бұрын
Hello, I'm a beginner and wanted to make a gesture control car, using an MPU6050 and the nRF24L01 module for wireless communication. Plus Arduino UNO and NANO as microcontrollers for receiver and transmitter. But after wiring it all up I noticed that the angles from my aren't being transmitted to the receiver nRF. The return value of radio.write() is LOW, and the received value is NULL. Could you please suggest any fixes? I believe the issue isn't with the code, but I might be wrong. I cross-checked it with few examples and the code seems right. What do you think might be the issue?
Your weakness is programing 😢 Interesting video tho 😊 Can I use it to scan for wifies and connect to WiFi using it ? Or make a switch out of it and Arduino ?
@RobertCowanDIY
4 ай бұрын
This isn't wifi, it's a completely different wireless protocol.
@sargismartirosyan9946
4 ай бұрын
@@RobertCowanDIY sad
@RobertCowanDIY
4 ай бұрын
@@sargismartirosyan9946 Haha, it's not sad. Wifi is a PAIN. This is a better point to point communications protocol.
@sargismartirosyan9946
4 ай бұрын
@@RobertCowanDIY but I want to scan long ranges wifis using it
@RobertCowanDIY
4 ай бұрын
@@sargismartirosyan9946not all wireless is wifi. this isn't wifi, it's something else. is your car's radio wifi? no, but it's wireless. this is another wireless communication and has nothing to do with wifi. they make similar modules for wifi. look at ESP microcontrollers.