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. Announcements
  3. 💬 Using Arduino

💬 Using Arduino

Scheduled Pinned Locked Moved Announcements
27 Posts 15 Posters 7.8k Views 15 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.
  • mahesh2000M Offline
    mahesh2000M Offline
    mahesh2000
    wrote on last edited by
    #8

    Using Arduino IDE 1.6.2, no problem compiling MySensors/AltSoftwareSerial/Test/test.ino. Had to make two changes: add some #defines and include an extra library. I'm using a Nordic nRF24L01+ on a Chinese board. I had to add:

    #define MY_RADIO_NRF24
    #define MY_RF24_PA_LEVEL RF24_PA_LOW
    #define MY_GATEWAY_SERIAL

    before

    #include <MySensors.h>

    Also, had to add the AltSofwareSerial library, otherwise I received the error "AltSoftSerial.h: No such file or directory".

    If I don't follow up with a new comment it means that this config worked. I'm on Windows 10, using a fakeduino Uno, hoping to connect to an nRF24LE1 over 250Kbps.

    and MySensors libraries. A

    1 Reply Last reply
    0
    • mahesh2000M Offline
      mahesh2000M Offline
      mahesh2000
      wrote on last edited by
      #9

      couldn't get nRF24L01+ to work. Making do with two nRF24LE1s communicating with each other.

      1 Reply Last reply
      0
      • mppM Offline
        mppM Offline
        mpp
        wrote on last edited by
        #10

        Would be nice to have a link to the example sketches (the ones using external libraries) here: https://github.com/mysensors/MySensorsArduinoExamples

        MyController with USB powered WeMos D1/mini ESP8266 MQTT Gateways and battery powered Arduino Pro Mini using the RFM69 radio

        mfalkviddM 1 Reply Last reply
        0
        • mppM mpp

          Would be nice to have a link to the example sketches (the ones using external libraries) here: https://github.com/mysensors/MySensorsArduinoExamples

          mfalkviddM Online
          mfalkviddM Online
          mfalkvidd
          Mod
          wrote on last edited by
          #11

          Thanks for the suggestion @mpp. I have added a section for the external examples.

          1 Reply Last reply
          0
          • Matt BriggsM Offline
            Matt BriggsM Offline
            Matt Briggs
            wrote on last edited by
            #12

            So this is going to cause an argument in the sketch?:
            void loop()
            {
            // This will be called contentiously after setup.
            }

            Maybe should be "continuously"

            1 Reply Last reply
            1
            • N Offline
              N Offline
              Newzwaver
              wrote on last edited by
              #13

              Why do i get this error? Any idea how to fix it?
              Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno"

              In file included from C:\Users\Audrey\Documents\Arduino\libraries\MySensors/drivers/RF24/RF24.cpp:23:0,
              from C:\Users\Audrey\Documents\Arduino\libraries\MySensors/MySensors.h:290,
              from GatewayW5100.ino:116:
              C:\Users\Audrey\Documents\Arduino\libraries\MySensors/drivers/RF24/RF24.h:37:17: fatal error: SPI.h: No such file or directory
              #include <SPI.h>
              ^
              compilation terminated.
              Error compiling.

              This report would have more information with
              "Show verbose output during compilation"
              enabled in File > Preferences.

              1 Reply Last reply
              0
              • N Offline
                N Offline
                Newzwaver
                wrote on last edited by
                #14

                Messing around with it and got this message, still not idea how to fix it

                Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno"

                Using library MySensors in folder: C:\Users\Audrey\Documents\Arduino\libraries\MySensors

                Using library Ethernet in folder: C:\Program Files (x86)\Arduino\libraries\Ethernet

                C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Users\Audrey\Documents\Arduino\libraries\MySensors -IC:\Program Files (x86)\Arduino\libraries\Ethernet\src C:\Users\Audrey\AppData\Local\Temp\build1062139905146989693.tmp\GatewayW5100.cpp -o C:\Users\Audrey\AppData\Local\Temp\build1062139905146989693.tmp\GatewayW5100.cpp.o

                In file included from GatewayW5100.ino:2:0:
                C:\Users\Audrey\Documents\Arduino\libraries\MySensors/MySensors.h:328:2: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
                #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
                ^
                Error compiling.

                mfalkviddM 1 Reply Last reply
                0
                • N Newzwaver

                  Messing around with it and got this message, still not idea how to fix it

                  Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno"

                  Using library MySensors in folder: C:\Users\Audrey\Documents\Arduino\libraries\MySensors

                  Using library Ethernet in folder: C:\Program Files (x86)\Arduino\libraries\Ethernet

                  C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard -IC:\Users\Audrey\Documents\Arduino\libraries\MySensors -IC:\Program Files (x86)\Arduino\libraries\Ethernet\src C:\Users\Audrey\AppData\Local\Temp\build1062139905146989693.tmp\GatewayW5100.cpp -o C:\Users\Audrey\AppData\Local\Temp\build1062139905146989693.tmp\GatewayW5100.cpp.o

                  In file included from GatewayW5100.ino:2:0:
                  C:\Users\Audrey\Documents\Arduino\libraries\MySensors/MySensors.h:328:2: error: #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
                  #error No forward link or gateway feature activated. This means nowhere to send messages! Pretty pointless.
                  ^
                  Error compiling.

                  mfalkviddM Online
                  mfalkviddM Online
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #15

                  @Newzwaver could you post the sketch?

                  1 Reply Last reply
                  0
                  • N Offline
                    N Offline
                    Newzwaver
                    wrote on last edited by
                    #16

                    Thank you for your help, the thing is working. It has something to do with the way I have the Arduino software setup, for some reason I can't just copy a sketch and paste it in for a new sketch.

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      benji_lb
                      wrote on last edited by
                      #17

                      The MySensors library is missing from the arduino library manager again. Should I just log a new issue and reference the previous one?

                      mfalkviddM 1 Reply Last reply
                      0
                      • B benji_lb

                        The MySensors library is missing from the arduino library manager again. Should I just log a new issue and reference the previous one?

                        mfalkviddM Online
                        mfalkviddM Online
                        mfalkvidd
                        Mod
                        wrote on last edited by
                        #18

                        @benji_lb yes please do. Could you post the link to the issue here when it has been created so we can follow it?

                        B 1 Reply Last reply
                        0
                        • mfalkviddM mfalkvidd

                          @benji_lb yes please do. Could you post the link to the issue here when it has been created so we can follow it?

                          B Offline
                          B Offline
                          benji_lb
                          wrote on last edited by
                          #19

                          @mfalkvidd https://github.com/arduino/Arduino/issues/6690

                          Done.

                          B 1 Reply Last reply
                          1
                          • B benji_lb

                            @mfalkvidd https://github.com/arduino/Arduino/issues/6690

                            Done.

                            B Offline
                            B Offline
                            benji_lb
                            wrote on last edited by
                            #20

                            @benji_lb
                            Fixed. I noticed I was running an older version of the software. Uninstalled completely and reinstalled, worked fine.

                            Where would be the best place for an Arduino newbie to post to get some assistance? I'm looking at Gateways and i'm unsure which direction to take, and where would be best to post. Would this be OK? https://forum.mysensors.org/category/13/development

                            mfalkviddM 1 Reply Last reply
                            0
                            • B benji_lb

                              @benji_lb
                              Fixed. I noticed I was running an older version of the software. Uninstalled completely and reinstalled, worked fine.

                              Where would be the best place for an Arduino newbie to post to get some assistance? I'm looking at Gateways and i'm unsure which direction to take, and where would be best to post. Would this be OK? https://forum.mysensors.org/category/13/development

                              mfalkviddM Online
                              mfalkviddM Online
                              mfalkvidd
                              Mod
                              wrote on last edited by
                              #21

                              @benji_lb great, thanks for reporting back.

                              The development category will be good. Big welcome to the MySensors community :)

                              1 Reply Last reply
                              1
                              • rejoe2R Offline
                                rejoe2R Offline
                                rejoe2
                                wrote on last edited by
                                #22

                                Today, the "Basic Structure" section contains just a "normal" Arduino structure.
                                Wouldn't it be useful to also add a slightly extended version mentioning the split of the original Arduino-setup() to begin()->presentation()->setup() when using recent MySenors libs (since 2.1.0)?
                                This is not very transparent to quite a few users, and yet some of our examples do either not mention "before()" at all or do not make use of the new logical execution time of setup(), even if this would be helpful (!pcReceived in WaterMeter-Sketch, getControllerConfig(), for metric in Temperature, just to mention some examples) .
                                Also the text order of setup() still beeing above presentation() in at least some examples may be technically irrelevant but nevertheless misleading to some extend.

                                Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                                mfalkviddM 1 Reply Last reply
                                1
                                • rejoe2R rejoe2

                                  Today, the "Basic Structure" section contains just a "normal" Arduino structure.
                                  Wouldn't it be useful to also add a slightly extended version mentioning the split of the original Arduino-setup() to begin()->presentation()->setup() when using recent MySenors libs (since 2.1.0)?
                                  This is not very transparent to quite a few users, and yet some of our examples do either not mention "before()" at all or do not make use of the new logical execution time of setup(), even if this would be helpful (!pcReceived in WaterMeter-Sketch, getControllerConfig(), for metric in Temperature, just to mention some examples) .
                                  Also the text order of setup() still beeing above presentation() in at least some examples may be technically irrelevant but nevertheless misleading to some extend.

                                  mfalkviddM Online
                                  mfalkviddM Online
                                  mfalkvidd
                                  Mod
                                  wrote on last edited by
                                  #23

                                  @rejoe2 great feedback, thanks! For the examples, I have created https://github.com/mysensors/MySensors/issues/927

                                  I have updated the "Using Arduino " page. I am not 100% sure I got it right and easy to understand so feedback is very welcome.

                                  rejoe2R 1 Reply Last reply
                                  1
                                  • mfalkviddM mfalkvidd

                                    @rejoe2 great feedback, thanks! For the examples, I have created https://github.com/mysensors/MySensors/issues/927

                                    I have updated the "Using Arduino " page. I am not 100% sure I got it right and easy to understand so feedback is very welcome.

                                    rejoe2R Offline
                                    rejoe2R Offline
                                    rejoe2
                                    wrote on last edited by
                                    #24

                                    @mfalkvidd
                                    Your understanding of my suggestion seems to be 100% correct. I will add some additional comments and some (too complicated but working examples) as links at the github page.

                                    Controller: FHEM; MySensors: 2.3.1, RS485,nRF24,RFM69, serial Gateways

                                    1 Reply Last reply
                                    1
                                    • 3 Offline
                                      3 Offline
                                      3nibble
                                      wrote on last edited by
                                      #25

                                      Hi there,
                                      I am on Linux - exclusively! Does that mean I am out even before I started?
                                      3nibble (puzzled)

                                      1 Reply Last reply
                                      0
                                      • N Offline
                                        N Offline
                                        napo7
                                        Hardware Contributor
                                        wrote on last edited by
                                        #26

                                        You're not !
                                        I'm also exclusively on linux, and I use MySensors !
                                        I was using Arduino IDE, and now I'm using atom.io, but both are working on linux !

                                        1 Reply Last reply
                                        1
                                        • K Offline
                                          K Offline
                                          kayani009
                                          wrote on last edited by
                                          #27

                                          hi i am using Lora SX1276 as simple transmitter and receiver.
                                          is there any library for sending and receiving the data no gateway involved only simple data transmission and reception.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          16

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          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