Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. How do you control Digital I/O to power up the NRF24L01

How do you control Digital I/O to power up the NRF24L01

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 50 Views 1 Watching
  • 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.
  • Phil WhitmarshP Offline
    Phil WhitmarshP Offline
    Phil Whitmarsh
    wrote on last edited by
    #1

    Hi,
    I have a development board that i designed for an Arduino Pro Mini
    It runs from a Lithium battery i.e. about 3.7 to 4.2v
    I have use this board for various projects, it has a 433Mhz Tx board an NRF24L01, a few i2c ports 3v3 & 5v, it has a switched power source (P-Channel Fet) for my sensors that are on the i2c port.
    So i have now come across the Mysensors site and decided to have a try.
    It works fine if i permenantly supply power to the sensors and the NRF24L01, but i cannot get it to switch my P-Channel Fet that controls power for the sensors and the NRF24L01.
    I did read that you have set set the digital I/O for the AVR up in the presentation section, which i have tried.

    Any clues or pointers please?

    Thanks,

    Phil.

    1 Reply Last reply
    0
    • Phil WhitmarshP Offline
      Phil WhitmarshP Offline
      Phil Whitmarsh
      wrote on last edited by
      #2

      Fixed -

      You have to use void before() and place it before void presentation()

      void before() {
      pinMode (4, OUTPUT);
      digitalWrite(4, HIGH);
      }

      void presentation()
      {
      // Send the Sketch Version Information to the Gateway
      Serial.print("Send Sketch Info: ");
      sendSketchInfo(SKETCH_NAME, SKETCH_VERSION);
      Serial.print(SKETCH_NAME);
      Serial.println(SKETCH_VERSION);
      wait(LONG_WAIT);

      1 Reply Last reply
      1
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      16

      Online

      11.7k

      Users

      11.2k

      Topics

      113.1k

      Posts


      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular