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. Mysensors on Mega ?

Mysensors on Mega ?

Scheduled Pinned Locked Moved Development
2 Posts 2 Posters 1.0k 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.
  • epierreE Offline
    epierreE Offline
    epierre
    Hero Member
    wrote on last edited by
    #1

    Some times ago, there was a constructor for the Mega that could change the pin allocation to use it:

    MySensor gw(48,49);
    

    But it doesn't seems possible anymore, and the only other wway around found is this one:

    MyConfig.h

    • Ligne 112 : #define RF24_CE_PIN 48 //9 UNO
    • Ligne 113 : #define RF24_CS_PIN 49 //10 UNO
    • Ligne 127 : const uint8_t SOFT_SPI_MISO_PIN = 50; //16 UNO
    • Ligne 128 : const uint8_t SOFT_SPI_MOSI_PIN = 51; //15 UNO
    • Ligne 129 : const uint8_t SOFT_SPI_SCK_PIN = 52; // 14 UNO

    @hek is that correct ? if not, would it be possible that information be available in the "wiring" section ?

    thanks,

    z-wave - Vera -> Domoticz
    rfx - Domoticz <- MyDomoAtHome <- Imperihome
    mysensors -> mysensors-gw -> Domoticz

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      In the 2.0.0-beta development branch you just define the following in sketch:

      #define MY_RF24_CE_PIN	xx
      #define MY_RF24_CS_PIN yy
      

      In 1.6 you have to create a Transport class with the pin definitions
      https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/MyTransportNRF24.h

      You can see an example of this here:
      https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/SerialGateway/SerialGateway.ino#L62

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


      19

      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