Lab 2

Second Lab: Raspberry Pi

This week we will talk about the part of the lab on the Raspberry Pi. The objectives of the lab were to discover and become familiar with the LINUX interface of the Raspberry Pi. We learned to use the inputs and the digital outputs of the Raspberry Pi (GPIO). The final goal of the lab was to blink a LED.

The first manipulation was to find the IP address of the Raspberry Pi that we will use. For that, the Raspberry Pi was connected to a switch that was connected to a DHCP server. The switch was also connected to our PC to enable us to communicate with the board. The DHCP server allows to give IP addresses to computers that connect to the network. We tried different IP addresses to find the right card because another group used the same switch.

We used PuTTY to control the card. PuTTY is a terminal emulator which supports SSH protocol among other. During this lab, we navigate in the interface to display the directories and files that were already on the Raspberry Pi. “ls” and “cd” commands were permitted to see and access the appropriate directories.

Then, we created a directory (labo) with the “mkdir” command. In this one, we created a file (fichier) with the “touch” command. The “rm” command delete a directory. With the “vi” command, we can create and open a file.

In this file, we tried to create a text to learn the basics of writing. This writing phase was quite disconcerting at the beginning. To begin to write, you have to press “i”. To quit the file, you need to type “:q”. To save the file, you need to type “:w”.

The last part of the lab was to blink a LED placed on a breadboard. For this manipulation, we typed code lines in python directly in the virtual console. After, we typed this code in a file to save it. Unfortunately, we were not able to blink the LED because we had a library problem. Some functions were not recognized. Despite this, we learned the basics of using a Raspberry Pi.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s