Applications for the Raspberry Pi
based on the berry-framework
- Click on a link to download a Berry ZIP archive.
- Unzip into your BERRY_HOME directory.
- At the command line call berry xxx where xxx is the name of the Berry.
Which buttons must be pressed to switch all LEDs on?
A nice game where circularly arranged buttons control corresponding lights.
Be warned: The buttons seem to have there own idea of which LED they want
This a simple extension of ``Hello``. Change the assignment between buttons
and LEDs, add/remove a button etc. to understand the mechanics of a HWD file.
A Cuckoo Clock
Plays various melodies, monitors brightness,
controls a motor to move the cuckoo forth and back,
offers alarm settings.
Using buttons with delay effects - what do they do exactly?
There is a subtle difference between delays which are bound to a button press event
and delays which are bound to the button itself. The difference becomes evident
when you press a button while a delay action has already been scheduled.
Electronic engineers call this the re-triggering behavior of an action.
Accessing various hardware devices attached to GPIO pins
This berry shows how to control
- a LED strip
- a motion detector
- a hardware PWM controlled servo
- a 1-wire sensor
Push a button to light a LED
This is the 'Hello World App' for Raspberry Pi computers.
It demonstrates how multiple web clients and a physical
push button connected to a GPIO can produce events which change
the state of a physical LED attached to a GPIO and of all
its virtual representations in connected web clients.
Have fun with a light sword!
is kind of a sceptre which consists of
- a handle
- a folded LED strip where each of the ~40 LEDs can be controlled individually
- a sound module (incl. microphone)
- a motion sensor (acceleration and position)
- some push buttons
The Sword comes with a variety of functions like producing light effects,
playing sounds, showing a digital clock, simulating balances, simulating
a traffic light system, audio pitch detection, generating Morse codes etc.
Read One-Wire sensors for temperature and more
This example shows how a (temperature) value can be constantly
monitored and how HWD declarations can be used to define ranges
of desired values.
These definitions include the ability to control
LEDs which indicate "too low / ok / too high" temperature.