Module 2. Raspberry Pi, Phython Development

Module II. Raspberry Pi, Python Development








1. Intro: What is the learning module about? For whom is it of interest? How will you learn?

This module is about Raspberry Pi device and Python development in order to interact with the the sensors installed in the Plant. It will be described how to work with this small computer and how to develop software to interact with the sensors and mechanism previously installed.

As the level of software development at this point is not very high , this is interested for the following courses (Spanish Vocational Education and Training Specialities).

  • Technician in Telecommunications Installations (EQF4)

  • Technician in Microcomputer Systems and Networks (EQF4)

  • Higher Technician in Development of Web Applications  (EQF5)

  • Higher Technician in Multi-platform Applications Development (EQF5)

For those courses with non previous knowledge in software development It is required to give an extra introduction about programming basics and Linux OS commands.


In other countries, this also is to the interest of all the specialities related with electronics, and IT.


Once the devices are connected and installed (Module I), it is time to interact with them.


At this point the first goal will be testing all the sensors with their current data through the Python development.


So the steps will be :

  • Configuring and testing python.

  • Obtaining libraries to connect with sensors

  • Writing connection to sensors with python.

  • Showing results in console




2. Scenario: Narrative task which is presented in an authentic situation.

  • Raspberry Pi . Basics

  • Python IDLE (Hello world)

  • Adding sensors libraries to the project

  • Testing sensor with code

The knowledge learned in this module will be used for the global project Plant Irrigation. Using Raspberry Pi give us a powerful tool which allows future students and teacher to develop and increment the final project easily and scalable. I.E. Adding more sensors.




3. Development of the concrete tasks, the work plan, (international) division of work, ways of collaboration (Multidisciplinary or multinational) problem solving, implementation of the tasks




TASK 1 Raspberry Pi . Basics

Configure Raspberry Pi 3 with Rasbian OS.

Professional Competences:
- Use basic digital, analogue, and electromechanical components.
- Linux commands

The Raspberry Pi is a small compute.. You plug it into a monitor and attach a keyboard and mouse.

Requirements for the Task:


A Raspberry Pi computer with an SD card

A monitor with a cable (and, if needed, an HDMI adaptor)

A USB keyboard and mouse

A power supply

Headphones or speakers (optional)

An ethernet cable (optional)


Raspbian, installed via NOOBS

Installing Raspbian with NOOBS

Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware.


HW Requirements: Micro SD card with NOOBS (New Out Of Box Software)
Using NOOBS is the easiest way to install Raspbian on your SD card.

Downloads NOOBS in :


Follow the instructions



Rasberry Pi. Hardware Basic Knowledge: