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.
  • M Offline
    M Offline
    mortommy
    wrote on last edited by
    #17

    Hi,

    if you are already using a gateway in Domoticz I guess so. From the mysensor point of view is a RGB sensor (or light switch or dimmer light) the source of the command sento to the serial gateway and then to the ikea mysensorized sensor it doesn't matter.

    1 Reply Last reply
    0
    • Juan8tacoJ Offline
      Juan8tacoJ Offline
      Juan8taco
      wrote on last edited by
      #18

      Hello,
      I was using your code from MySensorDioder_133.ino
      I downloaded the library from https://github.com/mysensors/MySensors
      I tried to run the code but I got a error message saying no such file located.
      These were the two files that couldn't be found
      MyTransportNRF24.h
      MySensor.h
      I was wondering if you had the same issues when you were working on the code?

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

        Hi,
        yes it happens sometimes. Try to import the library by Arduino IDE (Sketch -> Include Library -> MySensors). You'll have in the sketch two new lines:

        
        #include <MyConfig.h>
        #include <MySensors.h>
        
        

        and you can delete the same lines already included in the code.

        Remember that the sketch is based on mysensor library 1.5.4 it is not converted to 2.0 yet.

        Hope it helps.

        1 Reply Last reply
        0
        • Juan8tacoJ Offline
          Juan8tacoJ Offline
          Juan8taco
          wrote on last edited by
          #20

          Thank you,

          I found those missing files and uses the mysensor library 1.5.4 but after I put all the files it asked for I got this odd message. I was looking for the error but had no luck. It says that "was not declared in this scope". Did you happened to run into this issue?

          0_1479706500439_upload-81042e07-857f-48cb-aef0-f62af70f2189

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

            Have you cleaned the folder MySensor within the folder libraries before to copy the 1.5.4 one?

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


                                          23

                                          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