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. Controllers
  3. Simple Arduino Controller

Simple Arduino Controller

Scheduled Pinned Locked Moved Controllers
6 Posts 3 Posters 3.0k Views 3 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.
  • Z Offline
    Z Offline
    Zebedee
    wrote on last edited by
    #1

    Hi..

    I have a couple of nodes, and just want to display the node data on an lcd screen attached to my arduino uno gateway.

    I don't really need a full on controller - but to be able to pass back simple switch on/off requests, time/date etc. to the nodes would be useful.

    Is there any how to guides, good examples I can look at to see what I need to do?

    What is the bare minimum I need to implement to function as a controller?

    mfalkviddM 1 Reply Last reply
    0
    • Z Zebedee

      Hi..

      I have a couple of nodes, and just want to display the node data on an lcd screen attached to my arduino uno gateway.

      I don't really need a full on controller - but to be able to pass back simple switch on/off requests, time/date etc. to the nodes would be useful.

      Is there any how to guides, good examples I can look at to see what I need to do?

      What is the bare minimum I need to implement to function as a controller?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @Zebedee maybe https://forum.mysensors.org/topic/1973/esp8266-as-wifi-gateway-controller-node/2 can give some inspiration.

      The API and Serial protocol (available by clicking "Download and API" in the menu at the top of the forum) describes how to communicate with MySensors. I don't think a bare minimum exists - it all depends on which features you want to support.

      1 Reply Last reply
      0
      • FotoFieberF Offline
        FotoFieberF Offline
        FotoFieber
        Hardware Contributor
        wrote on last edited by
        #3

        Do you want to control the nodes from outside (e.g. via MQTT) or will the communication be only inside the mysensors network?

        Implementing a controller on the gateway isn't that simple, as there is no plugin mechanism in the library, where you can extend for example the serial gateway.

        For implementation details you can look at
        https://github.com/mysensors/MySensorsSampleController/blob/master/NodeJsController.js

        It may be easier to have a seperate arduino for the controller and attach a serial gateway. (I am working on a arduino due controller where you can attach up to 3 serial gateways.)

        1 Reply Last reply
        1
        • Z Offline
          Z Offline
          Zebedee
          wrote on last edited by
          #4

          Thanks mfalkvidd - there are a couple of snippets in that code that will be useful, but I need a bit more than he has implemented..

          Hi FotoFieber - for the time being, I don't need MQTT, the only comms will be inside the mysensors network.. I'm familiar with node.js, Python etc. & RPi - maybe in the future I will use a full on controller, but for now I can do it all on 1 Uno..

          I may have to use a seperate Uno for the controller and just parse the serial comms from the gateway, but it seems a (really) simple combined gateway/controller is a missing piece of the mysensors project - reading around, it seems like many people would make use of such a thing, and it would certainly help newbies (such as myself) to mysensors in getting started..

          What I'm trying to do is this:

          1 x node, sending temp, humidity etc. (tx only)
          2 x node serving as heating controllers (tx temp, rx heat on/off)
          1 x gateway/controller wih RTC, display and input buttons, to show tempertures, turn heating on/off according to temp, schedule etc.

          Really simple, with no need for a full on controller..

          Thanks for all inputs, I could use some arduino code samples for parsing the received messages (at the gateway), and pseudocode for responding to time requests etc.

          1 Reply Last reply
          0
          • FotoFieberF Offline
            FotoFieberF Offline
            FotoFieber
            Hardware Contributor
            wrote on last edited by
            #5

            Here is an example with the old library. Parsing should be compatible but the rest will not work with 2.1

            https://github.com/ntruchsess/MySensors/tree/mqttclient/libraries/MySensors/examples/MQTTClientGateway

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              Zebedee
              wrote on last edited by
              #6

              Thanks for that FotoFieber - a useful find.. if I can find some matching server code, I'll be able to convert the useful bits to do what I need.

              I'll keep this thread updated, hopefully it will be useful to anyone else wanting the same thing.

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


              20

              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