Introduction: Program the Linkit One Using a Raspberry PI
In this instructable, I'm going to show you how to program the Linktit One board using a Raspberry Pi, and also establish serial communication with it. This instructable shows you how to make a micro controller (Linkit One) and a microprocessor (Raspberry Pi) work together, you can send live data from the Linkit One to be processed with the raspberry pi as it is a more powerful micro processor.
Step 1: Components
So lets start with gathering all the components and tools required for this project. Most of the components come along the LinkIt one box, like battery and WiFi antenna. So here is what you need -
- LinkIt One
- Raspberry Pi
- Two Micro USB Cable
Step 2: Setting Up the Raspberry Pi
To proceed with this tutorial you need a active internet connection to download the arduino IDE, you also need to have root access to the Rapsberry Pi.
For internet access I have the Raspberry Pi hooked up to to my router using a standard Ethernet cable, you could also use a USB WiFi Module, but make sure you have the necessary software installed.
Step 3: Installling the Arduino IDE
No its time to install y the arduino IDE, the IDE can be installed by typing the following commands in a terminal window -
$ sudo apt-get update
$ sudo apt-get install arduino
Next install the Linkit One add on this can be done that same way you would do on a Mac or a PC.
Step 4: Serial Consloe
Since we will be plugging the Linkit one via USB we need to disable the serial console to be able to upload code to the Linktit One, this can be done by entering the following commands.
$ wget https://github.com/wyolum/alamode/blob/master/bun...
/alamode-setup.tar.gz?raw=true -O alamode-setup.tar.gz
$ tar -xvzf alamode-setup.tar.gz
$ cd alamode-setup
$ sudo ./setup
After the installation you need to reboot your Raspberry PI
$ sudo reboot
Step 5: Connecting
You can now connect your Linkit One to the raspberry pi and make sure you select the right board from the tools menu and you can upload code to the to the Linktit One board.