Raspberry Pi Pokedex

Over the last few weeks I have seen my Philip age 12 really engage for the first time in a digital making project and see it through to completion.

Philip is a year 7 student from Birmingham, my son and an all-round really great kid!

IMG_3848



Quite a few people have asked me which bits I did and which bits were his. Essentially I paid for the components and took him to the marker space to laser cut the case and the rest is his!

A very quick video of Philip (age 12) @raspberrypifoundation powered #pokemon #pokedex

A video posted by MrUkTechReviews (@uktechreviews) on



Over the six weeks school holidays Philip designed, built and programmed a Raspberry Pi powered Pokedex. A Pokedex is an electronic device for storing your Pokemon information in.

His project has two main functions.

- A directory of over 200 Pokemon photos which you recall by typing in their unique Pokemon number.
- A Pokemon Go style function which takes a photo with the Pi camera and then overlays a Pikachu with a transparent background.

The key components used in the construction:

- Raspberry Pi model A+
- An old car reversing monitor for the main display (composite output from the Pi)
- A Nokia 5110 phone screen for additional information
- A 4x4 membrane keypad
- A Raspberry Pi camera

The final project can be found here https://github.com/Flye001/Pokedex

The main code is multi10.py you will also need the libraries for the Nokia display and the keypad. You will also need to set the video output to composite.

IMG_3846


Philip did a fantastic job of speaking about his Pokedex at the Cambridge Raspberry Jam in September 2016. He is such a shy boy so I was very proud to hear him speak.

IMG_3849

Here is a video of Philip speaking about this project.

Touch screen Advent Calendar

I love the anticipation and build up to Christmas (although not when it starts in August!).

I have written a fun little 24 button touchscreen Advent Calendar.

Once a door has been opened an update is made to config.advent. If you want to close a door once opened simply delete the corresponding line from config.advent.

At the moment the calendar doesn’t check to see if it is the right date so you will have to be self controlled.

You can replace my photos (mostly from National Trust houses) with your own photos in the photos folder (save in the format 1.png etc)

Download the code and photos here https://github.com/uktechreviews/advent

IMG_3934

IMG_3935

IMG_3937

digital making

The last few months have been busy at work with the preparation for GCSE exams, but during this time I have been working on a project which has both challenged me and developed my skills.

I set out at Easter to build a motion time-lapse camera as I really wanted to take some beautiful photos of the Cornish sunrise when we are on holiday this summer. Little I did realise at the time how much this project would grow and how much I would get out of doing it.

Rather than this being a normal blog of how I built a project I want to share a little bit more about the journey I went on and the skills developed at the same time.

Aim: To build some sort of Pi based motion time-lapse camera rig

Final outcome: Motorised pan and tilt camera rig programmed and controlled by an Arduino Uno triggering photos to be taken on the Pi.

Step 1:

camera_rig_build - 1

Step 1 was probably the hardest and now seems really simple. I started with a second hand very cheap Arduino board and a single servo motor which I mounted a camera on to. Here was the first challenge. I had never used an Arduino before and didn’t know the language. But within a few days I had the servo moving up and down and an LED flashing on an off. The Python code for the Pi was really easy but every photo came out a little bit blurry!

camera_rig_build - 2

Step 2: I thought to overcome the shake I would need some sort of housing for the camera so it didn’t get blown by the wind. So I built a simple housing for it using a recycle Easter Egg box.

camera_rig_build - 3

camera_rig_build - 4

camera_rig_build - 5



Step 3: Whilst the project now started to look better most of the images were still shaky. It was at this point I thought it is time to give up and forget the project. So rather than giving up I left it for a couple of weeks. Coming back to the project I decided I needed to rethink how the Pi took the photos. With the first prototype I had no method of synchronising the motor and the camera taking the photo.

I decided to buy an Arduino Uno (clone) and redesign the project so that the Arduino controlled the direction and speed of movement but also had control over the camera.

camera_rig_build - 9

Step 4: After a bit of redesign and salvaging of other boards and bases the basic structure of the new camera rig was born.

camera_rig_build - 11

The plan was the Uno would control the motion and trigger a photo taken with the new Pi Zero. You might notice that the camera cable is held on with tape - sadly during the experimenting phase the pi camera connector got broken. It took quite a few attempts to realise that if the Pi was upside down the cable wouldn’t get caught.

camera_rig_build - 12

Step 5 - I was making progress but I soon hit a snag. I could not figure out an easy way to connect safely the Arduino to the Pi to trigger the photos. After much thought I landed on a 5V DC relay. Using a digital out pin from the Arduino I was able to power the relay. The relay could then act simply as a switch to trigger the photo on the Pi. I was really pleased with this!

camera_rig_build - 13

Step 6 - With most things now working I was able to think about how you program the Arduino and see what is happening. A quick look on Amazon and I ordered a cheap LCD display which is very easy to program with the Arduino. This would be used for both setting up the sequences and displaying the position during the sequence.

Step 7 - Adding an input method. I decided on using a 4x4 membrane keypad (thanks Ryanteck) as my main input of settings for the camera. This was interesting, fun and challenging to wire up. It was very easy to input single key presses but to take three digits and convert them from a string to an integer gave me a stressful evening.


camera_rig_build - 17

Step 8. With everything now working I had to design the user menu. In the end I went for completely programmed, default movement and manual control.

camera_rig_build - 19

Step 9 It was time to replace my broken PiZero with a new one and test things out!

camera_rig_build - 20

Step 10: Building a case for it. I bought two craft boxes from Hobbycraft which became the shell for the camera. To add extra waterproof and strength the whole case is covered in gaffer tape (much to the amusement of some!) I know it isn’t pretty or built on a 3D printer or laser cut perspex, but it is mine, designed, built and programmed by me!


camera_rig_build - 28


I genuinely feel proud of this project. I have learnt so much during this and can’t wait for the next one.

Flotilla weather station (II)

I have finally completed my Flotilla Weather Station.

This project as well as being a great show and tell project for Raspberry Jams was ‘getting to know you’ task for Flotilla and Python.

I have already blogged a couple of times about Flotilla from Pimoroni and still really love this kit and the potential uses for it.



weather1

weather2

The weather station uses:

Number connected to two
Matrix connected to seven
Light connected to eight
Weather connected to one


Once the code is run, it will measure the temperature, pressure and light level and display a numerical value on the number display and a very simple bar chart on the matrix.

The full code is below:




Disney Photoframe

One of the things I love about the Pi is how it makes projects that would have been hard a few years ago much simpler.

You can probably tell from my homepage that I am a huge fan of Disney and love everything about the parks, the films, the music etc .After getting back from our holiday last year I decided that I wanted a nice way of displaying our holiday photos.

This is an incredibly simple build and looks great on my wall.

I’ve mounted a Adafruit 2.8” touchscreen display into a smaller frame within the larger frame. A few people have asked why I didn’t use a bigger screen to fill the frame but I wanted my images to match the pictures around the outside of the frame.

At the moment the display simply shows photos on a loop but I do intend to add current weather icons to the top right of the image.

I am using fbi to display the slide show.

sudo fbi -a -t 5 /dev/fb1 -noverbose /home/pi/disney/*.jpg



IMG_2997-1