element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum NRF24L01 Problem simplifying code
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 16 replies
  • Answers 3 answers
  • Subscribers 394 subscribers
  • Views 2313 views
  • Users 0 members are here
  • nrf24l01
Related

NRF24L01 Problem simplifying code

billpenner
billpenner over 10 years ago

I am using the NRF24 for receiver/transmitter on a link between a Uno and a Mega. the basis for the code is http://maniacbug.github.io/RF24 I have finally gotten the units working super. My project is to input a four digit code on the transmitter, send it to the receiver, which will echo back the data sent for accuracy check. Then the code will be displayed on a  three inch 7 segment display. My problem is: The code from the above is impossible for me to modify without breaking it. It seems that most of the work is done in the library RF24.h. The code is great for debugging and was very helpful for getting the NRF24s working. However, All my efforts to simplify the code to insert the data and extract it results in compiler errors. Does anyone have any help or a source for a more easily modified code for the NRF24?

Thanks to a bunch of great resource and to the dedication to us who are trying to learn.

Bill

  • Sign in to reply
  • Cancel

Top Replies

  • balearicdynamics
    balearicdynamics over 10 years ago +2
    Hello Bill, Please can you put here the parts of code that you have in mind to break and simplify ? Maybe that there is some parts global that should be replaced in a different way. Thank you. Enrico
  • m.ratcliffe
    m.ratcliffe over 10 years ago +1
    The Blue link sends me back to this page, is the library you are using upto date? I got the following from: NRF24: NRF24 library for Arduino " This NRF24 library has now been superceded by the RadioHead…
  • Robert Peter Oakes
    Robert Peter Oakes over 10 years ago +1 suggested
    you may find the code here useful for reference, I used the NRF modules in last XMAS contest and provided all the code http://www.element14.com/community/groups/arduino/blog/2015/01/24/byob-party-15-news…
Parents
  • m.ratcliffe
    0 m.ratcliffe over 10 years ago

    The Blue link sends me back to this page, is the library you are using upto date?

     

    I got the following from: NRF24: NRF24 library for Arduino

     

    "This NRF24 library has now been superceded by the RadioHead library http://www.airspayce.com/mikem/arduino/RadioHead RadioHead and its RH_NRF24 driver provides all the features supported by NRF24, and much more besides, including Reliable Datagrams, Addressing, Routing and Meshes. All the platforms that NRF24 supported are also supported by RadioHead."

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • billpenner
    0 billpenner over 10 years ago in reply to m.ratcliffe

    I'm sorry, the correct link is https://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/#more-229.

    I don't why the other link sent you in a circle.

    I worked with the radiohead  for a long time but never got it working with Arduino Uno or Mega.

    thanks for the reply.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • billpenner
    0 billpenner over 10 years ago in reply to m.ratcliffe

    I'm sorry, the correct link is https://maniacbug.wordpress.com/2011/11/02/getting-started-rf24/#more-229.

    I don't why the other link sent you in a circle.

    I worked with the radiohead  for a long time but never got it working with Arduino Uno or Mega.

    thanks for the reply.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube