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.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.
  • E Offline
    E 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
    • H Offline
      H 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

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      13

      Online

      12.0k

      Users

      11.2k

      Topics

      113.4k

      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