Camera and LEDs Setup - Digital-Waters/WaterMonitorDevice GitHub Wiki

Overview

The camera is a core sensor and a good portion of our monitoring device's size is dedicated towards getting good images underwater without external light interference.

This page assumes you already have your Raspberry Pi up and running. It will show you how install and configure the IMX462 camera and how to wire up your LEDs.

Install and Configure the IMX462 Camera

Follow the official Arducam guide to fully configure and test your camera installation. Remember that we use Pi 4 on Bullseye.

Tools Needed to Build and Install LEDs

  • Electrical tape
  • Wire cutters / wire stripper
  • Scissors
  • Optional painters masking tape

Parts Needed

PXL_20240916_162455956

Instructions

  1. Create the light diffusor by cutting the shape of your photo chamber entry out of a blank, white sheet of paper.
  2. Cut and strip casing of LED and female pin head wires to appropriate length from where your camera will be to where the Raspberry Pi is in your enclosure. PXL_20240916_162759082 PXL_20240916_163027914
  3. Line up the two ground (black) LED wires opposite the black female pin head wire. Do the same for the three white wires PXL_20240916_163243348
  4. With your fingers, twist the three wires together so that there is plenty of contact between all three wires. PXL_20240916_163514991
  5. Cover the exposed wire up with electrical wire. PXL_20240916_163755511 MP
  6. Position the two LEDs on the underside of the diffuser. Space them so there is enough room for the camera to fit between the two LEDs. PXL_20240916_163906908
  7. User painters tape (it forgives mistakes best) to secure the LEDs in place. PXL_20240916_163956328
  8. Flip the diffuser over, place and secure the camera in between the two LEDs. PXL_20240916_164035491

You should now have a diffuser with wiring for the LEDs and camera hanging out. Connect them to your Raspberry Pi.

  1. For the white LED wire, connect it to pin 17 on your Raspberry Pi's GPIO pins. Connect the black wire to one of your available ground pins on your GPIO pins.
  2. Connect the camera ribbon wire to the camera ribbon wire receptacle on the Raspberry Pi.
  3. Attach your diffuser / camera unit to your enclosure (painters tape is recommended).
  4. Attach the photo chamber so that the opening aligns with the diffuser.
  5. Secure the photo chamber to your waterproof electronics enclosure.