The only way I shall acknowledge Christmas before December

So, I have three topics to cover with three different year groups.

Year 9s – intro to python programming
Year 12s – finite state machines
Year 13s – Mealy & Moore machines

And a set of raspberry pis. Enter overexcited teacher.

So as a gentle introduction, welcome to the Christmas Computing Display board idea…

Print out a reindeer picture on card and get out a raspberry pi and the GCSE electronics kit (from Maplins.  Very cool).
image

Connect a 200 resistor to the shorter wire on a red LED.
image

Then make two wires and twist them onto the end of each side of the LED . I could use jumper wires, bit have you seen how much they cost??!

image

To save the pins on the raspberry pis, I’m using a GPIO lead which turns the male pins into female ones wjivh ypu can push the wires into.

These go into pin 25 for the resistor side, and pin 7 for the other.
image

Connect up the pi and set up a python program to set the led to high then low each second (the code comrs from http://www.ocr.org.uk).

image

Next, open a terminal session and type in

sudo python rudolph.py

Get stupidly overexcited when it actually works!
image

Push LED through a small hole in the card for Rudolph’s nose and tape the wire to the back of the card.

image

So, the plan is to duplicate the process with a number of year 9s to create a flashing wall display for the end of term.

Use wall display with year 12s to demonstrate FSMs and give year 13s free range to create their own versions which allow input to create mealy machines.

Today was a good day πŸ™‚

Advertisements

Tell me what you think...

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s