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
- Two white LEDs with 0.25 watt resistors and diffused plastic (can be purchased separately)
- One Raspberry Pi camera + camera ribbon cable
- One diffusor material (regular paper)
- wires with female pin heads.
Instructions
- Create the light diffusor by cutting the shape of your photo chamber entry out of a blank, white sheet of paper.
- 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.
- Line up the two ground (black) LED wires opposite the black female pin head wire. Do the same for the three white wires
- With your fingers, twist the three wires together so that there is plenty of contact between all three wires.
- Cover the exposed wire up with electrical wire.
- 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.
- User painters tape (it forgives mistakes best) to secure the LEDs in place.
- Flip the diffuser over, place and secure the camera in between the two LEDs.
You should now have a diffuser with wiring for the LEDs and camera hanging out. Connect them to your Raspberry Pi.
- 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.
- Connect the camera ribbon wire to the camera ribbon wire receptacle on the Raspberry Pi.
- Attach your diffuser / camera unit to your enclosure (painters tape is recommended).
- Attach the photo chamber so that the opening aligns with the diffuser.
- Secure the photo chamber to your waterproof electronics enclosure.