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. Development
  3. Programming needed to enable RFM69 radio with 5100 ethernet code.

Programming needed to enable RFM69 radio with 5100 ethernet code.

Scheduled Pinned Locked Moved Development
7 Posts 3 Posters 1.2k Views 2 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.
  • JohnRobJ Offline
    JohnRobJ Offline
    JohnRob
    wrote on last edited by JohnRob
    #1

    Can someone suggest a sketch code that would work with a sensebender_Gw. Using a RFW69 radio and a 5100 enternet.

    1 Reply Last reply
    0
    • korttomaK Offline
      korttomaK Offline
      korttoma
      Hero Member
      wrote on last edited by
      #2

      The example sketch included in the MySensors library should work just fine if you enable the correct radio and define the frequenzy to be used and radio hardware type if it is HW like this:

      #define MY_RADIO_RFM69
      #define MY_RFM69_FREQUENCY RF69_433MHZ
      #define MY_IS_RFM69HW
      
      • Tomas
      zboblamontZ 1 Reply Last reply
      2
      • korttomaK korttoma

        The example sketch included in the MySensors library should work just fine if you enable the correct radio and define the frequenzy to be used and radio hardware type if it is HW like this:

        #define MY_RADIO_RFM69
        #define MY_RFM69_FREQUENCY RF69_433MHZ
        #define MY_IS_RFM69HW
        
        zboblamontZ Offline
        zboblamontZ Offline
        zboblamont
        wrote on last edited by
        #3

        @korttoma The last line to be clear being dependent on whether using the high powered rfm69, otherwise it should be omitted or commented out...

        1 Reply Last reply
        0
        • JohnRobJ Offline
          JohnRobJ Offline
          JohnRob
          wrote on last edited by
          #4

          Thanks the information was helpful. But I'm still hung up on the pin designators. In this code:

          // Enable debug prints to serial monitor
          #define MY_DEBUG
          
          // Enable and select radio type attached
          //#define MY_RADIO_NRF24
          #define MY_RADIO_RFM69
          
          // Enable gateway ethernet module type
          #define MY_GATEWAY_W5100
          
          // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal)
          #define MY_W5100_SPI_EN 4
          
          // Enable Soft SPI for NRF radio (note different radio wiring is required)
          // The W5100 ethernet module seems to have a hard time co-operate with
          // radio on the same spi bus.
          #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)
          #define MY_SOFTSPI
          #define MY_SOFT_SPI_SCK_PIN 14
          #define MY_SOFT_SPI_MISO_PIN 16
          #define MY_SOFT_SPI_MOSI_PIN 15
          #endif
          
          // When W5100 is connected we have to move CE/CSN pins for NRF radio
          #ifndef MY_RF24_CE_PIN
          #define MY_RF24_CE_PIN 5
          #endif
          #ifndef MY_RF24_CS_PIN
          #define MY_RF24_CS_PIN 6
          #endif
          

          Here I'm struggling, because the Sensebender_GW does not wire the RF24 pins to pin 5 & 6 as shown in the above code (based one the Github schematic ) So as I try to understand how to code the RFM69 I'm lost as to what pins need to be defined in the sketch.

          In the old days I would simply pickup the CPU datasheet and be good to go, however the Arduino pin mapping has me completely baffled. Even after reading every variant.h on my computer!

          So I thought if someone could post the code for the same configuration I would using, I could go backwards and learn the pin mapping.

          korttomaK 1 Reply Last reply
          0
          • JohnRobJ JohnRob

            Thanks the information was helpful. But I'm still hung up on the pin designators. In this code:

            // Enable debug prints to serial monitor
            #define MY_DEBUG
            
            // Enable and select radio type attached
            //#define MY_RADIO_NRF24
            #define MY_RADIO_RFM69
            
            // Enable gateway ethernet module type
            #define MY_GATEWAY_W5100
            
            // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal)
            #define MY_W5100_SPI_EN 4
            
            // Enable Soft SPI for NRF radio (note different radio wiring is required)
            // The W5100 ethernet module seems to have a hard time co-operate with
            // radio on the same spi bus.
            #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)
            #define MY_SOFTSPI
            #define MY_SOFT_SPI_SCK_PIN 14
            #define MY_SOFT_SPI_MISO_PIN 16
            #define MY_SOFT_SPI_MOSI_PIN 15
            #endif
            
            // When W5100 is connected we have to move CE/CSN pins for NRF radio
            #ifndef MY_RF24_CE_PIN
            #define MY_RF24_CE_PIN 5
            #endif
            #ifndef MY_RF24_CS_PIN
            #define MY_RF24_CS_PIN 6
            #endif
            

            Here I'm struggling, because the Sensebender_GW does not wire the RF24 pins to pin 5 & 6 as shown in the above code (based one the Github schematic ) So as I try to understand how to code the RFM69 I'm lost as to what pins need to be defined in the sketch.

            In the old days I would simply pickup the CPU datasheet and be good to go, however the Arduino pin mapping has me completely baffled. Even after reading every variant.h on my computer!

            So I thought if someone could post the code for the same configuration I would using, I could go backwards and learn the pin mapping.

            korttomaK Offline
            korttomaK Offline
            korttoma
            Hero Member
            wrote on last edited by
            #5

            @johnrob You should not need to edit or define any pin asigning from the example sketch.

            You might want to edit the IP address:

            #define MY_IP_ADDRESS 192,168,178,66   // If this is disabled, DHCP is used to retrieve address
            

            MAC address:

            #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
            

            And define the frequenzy of your RFM69 (this is an example using the 433MHZ version):

            #define MY_RFM69_FREQUENCY RF69_433MHZ
            
            • Tomas
            JohnRobJ 1 Reply Last reply
            0
            • korttomaK korttoma

              @johnrob You should not need to edit or define any pin asigning from the example sketch.

              You might want to edit the IP address:

              #define MY_IP_ADDRESS 192,168,178,66   // If this is disabled, DHCP is used to retrieve address
              

              MAC address:

              #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED
              

              And define the frequenzy of your RFM69 (this is an example using the 433MHZ version):

              #define MY_RFM69_FREQUENCY RF69_433MHZ
              
              JohnRobJ Offline
              JohnRobJ Offline
              JohnRob
              wrote on last edited by
              #6

              @korttoma
              Thanks I just make the changes you suggested.
              However I'm still uncomfortable not knowing how the pins get sorted out by the software.

              JohnRob

              1 Reply Last reply
              0
              • korttomaK Offline
                korttomaK Offline
                korttoma
                Hero Member
                wrote on last edited by
                #7

                As far as I know all the radio pins have some kind of "default" pin assignment and only in special cases you need to reassign them. Also depending on the processor type or board type you choose in the tool the default pin assignment may differ. I think it in case of RFM69 is handled in the RFM69_old.h (someone with better knowledge please correct me if I am wrong).

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


                18

                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