Real-time Linux (Xenomai)

 Radboud University Nijmegen

Exercise #11: Programmable LED Clock


Note: This exercise cannot be done on a simulated version of Xenomai in VMware, but only on a real hardware platform, and you need an adapted Fascinations XP3 Ultra clock.

Introduction

Programmable LED clockIn previous exercises we learned how to program realtime programs with Xenomai. In this exercise we want you to use the learned techniques to program a piece of real hardware : a programmable LED clock.


Objectives

The primary objectives of this exercise are:



Description

The company "Fascinations" makes a programmable LED clock : the Fascinations XP3 Ultra. There is an description of the science of this clock at the Fascinations website.

clock and pendulem                                pendulum 
 
 D0
 D1
 D2
 D3
 D4
 D5
 D6





The clock exist of the following hardware :
Technical details :


Exercises

Exercise 11a.

Write a program to write a X on the LED clock. To keep it simple only write the X when the pendulum is going from left to right.

Exercise 11b.

Center the X.
To do this you need to calculate the light sensor delay!

Exercise 11c.

Write a program which  writes the X in the center both when the pendulum is going from left to right and going from right to left.


Last Updated: 9 October 2008 (Harco Kuppens)
Created by: Harco Kuppens
h.kuppens@cs.ru.nl