Let’s Start Programming Twin Coding Module with Arduino!
Ready to program the Twin coding module using Arduino? Let’s dive in!
First, download the Arduino application compatible with your operating system from the Arduino website.
Install and Set Up
After installing Arduino, go to the application menu. Select “Arduino Leonardo” from Tools > Board.
Connect Your Arduino
Connect your Arduino to your computer using a USB cable. Then, go back to the tools menu and select your Twin Coding Module under the board section.
Run the Code!
Your Twin Coding Module is ready! Write and upload your code, and you can start using the module with Arduino.
Coding Again with Twin Coding App or Twin Code Lab
After using Arduino for coding, we need to add the Twin libraries to our module to use it again with the Twin Coding mobile app or code.twinscience.com.
Download the Library
Click the button below to download the Twin library.
Add the Library
Navigate to “My Documents” on your computer, and copy-paste the TwinArduinoFirmware file into the Arduino > Library folder.
Upload the Library
Open the Framework folder, click on the “TwinArduinoFirmware.ino” file, and hit the “Upload” button in the top left corner.
Code for Line-Follower Truck
Upgrade your autonomous vehicle to follow lines using the Arduino IDE, instead of the Twin firmware. Download the Line-Follower Truck code from the link below and run the code using the Arduino program.
Note: To reuse the Twin Coding App and Twin Code Lab, download and install the TwinArduinoFirmware file from the above link.Download Sample Code