Journal One

  • Post author:
  • Post category:360 Camera

This project has evolved considerably since I last posted, and since I wrote my first proposal. There will be 4 wide angle Pi cameras, each connected to a Pi Zero. Each of these Pi Zeros will be connected to a Pi 3 “MasterPi” via USB. Previously I had planned to utilize USB cables to connect each Zero to the MasterPi. The ClusterHAT eliminates the need for this many wires, and should also simplify interPi communication. As power is also drawn from the GPIO pins, all of the Zeros can be safely powered through this HAT. The Pi 3 has built in Wifi capabilities, therefore none of the Zeros will need a wifi HAT, which is fortunate because the ClusterHAT’s spacing does not allow for HATs on the Zeros.

 

This week I received most of the parts I need. I now have 5 wide angle cameras, a Pi 3, the ClusterHAT, and two of the four needed Pi Zeros and camera cables. I spoke with a few people at Terrapin Works, who had suggestions as to how I would attach my cameras to the mount I designed.

Triangle Camera Mount

After a lengthy discussion and some very small measurements, we determined that the best approach would probably be to use 3/16” long hex screws. Unfortunately, the tolerances on the 3D printers I have available to me are such that I would not be able to reliably or accurately print screw sized holes in this mount. To circumvent this issue, I can use screw inserts. These small threaded nuts are large enough to print holes for, and the screws can be screwed into them. Any excess gap would be filled with glue/epoxy. The picture below shows these screws (black) and inserts (gold) with a penny for scale.

Camera Screws

This week I’m planning on modifying and printing the camera mount. As soon as this is done, I can begin verifying the camera configuration and begin working on the photo stitching.

 

I outlined a list of tasks that each Pi will need to be able to do. The “Dashboard” mentioned below will be a web-based control interface for this system. I hope to modify a similar interface I have from a previous project.

MasterPi Program (Run on boot)

  1. Connect to Wifi
  2. Become a client and connect to Dashboard
  3. Connect to Zeros
  4. Be ready to accept program parameters from the Dashboard (but should be launchable offline)
    1. Duration (Default: Until stopped)
    2. Photoshoot name (Default: Date + StartTime)
    3. Photo interval (Default: 1/min?)
  5. Be ready to report errors and status updates to the Dashboard
  6. Some way to signal readiness, busy/active (LEDs)
    1. Green – Ready
    2. Yellow – Busy – Do not Power Off
    3. Red – Error
  7. Signal the Zeros to take a photo
    1. Report to dashboard the initiation of photoset #
  8. Copy the photos from each Zero to a photoset specific folder
    1. ex: home/pi/Photoshoot_name/Photosets/#
    2. Ensure MasterPi won’t crash if a Zero misses a photo – but notify
    3. Report to Dashboard the successful capture of photoset #
  9. Stitch the photos from the photoset into an equirectangular frame (EQRF)
  10. Save the EQRF to a photoshoot specific folder (so that all EQRFs end up in one sequential folder)
    1. Photoshoot name + photoset # +.jpg
    2. ex: home/pi/Photoshoot_name/EQRFs
  11. Repeat steps 6-9
  12. Finish any stitching (if necessary)
  13. Command the Zeros to shut down
    1. Signal to Dashboard that this has been completed (or initiated)
  14. Shut down

 

Step 9 is currently the most difficult and elusive of the listed steps. I think I could pull off the rest of the steps with my current knowledge and skill. Step 6 might not be easily possible with the ClusterHAT hogging most of the GPIO pins, but a closer evaluation is needed to know for sure.

 

The steps needed for each of the Zeros are simpler, but equally important.

Zero Program (Run on boot)

  1. Accept MasterPi connection
  2. Intake photoshoot name from MasterPi
  3. Listen for MasterPi command for photo
  4. Save photo in photoset specific folder
    1. ex: home/pi/Photoshoot_name/Photosets/#
    2. OR save photo numbered sequentially in Photoshoot specific folder.
      1. ex: home/pi/Photoshoot_name/PiName+Photo#.jpg
  5. Report any errors to MasterPi to pass on to Dashboard
  6. Repeat steps 3-5
  7. Await shutdown command from MasterPi


I wanted to take a brief moment this week to reflect upon time. This project is fundamentally about time and it’s passage. The end result will be an immersive time-lapse experience that reveals the passing of a day in mere seconds – inviting its viewers to ponder time. This unique temporal perspective will only become available after a semester of considerable effort and time. I recognize now the need to carefully budget and manage my hours this semester to make this project a reality. I have confidence in my organizational skills and the time-planning systems I have already put into place.