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. General Discussion
  3. Arduino UNO + serial gateway

Arduino UNO + serial gateway

Scheduled Pinned Locked Moved General Discussion
12 Posts 3 Posters 5.4k Views 4 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
    erangel
    wrote on last edited by
    #1

    Hi, it is my first post in forum.

    I have a raspberryPi 2 and an arduino UNO with a relay module. I am a newbie with arudino, but I am a developer with more 10 years experience.

    I want to connect raspberryPi to arduino using just a USB serial cable. My intention is automate house like turn on/off lights, to open gates and in the future, measure consumption of water and energy.

    I downloaded the libraries from MySensors, and I am using serial gateway. I compiled and did upload to arduino, but when I check a serial monitor, the output is:

    0;0;3;0;9;check wires

    I do not know what is this problem. Someone can help me ?

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #2

      It means that your radio isn't connected correctly to the Arduino.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        erangel
        wrote on last edited by
        #3

        I don't have radio. Because this, I just want to use serial usb.

        1 Reply Last reply
        0
        • hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #4

          Then you must use the development branch.

          1 Reply Last reply
          0
          • E Offline
            E Offline
            erangel
            wrote on last edited by
            #5

            Thanks for information. I downloaded the development branch, but the SerialGateway is "empty". Is it correct ? The version 1.5 is compatible ?

            1 Reply Last reply
            0
            • G Offline
              G Offline
              georgep56
              wrote on last edited by
              #6

              If you mean that there is no code in setup{} or loop{} then yes, that is correct.
              The new development branch code works differently.

              1 Reply Last reply
              0
              • E Offline
                E Offline
                erangel
                wrote on last edited by
                #7

                How can I take some sample to create a relay actuator using the development version ? Do you have some documentation of this version ?

                1 Reply Last reply
                0
                • hekH Offline
                  hekH Offline
                  hek
                  Admin
                  wrote on last edited by
                  #8

                  All the examples has been converted. Among them is the RelayActuator. But instead of defining MY_RADIO_NRF24 you must enable the serial gateway by defining MY_GATEWAY_SERIAL

                  So basically only one little change.

                  1 Reply Last reply
                  0
                  • E Offline
                    E Offline
                    erangel
                    wrote on last edited by
                    #9

                    Tks Hek!

                    I changed the source, but now I do not compile the code.

                    Do you know what is that ?

                    MyGatewayTransport.cpp:In function 'void gatewayTransportProcess()
                    MyGatewayTransport.cpp:54:16: error: cannot resolve overloaded function 'receive' based on conversion to type 'bool
                    :if (receive) {
                    Error compiling project sources

                    I am using RelayActuator.

                    1 Reply Last reply
                    0
                    • hekH Offline
                      hekH Offline
                      hek
                      Admin
                      wrote on last edited by
                      #10

                      Just tried it here and I'm not getting any errors here when compiling.. You must be doing something wrong.

                      1 Reply Last reply
                      0
                      • E Offline
                        E Offline
                        erangel
                        wrote on last edited by
                        #11

                        @hek said:

                        MY_GATEWAY_SERIAL

                        Hi @hek!

                        Do you know if the feature - MY_GATEWAY_SERIAL - it is in 1.5 version ? Or jut in development ?

                        1 Reply Last reply
                        0
                        • hekH Offline
                          hekH Offline
                          hek
                          Admin
                          wrote on last edited by
                          #12

                          It is a development branch define.

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


                          15

                          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