By dave | July 11, 2019

Serial remote plug-in for tcMenu library

In this guide we show how to setup and use the serial communication remote plugin for tcMenu. It is a general purpose Serial plugin that has been tested with both USBSerial and Bluetooth on a number of different devices.

Serial is probably about the easiest remote to set up in terms of hardware and software. Nearly all Arduino boards have a built in USB Serial adapter. On many Arduino boards there are additional Serial interfaces, usually named Serial1 and Serial2. Check your board for compatibility.

If you would like to use bluetooth instead, then you’ll need to have an extra Serial port on your board. Connecting serial devices is simple, just wire up the Rx and Tx connectors as recommended for your board. Note: If you are connecting a 3.3V Bluetooth module to a 5V board, don’t forget level shifters!

Configuring Serial connectivity

First, ensure your menu structure is saved and then choose Code -> Generate Code from the menu. Once the code generation dialog appears, to the right of the current remote type will be a button named “Change”. Click this button and choose:

Serial remote choice in designer UI

Serial remote choice in designer UI

SERIAL_PORT parameter

The only parameter for serial is the name of the port to be used, if you are using the default USB Serial port it will nearly always be Serial. Otherwise choose the serial port instance for the hardware that you have.

Requirements in your sketch

You must call begin on your serial port setting the desired speed before the setupMenu call. There are no other requirements of this plugin.

Back to tcMenu main page

Other pages within this category

comments powered by Disqus

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.