Skip to content

A high-speed droplet photography controller for Raspberry Pi 4

License

Notifications You must be signed in to change notification settings

astroimagineer/DropPi

Repository files navigation

DropPi v.1.06

DropPi is my own implementation of a python high-speed droplet photography controller for the Raspberry Pi4.

DropPi in its current version implements the following features:

  • Controls up to 4 valves with a maximum of 4 individual drops per valve
  • Controls up to 3 flashes
  • Controls a DSLR or other wired trigger camera
  • Supports mirror lockup function to eliminate camera shake
  • Very accurate timing up to tenths of a millisecond with an average timing error of no more than 0.5%
  • Uses standard hardware (minimal soldering)
  • Fully supports the Raspberry 7" touch screen
  • Input via touch screen and on-screen keyboard
  • Long-press on all decrease and increase buttons for slow and fast modes
  • Save and load all your droplet configurations for later use

History

Back in 2012 I had my first attempt at high-speed droplet photography using an Arduino. Because the Arduino was too slow, I encountered many issues and although I made some great images, it was frustrating. Now, in 2021, I decided I would take the time to give it another go but this time my platform of choice would be the Raspberry Pi4. I also really wanted to get rid of using a bulky computer or laptop, so my goal was to use the 7 inch Raspberry touch screen and I wanted this to be my only interface.

Doing some initial investigations, I encountered an article by Harald Kreuzer. Harald describes using Kivy to build the user interface and gave me a rough idea of how a user interface could look like. I've tried contacting Harald several times, asking whether he would be willing to share his work, but I never received any reply. I very much believe in open source so I decided to do my own investigations, my own hardware selection and my own programming.

The current result is what you are looking at. And since I am all about open source, contrary to Harald I will share with you!

Hardware

As far as hardware goes, I am using the following components. I suggest you do the same.

IMPORTANT: Set the I2C addresses of the relay HATs to 20 and 21. I use these hardcoded in the software. Refer to the user manual for the relay HATs on how to set these addresses.

The first relay HAT will control the four valves in order (relay 1 - valve 1, etc.). The second relay HAT will control the camera and flashes (camera, flash1, flash2, flash3).

The below schematic should give you a rough idea of how to connect your stuff; schematic

I will update and expand this readme over time.

Software

DropPi requires the following to be installed on your platform:

  • Latest Raspbian Lite distribution with minimal desktop
  • Python 3.6+
  • Kivy 2.0+
  • SMBUS2 for Python

May I also suggest you incorporate some kind of backup system on your DropPi? It's a real shame to find out after some months of use that an update ruined your system or that the SD card is unreadable, and all your droplet configurations are gone. Personally, I use RaspiBackup. I use it to backup my droplet controller, my aviation radio system, my sinkhole.

Screenshots

Main screen Fig.1: the basic screen at startup

Main screen2 Fig.2: Valves 1 and 3 active, with 1 and 3 drops respectively

Main screen3 Fig.3: Custom numeric touch keypad

Files manager Fig.4: The file manager

About

A high-speed droplet photography controller for Raspberry Pi 4

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages