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. No radio signal with using ETHERNET Shield

No radio signal with using ETHERNET Shield

Scheduled Pinned Locked Moved Troubleshooting
2 Posts 1 Posters 1.1k 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.
  • R Offline
    R Offline
    rasitd
    wrote on last edited by rasitd
    #1

    I wanna build a sensor network that includes just two node. One node transmits sensor values, the other one is load the values to internet. Without ethernet shield, nodes communicated each other. Then, with ethernet shield, i used mysensor library, softspi etc. i didn't get anything. I thought, maybe my ethernet shield was broken, but it is working fine without NRF24L01. i wanted to look radio signals using softspi with ethernet but it didn't upload internet( because i can't do it.). I tried codes to get sensor values. But only i see "no signal available". So, i don't understand anything about softspi, using nrf24l01 with ethernetshield. my nrf24l01 connections are =
    A2 MISO
    A1 MOSI
    A0 SCK
    6 CSN
    5 CE

    ------------my transmitter code is;------------------------

    #include <SPI.h>
    #include <nRF24L01.h>
    #include <RF24.h>
    /-----( Declare Constants and Pin Numbers )-----/
    #define CE_PIN 9
    #define CSN_PIN 10

    // NOTE: the "LL" at the end of the constant is "LongLong" type
    const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

    /-----( Declare objects )-----/
    RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
    /-----( Declare Variables )-----/
    int signal[2]; // 2 element array holding Joystick readings

    void setup() /****** SETUP: RUNS ONCE ******/
    {
    Serial.begin(9600);
    radio.begin();
    radio.openWritingPipe(pipe);
    }//--(end setup )---

    void loop()
    {
    signal[0] = 1;
    signal[1] = 0;

    radio.write( signal, sizeof(signal) );

    }

    //( THE END )**

    -----------------------my receiver code;------------------------------------

    #include <SPI.h>
    #include <nRF24L01.h>
    #include <RF24.h>
    #include <DigitalIO.h>
    #include <DigitalPin.h>
    #include <I2cConstants.h>
    #include <nRF24L01.h>
    #include <PinIO.h>

    #include <RF24_config.h>
    #include <SoftI2cMaster.h>
    #include <SoftSPI.h>

    /-----( Declare Constants and Pin Numbers )-----/
    #define CE_PIN 5
    #define CSN_PIN 6

    // NOTE: the "LL" at the end of the constant is "LongLong" type
    const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

    /-----( Declare objects )-----/
    RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
    /-----( Declare Variables )-----/
    int joystick[2]; // 2 element array holding Joystick readings

    void setup() /****** SETUP: RUNS ONCE ******/
    {
    Serial.begin(9600);
    delay(1000);
    Serial.println("Nrf24L01 Receiver Starting");
    radio.begin();
    radio.openReadingPipe(1,pipe);
    radio.startListening();;
    }//--(end setup )---

    void loop()
    {
    if ( radio.available() )
    {
    // Read the data payload until we've received everything
    bool done = false;
    while (!done)
    {
    // Fetch the data payload
    done = radio.read( signal, sizeof(signal) );
    Serial.print("X = ");
    Serial.print(signal[0]);
    Serial.print(" Y = ");
    Serial.println(signal[1]);

    }
    }
    else
    {
    Serial.println("No radio available");
    }

    }

    //( THE END )**

    What am i doing wrong? what i am missing? i get X=-1, Y=-1 WHY?? can anyone help me?

    R 1 Reply Last reply
    0
    • R rasitd

      I wanna build a sensor network that includes just two node. One node transmits sensor values, the other one is load the values to internet. Without ethernet shield, nodes communicated each other. Then, with ethernet shield, i used mysensor library, softspi etc. i didn't get anything. I thought, maybe my ethernet shield was broken, but it is working fine without NRF24L01. i wanted to look radio signals using softspi with ethernet but it didn't upload internet( because i can't do it.). I tried codes to get sensor values. But only i see "no signal available". So, i don't understand anything about softspi, using nrf24l01 with ethernetshield. my nrf24l01 connections are =
      A2 MISO
      A1 MOSI
      A0 SCK
      6 CSN
      5 CE

      ------------my transmitter code is;------------------------

      #include <SPI.h>
      #include <nRF24L01.h>
      #include <RF24.h>
      /-----( Declare Constants and Pin Numbers )-----/
      #define CE_PIN 9
      #define CSN_PIN 10

      // NOTE: the "LL" at the end of the constant is "LongLong" type
      const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

      /-----( Declare objects )-----/
      RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
      /-----( Declare Variables )-----/
      int signal[2]; // 2 element array holding Joystick readings

      void setup() /****** SETUP: RUNS ONCE ******/
      {
      Serial.begin(9600);
      radio.begin();
      radio.openWritingPipe(pipe);
      }//--(end setup )---

      void loop()
      {
      signal[0] = 1;
      signal[1] = 0;

      radio.write( signal, sizeof(signal) );

      }

      //( THE END )**

      -----------------------my receiver code;------------------------------------

      #include <SPI.h>
      #include <nRF24L01.h>
      #include <RF24.h>
      #include <DigitalIO.h>
      #include <DigitalPin.h>
      #include <I2cConstants.h>
      #include <nRF24L01.h>
      #include <PinIO.h>

      #include <RF24_config.h>
      #include <SoftI2cMaster.h>
      #include <SoftSPI.h>

      /-----( Declare Constants and Pin Numbers )-----/
      #define CE_PIN 5
      #define CSN_PIN 6

      // NOTE: the "LL" at the end of the constant is "LongLong" type
      const uint64_t pipe = 0xE8E8F0F0E1LL; // Define the transmit pipe

      /-----( Declare objects )-----/
      RF24 radio(CE_PIN, CSN_PIN); // Create a Radio
      /-----( Declare Variables )-----/
      int joystick[2]; // 2 element array holding Joystick readings

      void setup() /****** SETUP: RUNS ONCE ******/
      {
      Serial.begin(9600);
      delay(1000);
      Serial.println("Nrf24L01 Receiver Starting");
      radio.begin();
      radio.openReadingPipe(1,pipe);
      radio.startListening();;
      }//--(end setup )---

      void loop()
      {
      if ( radio.available() )
      {
      // Read the data payload until we've received everything
      bool done = false;
      while (!done)
      {
      // Fetch the data payload
      done = radio.read( signal, sizeof(signal) );
      Serial.print("X = ");
      Serial.print(signal[0]);
      Serial.print(" Y = ");
      Serial.println(signal[1]);

      }
      }
      else
      {
      Serial.println("No radio available");
      }

      }

      //( THE END )**

      What am i doing wrong? what i am missing? i get X=-1, Y=-1 WHY?? can anyone help me?

      R Offline
      R Offline
      rasitd
      wrote on last edited by
      #2

      @rasitd When i remove NRF24L01, i still get X=-1, Y=-1. anyone?

      1 Reply Last reply
      0
      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