A workshop later…

Posted: December 1, 2014 in General

I’ve been progressing well with the Pi-Kitchen, however I put development on hold for a week while I got ready for the @Bristol Digimakers event.

Python Pirate Digimakers

Python Pirate Workshop for Digimakers November 2014


The workshop had a pirate theme, although the plans went well, the workshop was far too long to fit comfortably in the allotted hour.  Added to the lessons learnt, I know to adjust things next time.  I think everyone enjoyed it anyway and many thanks to all that came along, it was a fantastic day.

However, I hope the workshop materials will make a good on-line resource, details of which are now available:

Lessons -> Pi-Stop Workshops -> Legend of the Python Pirate

It provides details on running it as the full workshop (which had simulated lighthouses displaying the signals) as well as a version which has all the signals and codes ready on the treasure map so you don’t need the lighthouses.

Kudos to those who already knew all about Morse code too!  Very impressed.

Set-up of the workshop was greatly helped by having the Pi-Kitchen on hand to automatically set-up the four lighthouses with preconfigured scripts running on power-up (details will be in the next recipe..just a few tweaks to be made first).


Also, the majority of this Raspberry Pi Python workshop was written using an Arduino Nano…one loaded with Brian Lavery’s Virtual GPIO, which allowed me to write and test the Python scripts directly on a PC.  The same Python scripts can then be run on a Raspberry Pi without any modifications!

Arduino Nano + mini-USB + Pi-Stop + Laptop = Easy Development!

Arduino Nano + mini-USB + Pi-Stop + Laptop = Easy Development!

The only difference to a standard Raspberry Pi Python script is shown below.  This detects if the RPi.GPIO module is available or not and allows us to set different pins as necessary.

  VIRTUAL = False
  import RPi.GPIO as GPIO
except ImportError:
  VIRTUAL = True
  print (">>>Entering Virtual GPIO Mode")
  import virtGPIO as GPIO

  LED=[4,3,2] #RED, AMBER, GREEN
  # Model+ P1
  # 2[=========XGYR]26
  # 1[=============]25
  LED=[26,24,22] #RED, YELLOW, GREEN

Very useful!

Leave a Reply

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.