How to set up the Touch Board with the Arduino IDE
Discover how to set up the Touch Board with the Arduino IDE
The Touch Board is based on the Arduino Leonardo and has been designed to work with Arduino’s integrated development environment or IDE software. The board comes with pre-installed with the Touch_MP3 code, but if you want to change or modify the code you need to use the Arduino IDE. This tutorial takes you through the Arduino IDE setup step by step and shows you how to upload an Arduino sketch to the Touch Board.
Step 1 Install the Arduino IDE
First, download the Arduino IDE from the Arduino website. Make sure to use the latest Arduino version. Once you’ve downloaded the Arduino IDE, save it to your Applications folder on macOS or run the installer on Windows. The Touch Board doesn’t work with the Arduino web editor.
Please note that for Windows the Arduino IDE needs to be installed from the Arduino Website and not from the Windows App Store.
Open the Arduino IDE once and close it again. This generates the necessary Arduino folders in your Documents folder.
Step 2 Download the Touch Board Installer
We have created an installer for each operating system which will add the files needed to the Arduino library. You can download the correct installer for your operating system from the links below:
Step 3 Run the installer
If you have the Touch Board plugged into your computer, please unplug it before continuing. Locate the installer that you have downloaded, unzip it, and double-
For macOS users, this is a straightforward process and you do not need to take any special steps, apart from giving some permission access.
Windows users may need to approve the program to run when they first double-click it, and then later approve the installation of a small driver so that Windows understands how to talk to the Touch Board.
Linux users will have to enter their password to approve the addition of a rule, to ensure that the operating system does not accidentally try to use the Touch Board as a USB modem. You will also need to restart Linux after the installer is finished.
Step 4 Upload the code
Open the Arduino IDE and select the Arduino project Touch_MP3:
File→Sketchbook→Touch Board Examples→Touch_MP3
Then, connect your Touch Board to your computer and turn the board on. On Windows, you may now see a message pop up telling you that a driver is being installed. Give this a minute or two to settle – it may even say that installation has failed initially, before finally sorting itself out.
In the Arduino IDE, select the Touch Board from Tools→Board. Additionally, in the Tools→Port menu, search for the ports labelled “Bare Conductive Touch Board”. In Linux and on Mac, there may be several options: choose the one that has CU in the name. In Windows, there should be one COM port labelled “Bare Conductive Touch Board” – choose this.
With the board selected twice, click on the upload button. Give it a bit of time to upload, it will say “Done uploading.” when it’s done. You can also tell by checking the Touch Board, once the LED stops flashing, the Touch Board has uploaded the code.
On Windows machines, you may now see another attempt to install a driver, which most likely will appear to fail and the upload will fail too. Again, give this a minute to settle and try again – this will only happen the first time.
Step 5 Next steps
Now that you know how to upload projects to the Touch Board, you can explore the whole range of example codes we provide or write your own file!
If you want to learn about the serial monitor or if you run into any issues, click here for the Touch Board Troubleshooting Guide or read the FAQs. If you get stuck, contact us on firstname.lastname@example.org.
We also want to thank BitRock for their support, who make the excellent InstallBuilder, which we used to create our installer for you. Even better, they generously gave us a free license for it because we distribute open source software!