You may have seen in an earlier post that I got the Unicorn Hat from Pimoroni for Christmas. With a spare hour this evening I had a quick think about a fun project using this display.
Introducing the Unicorn Camera.
Combining the Raspberry Pi camera running a simple time-lapse program and the Unicorn Hat I made a very simple camera with flash function.
The display shows you:
- How many frames you have selected
- The status of the flash (on or off)
- A warning before the sequence starts
- The frame number after each photo
- Confirmation that the sequence has ended
The code for the project can be found here on github
The scrolling text will require the UnicornHat Scrolling text code from https://github.com/topshed/UnicornHatScroll
The code is customisable to vary the number of frames and the interval between each frame.
You must create a folder in your
I have set the hat brightness at 0.4 for both safety and power reasons.
Please leave a comment below.
While you are here please check out our Amazon Associates Raspberry Pi page!
The Lisiparoi - Flash ring for Raspberry Pi camera module is a small unit which screws onto the Raspberry Pi camera and provides 12 bright LEDs.
There are two favours, visible light LEDs for the normal camera and a IR LED version for use with the NOIR camera module.
Assembly is really simple.
Before screwing the camera to the ring it was a simple case of soldering 4 connecting pins. The ring connects to the Raspberry Pi via 4 GPIO pins connected to 5V, GND, GND and a free GPIO. After hunting around for 4 female to female cables I had the flash mounted and connected to my Pi. The beauty of this device is that all 12 LEDS run from just 4 pins.
Programming the flash ring is extremely simple as it only involves switching on 1 GPIO pin to power up the ring.
I have included sample code here
This is a really good little device and have been very pleased with the illumination it provides. I found it be effective up to 2m from the camera.