No cake for us today …
Myself and Tim Wilson had our first planning meeting for the Raspberry Pi Birthday party back in late December 2017 and after much planning we had brilliant day planned for today. We had an amazing venue, great speakers, awesome workshop facilitators and loads of goodie bags to hand out to people.
We knew the weather was going to be interesting but by the middle of Thursday it looked as if we were going to escape the snow here in Birmingham. And then it came, heavy snow which grid-locked Birmingham for rush hour on Thursday night. Most of the schools in the city were closed on Friday and it continued to snow from Friday lunchtime over night.
After many tweets, emails and phone calls on Friday morning we made the decision to postpone the Birthday Jam.
The good news is that we will be back later in the spring with Birthday Jam 2.0 which we will endeavour to make bigger and better than what we had planned.
This year we performed High School Musical at school, and following the tradition of previous shows I wanted to use a Raspberry Pi as part of the theatre tech.
One of the difficulties of staging shows in our theatre are where to place the band and the musical director. We decided to put the band and MD at the back of the stage in front of our cyclorama. Whilst this sounded very good we found that the cast were missing cues from the MD as they couldn't see him. I was tasked with finding a solution to this problem. After looking at various solutions involving hiring camera systems or using video cameras I decided that I would go for a low-cost Raspberry Pi based solution.
The core of the project is the motion eye home security Pi software.
Installing the SD card is simple (make sure you have the right version for your Pi!) and the front end is very easy to navigate. There are essentially three ways you can view the images:
- locally on a monitor attached to the Pi
- network connection
- wifi connection
The Pi will need to make a network connection for motion eyes to work.
To make the Pi more robust I found two cases on thingiverse and 3D printed them to make a traditional style camera.
Testing the camera in my classroom was fun when my class walked in to see monitors all around the room displaying the same video feed they couldn't work out how I was doing it.
We did notice a very small amount of lag on the streamed video signal which I decided would be good enough for me to have up in the control room but wouldn't be good enough for the 'live' feed at the front of the stage. To improve the lag time I ended up buying a relatively cheap HDMI splitter which handily was powered by a 5V usb cable straight from the Pi. Using approximately 30m of HDMI cable I ran the video feed to the front of the stage. Additional monitors were connected to the splitter on stage for the musicians.
Pi camera at the back of the stage
Live video (over HDMI)
This camera based system will now be a permanent fixture of all shows we now do. Ideally I will make the cabling permanent and mount the camera somewhere suitable.
The finished rig consists of:
- Raspberry Pi 3 with camera in 3D printed case
- HDMI splitter (http://amzn.to/2v39aAz £13.99)
- (Old) wifi router
- (Old) TV for front of stage
- monitors on stage
- Laptops / tablets / phones etc to view video feed from around the stage
For a relatively cheap build I was really pleased with the final project. The Raspberry Pi camera worked perfectly for the rehearsals and shows. I was asked many times by people how I was able to get the video to the front of the stage and to the control room. This gave me many good opportunities to talk to people about the Raspberry Pi too!
If I had more time ….
We made quite a bit of use of cheap (and I mean cheap) LED strips to mark the outline shape of part of the basketball court. If I had more time I would have used a Pi to control them. Next year we are probably doing Return to the Forbidden planet and I think the Pi will definitely feature in that!
Making an interactive Science Quiz using bareconductive.com Pi CAP board
Last month the team over at bareconductive.com kindly sent me a Pi CAP to experiment with. As revision is now upon us I decided to use it to make a revision aid for year 11 to help with their GCSE Physics exam.
The Pi CAP adds high resolution capacitive touch, distance sensors and high quality audio to your Raspberry Pi. Using electric paint you can easily connect the physical world to the Raspberry Pi.
I wanted to use specifically the capacitive touch with this project but have further ideas to extend it using the audio output too.
The conductive electric paint was 'interesting' to use and I forgot several times that it actually was paint, but it is water soluble!
Creating my quiz
I started by producing my quiz board with a track of electric paint running from each answer to the respective connectors on the Pi CAP. I decided that I would 'cold solder' the terminals straight onto the paper to make this a more permanent resource.
The code was relatively straight forward and I based my quiz on the sample simple touch python script.
I wrote a simple function which gets sent the expected touch number and checks to see if it has been pressed and returns a value of True or False.
I then wrote a series of questions. To avoid issues of letting go of the touch pad being identified as an answer I called the function again after each question but checked to see if the answer was 99. This was then ignored by the function and exited.
The whole code can be found here
The Raspberry Pi 5th birthday weekend was a fantastic event and really showed off the best that the community has to offer.
To run such a big event the Foundation called out to its biggest resource for help ….
The community pitched in and over the weekend nearly forty volunteers helped out across all areas of the event.
I ended up working in my favourite spot - on the stage helping organise the tech for the speakers and presenters. I also got to run a workshop and take part in a panel discussion.
A special moment of the weekend for me had to be when Philip Colligan called me onto stage during his keynote presentation.
Sadly, I seem to work in a school where praise is very thin on the ground. We definitely praise the students lots and reward their achievements but very rarely say well done to the staff.
A huge number of people contribute so much to the work of the Foundation and we do it for many reasons.
At the heart of it for me is a passion to share this technology and to use it to enrich the lives of young people I work with and run workshops for. We definitely don't do it for fame, awards or accolades.
As Philip rightly said, for every one of me there are another 30 doing an amazing and awesome job out there in the community.
So thank you Phil for your kind words to me, but also for really valuing our community!
Watch the entire video below.
I took inspiration from the Wizarding World of Harry Potter for this project build as it combines two of my favourite visual elements from the films, The Weasley's clock and The Marauder's Map. I have called this mashup The Marauder's Clock!
(Photos taken of the original props at the Harry Potter back stage studio tour)
The aim of the project was to build a clock containing the visual elements of both items. To achieve the authentic 'who is at home detection' I used a Raspberry Pi reading WIFI devices. The MAC addresses collected by the Pi were checked against a known list for myself and Philip and used to control the home / away hands on the clock face. I used an Arduino Uno to control the servos and LEDs on the clock face.
There are several different ways that you can connect a Raspberry Pi and Arduino together to share data, you can use USB or make a serial connection. I decided that I would go for a more hardware based approach and used a bank of 3 relays and a Pimoroni Explorer hat to connect the two. I showed a friend the project and he was curious as to why I would use relays for data transfer but another aspect of the project was to use it as a demonstration of data communications between two computers at school. In effect I have built a very simple parallel interface.
The Arduino build:
The Arduino has two servos attached and 4 LEDs. The left hand servo is a positional rotational servo and is used to indicate if the person is home or away. The right hand servo is a full continuous rotation servo and is used to mock up a minute hand which moves every second. I decided that I was going more for visual appeal so the hand moves more than 6 degrees each second.
I use three digital input connections on the Arduino which wait for a switch to be closed. These are activated by 5V relays powered by the Raspberry Pi. The first input checks the status of my mobile phone, the second my sons mobile and thirdly the status of the home internet.
I have used a simple repeating loop to:
Move the second hand for 30 seconds.
Check the status of digital input 1 (my phone) and move the home / away hand accordingly
Move the second hand for 30 seconds
Check the status of digital input 2 (my son's phone) and move the home / away hand accordingly
Move the second hand for 30 seconds
Check the status of digital input 3 (virgin broadband) and move the home / away hand accordingly
The Raspberry Pi build:
The Raspberry Pi zero has a Pimoroni Explorer hat attached which is used to power the 5V relays. The digital output pins on the hat are really just a controllable path to ground and don't actually produce any power which comes from the 5V power out. Using the 5V and these digital 'outputs' I am able to control the power to the relays and subsequently the signal sent to the Arduino.
The Raspberry Pi code is essentially very straight forward. I scan the network with arp-scan and look for two specific devices in the output. Depending on their presence I switch on the output to the various relays.
Building the case
The case is actually a satsuma crate from Tesco which I covered in an shop replica Marauder's map. A 12V power supply is used for the Arduino and the Pi is powered separately. I found that powering the relays and the WIFI was too power heavy to power the Pi off the Arduino, although I might refine that in the future.