Thunkable Community

If you have any questions about the Arduino USB Serial extension then head on over to the Thunkable Community where you’ll find lots of amazing people who are happy to help you out.

Blocks

Starting a Connection

Transmit and Receive Data

Once the connection has been established you can read data from the Arduino and write data to it via the read and write blocks.

Note that the default baud rate is 9600 bps.

Managing the Connection

You can open and close the connection with the open and close blocks.

Misc

Troubleshooting

Here are a few screenshots to help you out with some common errors that can occur when using this extension. If you encounter any more please get in touch.

Configuration

Make sure that you are using the USB Media Transfer Protocol when that Arduino is connected to your phone. The exact location will vary from phone to phone, but if you search in Settings for “USB” you should find it. On many phones, when you connect a USB device it asks you what sort of connection you would like and you can change to MTP at this stage.

Permissions

When you launch the app for the first time you should be asked for permission to access the USB device like so:
If you click “Cancel” the app will not be able to communicate with the Arduino

Runtime Error

This error occurs when the app is unable to communicate with the Arduino.
It can be useful to have some sort of “refresh” button in your app to close and the open the connection to minimise these errors.