Home Table of Contents Previous week Next week


This page presents the assignments for week 12 of Fab Academy 2020: “Interface and Application Programming”.


To do list:



Group Individual

Week 12 files:

Serial_test_pololu.ino (modified work from Polulu LSM303 sensor libraries)

Arduino_Compass.pde (work from Dejan Nedelkovski, howtomechatronics.com,details inside)

Background.png (own work)

Compass.png (own work)

CompassArrow.png (own work)



Week 12 "hero shot":


Figure 0: Compass application interfacing Polulu IMU sensor

Table of Contents

Group assignment

Individual assignment

Create an interface for a device you made

My goal for this assignment is to create an application to interface the user with the Polulu IMU.

After some research, I found this tutorial, explaining how to use processing IDE and arduino software to create an application interfacing an HMC5883L sensor.

The source code is freely available on the article, providing you give your email adress and accept to receive some news from the author.

It provides

The board I made during week 8 use a LSM303 sensor.

I have changed the .ino to read data from LSM303 sensor.

I keep the same .pde file as in the tutorial.

"How to mechatronic" compass application

I obtain the expected result with the board I made during week 8.







Moving the sensor to move the compass on screen

Customized compass application

I use my own images but with the same sizes and names as the ones from the tutorial.


Custom background image for the application


Custom rotating compass image for the application


Custom compass arrow image for the application








Moving the sensor to move the compass on screen

Create an interface for a commercial device

Covid lockdown work

Video 1 shows APM2 interface when connected to Navio2 hat via UDP







Video 1: APM2 user interface to Navio


The interface allows the user to visualize the drone attitude (position and orientation).