SciFiCam is a Raspberry Pi based camera assembly with a digital camera UI and syncronsation over Wi-Fi.
The software is written in Python and exploits pycamera overlay system for creting a user interface. It consists of three main components that run on individual threads.
Camera thread is responsible for communication to pycamera library and handling user interface. It acts as a Model in an MVC architecture. Camera has several Modes, which acte as Controllers; and each Mode is driven by UIElements, which act as View elements.
Modes have the same meaning as modes on a digital cameras, exposing different aspects of camera settings. So far there are four Modes implemented:
- Automatic mode
- Manual mode
- Timelapse mode
- Vide mode
In addition there are two utility modes: ShutdownMode and ErrorMode for rebooting the Pi and displaying error messages.
Button thread allows binding Mode functions to key presses on the 4DPi-24-Hat display.
OwnCloud thread is responsible for syncronisation of the captured pictures and videos to the OwnCloud server.
SciFiCamera is an assembly of the three off-the shelf-components: Raspberry Pi 3, Raspberry Pi Camera and 4DPi-24-Hat display. The housing can be 3D printed and features a uCube - compatible modular attachment plate, which can be used to customise an optics adapter for the camera.
- Follow the instructions for 4DPi-24-Hat on how to setup the display.
- 3D-print both parts of the housing and five buttons.
- Attach camera to the bottom part of the housing on the inside using four M2x5mm screws.
- Attach Raspberry Pi to the bottom part of the housing, pins facing up, with four M2.5 spacers.
- Connect the Raspberry Pi Camera cable to the Raspberry Pi board.
- Attach display to the Raspberry Pi and secure with two M2.5 screws.
- Turn the top parth of the housing upside down and insert the buttons into the slots.
- While keeping the top part upside down slide in the bottom part.
- Connect to Pi over ssh or attach a keyboard (you will need to open the housing to do so).
- Install SciFiCam using pip.
sudo pip install scificam
- You can now start the camera by typing
scificam
- You make scificam start after each reboot by editing the crontab file. Open it using
and add the following line
crontab -e
@reboot scificam
GPLv3