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 5.6k 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.
  • epierreE Offline
    epierreE 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
    • marceltrapmanM Offline
      marceltrapmanM 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
      • epierreE Offline
        epierreE 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

        marceltrapmanM 1 Reply Last reply
        0
        • epierreE 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 ?

          marceltrapmanM Offline
          marceltrapmanM 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.

          epierreE 1 Reply Last reply
          0
          • marceltrapmanM 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 :)

            epierreE Offline
            epierreE 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

            epierreE 1 Reply Last reply
            0
            • epierreE epierre

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

              epierreE Offline
              epierreE 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
              • epierreE Offline
                epierreE 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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                8

                Online

                11.7k

                Users

                11.2k

                Topics

                113.0k

                Posts


                Copyright 2019 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