NRF24L01 Tips and Tricks - Cheap and Easy Wirless

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 มิ.ย. 2024
  • 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
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 26

  • @jbflores01
    @jbflores01 6 หลายเดือนก่อน +1

    very well explained! thanks!

    • @RobertCowanDIY
      @RobertCowanDIY  6 หลายเดือนก่อน

      Glad it was helpful!

  • @SarahKchannel
    @SarahKchannel ปีที่แล้ว +6

    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
      @RobertCowanDIY  ปีที่แล้ว

      I'm using NRFlite. That's a good idea about restarting periodically.

  • @MrDksmall
    @MrDksmall ปีที่แล้ว

    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
      @RobertCowanDIY  ปีที่แล้ว

      I think I disabled that feature, but when I had it enabled, I wasn't seeing anything significant.

  • @moustaphamuhammad7013
    @moustaphamuhammad7013 หลายเดือนก่อน

    can you tell us where I can get the weather station you are using in your video. thanks

    • @RobertCowanDIY
      @RobertCowanDIY  หลายเดือนก่อน +1

      I got it from sparkfun.

  • @SarahKchannel
    @SarahKchannel ปีที่แล้ว +5

    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
      @RobertCowanDIY  ปีที่แล้ว +2

      Interesting. Good to know.

    • @SarahKchannel
      @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
      @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
      @SarahKchannel ปีที่แล้ว +1

      @@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.

  • @TeamPanicRobotics
    @TeamPanicRobotics ปีที่แล้ว +1

    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
      @RobertCowanDIY  ปีที่แล้ว

      Got it. Padding for all electronics is a good practice!

  • @sargismartirosyan9946
    @sargismartirosyan9946 4 หลายเดือนก่อน +1

    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
      @RobertCowanDIY  4 หลายเดือนก่อน +1

      This isn't wifi, it's a completely different wireless protocol.

    • @sargismartirosyan9946
      @sargismartirosyan9946 4 หลายเดือนก่อน

      @@RobertCowanDIY sad

    • @RobertCowanDIY
      @RobertCowanDIY  4 หลายเดือนก่อน

      @@sargismartirosyan9946 Haha, it's not sad. Wifi is a PAIN. This is a better point to point communications protocol.

    • @sargismartirosyan9946
      @sargismartirosyan9946 4 หลายเดือนก่อน

      @@RobertCowanDIY but I want to scan long ranges wifis using it

    • @RobertCowanDIY
      @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.