We have a remote control driver for tcMenu that can be configured to easily work with SimHub dash. It requires at least 1.5.0 of tcMenu, and a version of SimHub that supports custom serial devices. We only recommend this integration for intermediate to advanced Arduino users, it requires a greater understanding of the underlying system to set it up.
Please note that we are not affiliated in any way with SimHub, any issues with SimHub should be reported as usual, and any issues with TcMenu integration should be reported to us.
So why would you use tcMenu SimHub connector instead of the inbuilt SimHub Arduino support? You get more control of the rendering, more input options, and it supports nearly all boards, including AVR/Uno/Mega , SAMD/MKR, ESP8266, ESP32, mbed RTOS, and soon Nano 33 sense BLE. The cost of this is slightly more complexity. This connector is in BETA at the moment while we get everything up to scratch.
First, ensure your menu structure is saved and then choose Code -> Generate Code from the menu. Once the code generation dialog appears, change the remote control type by clicking on “click to change”, and then choose the SimHub connector from the popup:
Once selected, it will be shown as the new remote control configuration as follows:
This is the port on which you will communicate with SimHub. It can be any serial port available on the device, and will default to Serial. It is your responsibility to initialise the port (usually by calling begin with the right baud).
Optionally, you can provide a menu item that should be updated with the connection status. It should be a BooleanMenuItem and it will be updated whenever there is a change in connectivity.
We configure the custom protocol within the SimHub custom serial settings, and it is essential that you read through the information provided there. To start with we’ll setup at “hello” and “goodbye” message. Once that is done, we’ll normally add several messages that will update various menu items when they change. This plugin is currently in early release and only supports low update speeds, there will soon be a high refresh rate version of tcMenu.
setup()
, Note down the baud rate to use the same baud in later steps. For example: Serial.begin(115200);
'simhubStart\n'
'simhubEnd\n'
We can map any SimHub statistic to a menu item, for each SimHub statistic that we are interested in, we need a MenuItem of the right type, and we need to know the menu item’s ID. To create a mapping between SimHub and tcMenu, start by adding a new “Update message” with a refresh rate, at the moment choose no more than 10 per second (soon we’ll provide higher refresh rates). Now we need to set the “Update message” formula, these all follow the same format. '<menuId>=' + [simhubValue] + '\n'
.
So for example if we wanted to map GameRPM
to menu item with ID 1: '1=' + [GameRPM] + '\n'
. Upon reception of this message tcMenu would look for the menu with ID 1, it would then try to apply the received value to the message.
You should be aware that many displays connected to Arduino boards are not capable of extremely high refresh rates, maybe 15-25 refreshes a second will be possible with most, but even this will require considerable setup. This is not a limitation of tcMenu, it’s a limitation of the display technologies typically used with Arduino devices.
For example an i2c OLED 128x64 display running on a high speed bus, may reach around 30hz refresh, but a large colour display running on an 8 bit Arduino will struggle to refresh quickly depending on which library you use. LiquidCrystal displays, although they could technically refresh more rapidly, look pretty bad when refreshing more than a few times a second.