Hardware Reference
In-Depth Information
A simple exercise tool using the
Raspberry Pi
In this task, we will review a fun example that enables a person to be physically acive every
60 minutes.
Prepare for lift off
This example is based on the Twisted framework discussed in the previous project. It would
be great to have two Raspberry Pi boards (set up with the SD card images and powered
up) or an Arduino Ethernet board. A laptop that is connected to the same network as the
Raspberry Pi is just as sufficient.
If you missed installing the Twisted framework in the previous project, the Twisted
framework can be installed as follows:
sudo apt-get install python-twisted
If the second device is a Raspberry Pi or a laptop that runs Linux,
Mac, or Windows operaing systems, the Twisted framework needs
to be installed on the second device as well.
Engage thrusters
1.
Let's perform a quick review of what we will build in this project:
Let's consider two devices that can be connected to a network. One of the
devices is a Raspberry Pi while the other device could either be an Arduino
or a Raspberry Pi. We will review the code required to build this tool for
both cases.
These devices have to be installed at two extreme corners inside a house.
This can be different floors of the house or the farthest corners of the house.
A buzzer and a button will be connected to a Raspberry Pi.
The buzzer would go off every 60 minutes on one of the devices. Someone
has to walk up to the device and turn off the buzzer by pressing a button.
This enables a person to get some physical acivity by walking back and forth
between the two devices (assuming the Raspberry Pi devices are installed far away
from the person in the interest of gaining some physical acivity).
 
Search WWH ::




Custom Search