Program the Linkit One Using a Raspberry PI

by appytechie in Circuits > Microcontrollers

3396 Views, 56 Favorites, 0 Comments

Program the Linkit One Using a Raspberry PI

IMG_20151222_104032.jpg
IMG_20151222_103855.jpg

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.

Components

IMG_20151222_103856.jpg

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

Setting Up the Raspberry Pi

IMG_20151222_104029.jpg

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.

Installling the Arduino IDE

IMG_20151222_103858.jpg

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.

Serial Consloe

IMG_20151222_103849.jpg

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

Connecting

IMG_20151222_104026.jpg

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.