• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Adding NRF24l01 code to existing sketches

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 883 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      MTBHuw
      last edited by

      This isn't entirely MyController related, but as a complete beginner with coding, how can I go about adding the code for an NRF24l01 to a sketch for a sensor that doesn't have it? That is, enabling a sensor to communicate with my gateway.

      I've read the MySensors info on setting the NRF up etc and have sensors running successfully already but I've always used sketches with the code already built in. I need to know how to add it, the "where" and "what" etc. if a sketch for a sensor doesn't have it. Thanks.

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        Tag MOD @MTBHuw
        last edited by

        @mtbhuw

        Hi!, have a look here it clearly explains how the sketch should be setup.

        Another option is make use of and existing example found here, these are clear examples that can be modified to suit your needs.

        What type of sensor are you building?

        1 Reply Last reply Reply Quote 0
        • M Offline
          MTBHuw
          last edited by

          That's great thanks, I will read through that to try and make sense of it.

          I have 2 projects at the moment. One is a water level/rain gauge sensor project. I've seen the My Sensors rain gauge sketch but it seems too complex for my needs although I could use it.

          The other is a home "smart meter" for our electricity usage using a non invasive current sensor.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          0

          Online

          586

          Users

          529

          Topics

          3.4k

          Posts
          Copyright © 2015-2025 MyController.org | Contributors | Localization