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. Arduino Mega + sensor shield 2

Arduino Mega + sensor shield 2

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

    Hello,

    I have tried to connect to the radio a Mega + shield, checked wiring numerous times...

    I was on 3.3V, moved to 5V with compensation...

    would there be a reason why a mega wouldn't work with mysensors?

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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      marceltrapman
      Mod
      wrote on last edited by
      #2

      @epierre Look here: http://forum.mysensors.org/topic/66/unable-to-use-the-serialgateway-code/7
      It looks like the pins are different.

      Fulltime Servoy Developer
      Parttime Moderator MySensors board

      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
      I have a FABtotum to print cases.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        epierre
        Hero Member
        wrote on last edited by
        #3

        ok so the post say this

        pin D8-----------CE (chip enable in)
        SS pin D53----------CSN (chip select in)
        SCK pin D52----------SCK (SPI clock in)
        MOSI pin D51----------SDI (SPI Data in)
        MISO pin D50----------SDO (SPI data out)
        
        Gateway gw(8, 53, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, 6, 5, 4);
        

        For a sensor I would translate it to :

        Sensor gw(8, 53);
        

        right ? --> but the serial debug is deaf when I do this... any idea ?

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

        M 1 Reply Last reply
        0
        • E epierre

          ok so the post say this

          pin D8-----------CE (chip enable in)
          SS pin D53----------CSN (chip select in)
          SCK pin D52----------SCK (SPI clock in)
          MOSI pin D51----------SDI (SPI Data in)
          MISO pin D50----------SDO (SPI data out)
          
          Gateway gw(8, 53, INCLUSION_MODE_TIME, INCLUSION_MODE_PIN, 6, 5, 4);
          

          For a sensor I would translate it to :

          Sensor gw(8, 53);
          

          right ? --> but the serial debug is deaf when I do this... any idea ?

          M Offline
          M Offline
          marceltrapman
          Mod
          wrote on last edited by marceltrapman
          #4

          @epierre I'm sorry I have one but never used it.
          So I would have to test that because I don't see any use for a mega as a sensor. I like them as small as possible :)

          Fulltime Servoy Developer
          Parttime Moderator MySensors board

          I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
          I have a FABtotum to print cases.

          E 1 Reply Last reply
          0
          • M marceltrapman

            @epierre I'm sorry I have one but never used it.
            So I would have to test that because I don't see any use for a mega as a sensor. I like them as small as possible :)

            E Offline
            E Offline
            epierre
            Hero Member
            wrote on last edited by
            #5

            @marceltrapman me too, but here this will be my hoe monitor : light, sound, pressure, and polluants, I already have5 nodes on it.

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

            E 1 Reply Last reply
            0
            • E epierre

              @marceltrapman me too, but here this will be my hoe monitor : light, sound, pressure, and polluants, I already have5 nodes on it.

              E Offline
              E Offline
              epierre
              Hero Member
              wrote on last edited by epierre
              #6

              I've found the SPI reference

              51: MOSI       Blue
              GND: GND       Black
              52: SCK        Green
              50: MISO       Violet
              48: CE         Orange
              49: CSN        Yellow
              3V: VCC        Red
              
              
              Sensor gw(48,49)
              

              OR alternative

              GND: GND
              52: SCK
              50: MISO
              9: CE
              49: CSN
              3V: VCC
              GND: GND
              
              Sensor gw(9,49)
              
              NOTE!! Most * problems with intermittent operation are because of electrical noise on the 3.3V Power supply. The MEGA is more of a problem with this. Solution: ADD bypass capacitors across GND and 3.3V ON the radio modules. One user said, "Just Solder a 100nF ceramic cap across the gnd and 3.3v pins direct on the nrf24l01+ modules!" Some have used a 1uF to 10uF capacitor.
              

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

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

                ok this time I plugged myself on the 5V and it works !

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

                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


                18

                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