Exercise List

Here is a list of exercises to be solved during the course.

We first play on the Linux system installed on the Lab PCs, then we write a few simple C programs and their associated Makefiles before exploring the Raspberry Pi and its tools.

Finally we have a look at libraries that allow us to easily interface external hardware. A bread board is used to set up small electronic circuits with sensors and actuators that allow us to acquire data like

  • temperature, humidity air pressure in digital or analogue form
  • read any kind of electric signal through analogue to digital conversion
  • time
  • motor speed and angular position
  • read switch positions
or control
  • LEDs
  • motors
  • displays etc.
Two libraries giving access to the GPIO pins and the I2C and SPI busses: wiringpi and pigpio.

A look at both libraries finds the pigpio to be more complete. This library comes in 2 versions: Either you directly access the hardware through pigpio calls, in which case you must be the root user, or you can (as root user) start the pigpiod daemon and the communicate with it (as normal user) through a socket interface. Since sockets can run over the network you can also run your program on your PC and use the daemon on the Raspberry Pi only to access the hardware.

Here is the list of exercises:

-- Isaac Armah-Mensah - 2018-09-13


Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2018-11-29 - IsaacArmahMensah
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback