Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (30 sloc) 2.2 KB

The EV3 IoT Train Dashboard

I like to use 'MQTT Dash' to create nice MQTT dashboards on my Android devices. It's very easy to use and offers several types of widgets that suit my needs. It also works fine with my 'mosquitto' brokers (on my laptop running Ubuntu linux, on my EV3 running ev3dev and also ''). The only feature that I really miss is an "export/import" option so I would not need to recreate it when I switch to another Android device.

For my EV3 LEGO IoT Train dashboard I added 5 widgets:


For this I only needed two type of widgets:

  • a 'Range/progress' for 'Speed'
  • 4 'Switch/button' for 'Forward', 'Stop', 'Backward' and 'B&F'

The 'Range/progress' widget works like an analog 'dial' button, showing the current value in a graphical way and and also allowing us to change it.

Speed Dial

We just configure the proper topic ('JorgePe/Speed') and the range ('0.0' to '1023.0' with a precision '0' meaning no decimal digits) and a progress color that suites our style preferences.

The 'Switch/button' widget in this dashboard is configured as a button for the 'Forward' / 'Backward' / 'Stop' controls and as a switch for the 'B&F' mode.

To use as a button, we chose the same payload and icon for the 'On' and 'Off' states:

Forward Button

so the payloads will be:

  • 'F' for the 'Forward' button
  • 'S' for the 'Stop' button
  • 'B' for the 'Backward' button

and the icons will be the ones that we find more conveniant from the dozens available (too bad we cannot import our owns but there are really lots of usefull included with the App)

And to use as a switch we chose different patloads and icons for the 'On' and 'Off' states:

  • 'T' for 'True' meaning the Train should move 'Back and Forth'
  • 'F' for 'False' meaning the Train should stop when reaching and end of the track

Back'n Forth Switch

You can’t perform that action at this time.