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. OpenHardware.io
  3. 💬 MySensor Dioder (Ikea)

💬 MySensor Dioder (Ikea)

Scheduled Pinned Locked Moved OpenHardware.io
contest2017diodermysensorshuergbledtrimmerarduinoikea
41 Posts 10 Posters 13.5k Views 10 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.
  • pentti12P Offline
    pentti12P Offline
    pentti12
    wrote on last edited by
    #22

    Hello
    I got lot of errors during the compiling stage. I tried to use older MySensors 1.5.4 library and Arduino 1.5.7 IDE. My question is, how to install correct MySensors library and not use anything else?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mortommy
      wrote on last edited by
      #23

      Delete the MySensors folder in libraries and download it again.

      1 Reply Last reply
      0
      • pentti12P Offline
        pentti12P Offline
        pentti12
        wrote on last edited by
        #24

        Now I downloaded Arduino IDE 1.6.5.zip, then I extracted it into C:/tools folder. Then I deleted everything from the library folder. Then I started Arduino IDE and I added MySensors-1.5.4.zip library. IDE reported that this file does not contain valid library. I closed IDE. So I unzipped MySensors-1.5.4.zip library directly into library folder. Then I started again IDE and checked that IDE can see MySensors-1.5.4 library. I opened MySensorDioder_133.ino and tried to compile it.

        Still got the following error:

        MySensorDioder_133.ino:38:30: fatal error: MyTransportNRF24.h: No such file or directory
        compilation terminated.

        How to continue?

        1 Reply Last reply
        0
        • pentti12P Offline
          pentti12P Offline
          pentti12
          wrote on last edited by
          #25

          Mortommy: Can you change your sketch so that it support MySensors 2.0 library?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mortommy
            wrote on last edited by
            #26

            Hi @pentti12 ,
            please find the sketch 2.0.0 in the project. I couldn't test it yet, I have converted it following the guidance and I just verified that it compiles successfully.

            1 Reply Last reply
            0
            • pentti12P Offline
              pentti12P Offline
              pentti12
              wrote on last edited by
              #27

              Sorry, but the compiler found a missing library file:

              MyTransportNRF24.h

              MySensors library 2.0 has MyTransportNRF24.cpp only

              1 Reply Last reply
              0
              • pentti12P Offline
                pentti12P Offline
                pentti12
                wrote on last edited by
                #28

                Hi

                I changed my Arduino IDE 1.6.11 using the MySensors development library v2.1.0-beta. Now the compiling went OK. I will continue with that. It will take few days before I have more info about how things went with actual hardware.

                1 Reply Last reply
                0
                • pentti12P Offline
                  pentti12P Offline
                  pentti12
                  wrote on last edited by
                  #29

                  I tested this latest sketch in my actual hardware (Arduino Mega + Proto shield with additionla components + Ikea Dioder control board). I cannot get system working, nothing happens when I press UP, DOWN buttons. Led-lights stay ON after power up.
                  I also tested to compile your sketch with Arduino IDE and MySensors Library V2.0.0. Compiling went OK, no progress with actual hardware.

                  How can I test step by step what is happening during startup?

                  M 1 Reply Last reply
                  0
                  • pentti12P pentti12

                    I tested this latest sketch in my actual hardware (Arduino Mega + Proto shield with additionla components + Ikea Dioder control board). I cannot get system working, nothing happens when I press UP, DOWN buttons. Led-lights stay ON after power up.
                    I also tested to compile your sketch with Arduino IDE and MySensors Library V2.0.0. Compiling went OK, no progress with actual hardware.

                    How can I test step by step what is happening during startup?

                    M Offline
                    M Offline
                    mortommy
                    wrote on last edited by
                    #30

                    @pentti12 ,
                    add the line

                    #define MY_DEBUG
                    

                    at the begging of the sketch so via Serial Monitor you'll be able to see the messages pushed by the commands println. You can add other println commands in other point to see the steps covered.

                    1 Reply Last reply
                    0
                    • pentti12P Offline
                      pentti12P Offline
                      pentti12
                      wrote on last edited by
                      #31

                      OK, I added the line and now I get:

                      Starting sensor (RNNNA-, 2.0.0)
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT
                      TSM:INIT
                      !TSM:RADIO:FAIL
                      !TSM:FAILURE
                      TSM:PDT

                      So I have to check my radio-module or replace it with new one. I will continue ...

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        mortommy
                        wrote on last edited by
                        #32

                        ok, something is definitely wrong with the radio module. Can you check the connection according to this page?

                        1 Reply Last reply
                        0
                        • pentti12P Offline
                          pentti12P Offline
                          pentti12
                          wrote on last edited by
                          #33

                          I changed my Radio-module to new one. Does not help. So I have to check my wiring on prototype board.

                          1 Reply Last reply
                          0
                          • pentti12P Offline
                            pentti12P Offline
                            pentti12
                            wrote on last edited by
                            #34

                            Wiring was OK, but 10uF elko is missing from the 3.3V supply. I have only 440nF capasitor at the moment. This seems to be too small value. I will have 10uF elko on next monday available. So project will take a break.

                            1 Reply Last reply
                            0
                            • pentti12P Offline
                              pentti12P Offline
                              pentti12
                              wrote on last edited by
                              #35

                              I added 10uF capasitor between VCC and GND pins of the radio module. I also added #define MY_DEBUG_VERBOSE_RF24 line into sketch. I got the following response:

                              Starting sensor (RNNNA-, 2.0.0)
                              TSM:INIT
                              RF24:write register, reg=0, value=14
                              RF24:write register, reg=3, value=3
                              RF24:write register, reg=4, value=95
                              RF24:write register, reg=5, value=76
                              RF24:write register, reg=6, value=39
                              RF24:read register, reg=6, value=255
                              RF24:read register, reg=5, value=255
                              RF24:Sanity check failed: configuration mismatch! Check wiring, replace module or non-P version
                              !TSM:RADIO:FAIL
                              !TSM:FAILURE
                              TSM:PDT
                              RF24:write register, reg=0, value=12
                              RF24:power down

                              I have changed the radio module to new one without success. So there must be some other reason why this sketch does not work in my hardware. Any ideas?

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                mortommy
                                wrote on last edited by
                                #36

                                Which module are you using? if it is NRF24L01+ be sure it is the "plus" version.

                                1 Reply Last reply
                                0
                                • pentti12P Offline
                                  pentti12P Offline
                                  pentti12
                                  wrote on last edited by
                                  #37

                                  At least I have ordered nRF24L01+ versions. And I use them on other MySensors node and they are working OK.

                                  1 Reply Last reply
                                  0
                                  • pentti12P Offline
                                    pentti12P Offline
                                    pentti12
                                    wrote on last edited by
                                    #38

                                    Update:

                                    I changed Arduino Board from Arduino Mega R3 to Arduino UNO board. I placed my protoshield above UNO-board and now I got following response:

                                    Starting sensor (RNNNA-, 2.0.0)
                                    TSM:INIT
                                    RF24:write register, reg=0, value=14
                                    RF24:write register, reg=3, value=3
                                    RF24:write register, reg=4, value=95
                                    RF24:write register, reg=5, value=76
                                    RF24:write register, reg=6, value=39
                                    RF24:read register, reg=6, value=39
                                    RF24:read register, reg=5, value=76
                                    RF24:write register, reg=16, value=115
                                    RF24:write register, reg=29, value=6
                                    RF24:write register, reg=2, value=2
                                    RF24:write register, reg=1, value=0
                                    RF24:write register, reg=28, value=3
                                    RF24:flushRX
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=112
                                    TSM:RADIO:OK
                                    RF24:write register, reg=2, value=3
                                    RF24:write register, reg=1, value=1
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:ASSIGNID:OK (ID=9)
                                    TSM:FPAR
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=255
                                    RF24:write register, reg=10, value=255
                                    RF24:write register, reg=16, value=255
                                    RF24:send message to 255, len=7
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:MAX_RT
                                    RF24:flushTX
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                    TSM:FPAR
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=255
                                    RF24:write register, reg=10, value=255
                                    RF24:write register, reg=16, value=255
                                    RF24:send message to 255, len=7
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:MAX_RT
                                    RF24:flushTX
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
                                    RF24:read message, len=8
                                    RF24:write register, reg=7, value=64
                                    TSP:MSG:READ 0-0-9 s=255,c=3,t=8,pt=1,l=1,sg=0:0
                                    TSP:MSG:FPAR RES (ID=0, dist=0)
                                    TSP:MSG:PAR OK (ID=0, dist=1)
                                    TSM:FPAR:OK
                                    TSM:ID
                                    TSM:CHKID:OK (ID=9)
                                    TSM:UPL
                                    TSP:PING:SEND (dest=0)
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=8
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
                                    RF24:read message, len=8
                                    RF24:write register, reg=7, value=64
                                    TSP:MSG:READ 0-0-9 s=255,c=3,t=25,pt=1,l=1,sg=0:1
                                    TSP:MSG:PONG RECV (hops=1)
                                    TSP:CHKUPL:OK
                                    TSM:UPL:OK
                                    TSM:READY
                                    Setup... end.
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=9
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=12
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=8
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
                                    RF24:read message, len=9
                                    RF24:write register, reg=7, value=64
                                    TSP:MSG:READ 0-0-9 s=255,c=3,t=15,pt=6,l=2,sg=0:0100
                                    Incoming message: 15
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=21
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=11,pt=0,l=14,sg=0,ft=0,st=ok:MySensorDioder
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=12
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=12,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=7
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=0,c=0,t=4,pt=0,l=0,sg=0,ft=0,st=ok:
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=7
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=1,c=0,t=26,pt=0,l=0,sg=0,ft=0,st=ok:
                                    Request registration...
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=8
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
                                    RF24:read message, len=8
                                    RF24:write register, reg=7, value=64
                                    TSP:MSG:READ 0-0-9 s=255,c=3,t=27,pt=1,l=1,sg=0:1
                                    Node registration=1
                                    Init complete, id=9, parent=0, distance=1, registration=1
                                    Wheel position changed.
                                    Wheel position: 0
                                    Hue value of the Wheel position: 0
                                    Send command to lights.
                                    Bright: 0
                                    Red: 0
                                    Green: 0
                                    Blue: 0
                                    RGB in HEX: 000000

                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=11
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=0,c=1,t=3,pt=4,l=4,sg=0,ft=0,st=ok:0
                                    RF24:stop listening
                                    RF24:write register, reg=0, value=14
                                    RF24:open writing pipe, recipient=0
                                    RF24:write register, reg=10, value=0
                                    RF24:write register, reg=16, value=0
                                    RF24:send message to 0, len=13
                                    RF24:flushTX
                                    RF24:write register, reg=7, value=48
                                    RF24:start listening
                                    RF24:write register, reg=0, value=15
                                    RF24:write register, reg=10, value=9
                                    TSP:MSG:SEND 9-9-0-0 s=1,c=1,t=40,pt=0,l=6,sg=0,ft=0,st=ok:000000

                                    Now sketch seems to work. I will continue by adding IKEA DIODER Leds. More info later.

                                    1 Reply Last reply
                                    0
                                    • pentti12P Offline
                                      pentti12P Offline
                                      pentti12
                                      wrote on last edited by
                                      #39

                                      Update:

                                      I can control locally the IKEA DIODER now. So the hardware is more or less working as expected, but do you have good instructions how I can get OpenHAB2 and MySensors Ethernet Gateway working together. Today I can see MySensors Ethernet Gateway ONLINE state and I can manually add Custom Sensor as a thing, but I cannot control items via Openhab.

                                      I use the latest OH2 Snapshot ( on Pine64 with Debian Jessie) and latest MySensors GatewayW5100 (library 2.0) on the MySensors Gateway (Arduino UNO based) and I have tried to start/stop/restart OH2 after MySensors Gateway is up and running without success.

                                      OH2 is capable to control for example Philips HUE lights without problems at the moment.

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        mortommy
                                        wrote on last edited by mortommy
                                        #40

                                        Great news!

                                        Regarding OH, I didn't have the opportunity to play with the v2.0 yet, I'm still on 1.8.1.
                                        I have a serial mysensors gateway and this is my set up:

                                        OH (v1.8.1) <-> OH MQTT binding (as MQTT client) <-> Mosquitto (as MQTT server) <-> mosquitto to serial (python script that reverts messages with topic mysensors to the serial port and vice-versa) <-> serial gateway.

                                        So my items in OH are based on mqtt binding.

                                        I guess OH2 and mysensors openhab binding make everything easier.

                                        1 Reply Last reply
                                        0
                                        • pentti12P Offline
                                          pentti12P Offline
                                          pentti12
                                          wrote on last edited by
                                          #41

                                          Do you have interest to try OH2 together with MySensors Ethernet Gateway to get working?

                                          I do not have enough force to push developers to make this happen. At the moment there is some problem on this, because full control is not possible. I think that MySensors Serial Gateway is working with OH2, but I don't like to use it. I like to connect my devices into LAN not cabling via old fashioned way using serial wires.

                                          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.0k

                                          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