Friday, 16 May 2014

Custard Pi 8 project for the Raspberry Pi - Electronic Dice

This project is ideal for schools and colleges to demonstrate using the Raspberry Pi in an electronics project. It uses the GPIO and also can be used to teach students to solder conventional and SMT devices as well as wires.

The Custard Pi 8 is a blank PCB that can be used for both conventional 'through-hole' components as well as 'surface mounted devices'. It has a position for a 26 way connector to the GPIO of the Raspberry Pi. The PCB is shown below.

Here is the wiring for the 7-segment display that we are going to use to display the digits 1 to 6 of the electronic dice.

Below is the way the above GPIO pins connect to the Raspberry Pi GPIO.

Pin 7 ------- GPIO 4
Pin 22 ------ GPIO 25
Pin 18 ------  GPIO 24
Pin 16 ------  GPIO 23
Pin 15 ------  GPIO 22
Pin 13 ------  GPIO 27
Pin 12 ------ GPIO 18
Pin 11 ------ GPIO 17

Below are some images of the soldered board. This uses 150 ohm surface mounted resistors as well as a 'through - hole' 7-segment display. This is very useful to teach budding electronic engineering students about soldering these different types of components.

Unlike projects using prototyping boards that have to be dismantled after the project, the student can take this circuit away with them.

 Finally, the Python code for the Electronic Dice project.

Just download this to the raspberry Pi and rename it

The Custard Pi 8 bare PCB is available from SF Innovations

For further information just e-mail

No comments:

Post a Comment