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. Troubleshooting
  3. LCD display for MQTT gateway

LCD display for MQTT gateway

Scheduled Pinned Locked Moved Troubleshooting
4 Posts 3 Posters 1.9k 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.
  • J Offline
    J Offline
    Johan
    wrote on last edited by
    #1

    Hi

    I have a MQTT gateway on an Uno with the ethernet shield up and running. I works just fine getting sensor data and forwarding them to the Openhab controller. I run OSX, have Arduino IDE 1.6.4, and MySensors 1.5. But I had to remove the Liquid Display library from MySensors as I got a duplicate library error when trying to use the LCD.

    Now I am trying to get two sensor nodes to communicate with each other without luck. I thought that it would be nice if the gateway had a display where the MQTT messages are shown as they fly by. I only have a "Arduino starter kit" display with 16 x 2 characters but it is better than nothing as I only want to see the messages.

    My problem is that when I add this display to my Uno it does not output anything at all. It lights up but no text. I have succeeded with uploading a sketch with only the display code and that works, so the wirings seem fine.
    I have also commented out the definitions for the extra blinking led displays that is in the example sketch for the MQTT gateway.

    I'm using pin 12, 11, 10, 4, 3, 2 as the Arduino LCD examples does.
    Is there something I have missed in the MySensors library that disturbs the LCD to not work? Or is it the Ethernet shield that uses the pins so they are occupied?

    Any tips or suggestions would be much appreciated.

    /Johan

    1 Reply Last reply
    0
    • E Offline
      E Offline
      ericvdb
      wrote on last edited by ericvdb
      #2

      12, 11 and 10 are used by the ethernetshield for the SPI bus. You should use other pins for the lcd display.

      1 Reply Last reply
      0
      • J Offline
        J Offline
        Johan
        wrote on last edited by
        #3

        That explains a lot. :)

        I moved the 12 and 11 pins to 9 and 8 and it works! Thanks for the tip! :)

        /Johan

        1 Reply Last reply
        0
        • Mitch1793M Offline
          Mitch1793M Offline
          Mitch1793
          wrote on last edited by
          #4

          Hi guys,
          I know this is quite old and I apologise for reopening I'm just wondering if there's a piece of example code for this concept?
          And if it would be possible to show any error states on here like failed connection to the MQTT server or if a node isn't able to be 'pinged' I guess you could say?

          Cheers!

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


          17

          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