Version 2 of the device has been created and the python code has had some clean up and minor changes, key changes in italics
This is a small device for testing the light tighness of vintage cameras.
Vintage cameras often use cloth bellows and light seals. These wear over time and can start to allow light through which can spoil the film in the camera
This is a version 2 prototype of a device that can be placed inside the camera to detect any light leakage.
The code has been cleaned up a bit.
- Key settings:
- REPL output is enabled by making
- DEBUG = True
- The delay before testing starts
- START_DELAY = 20
- Number of tests
- LOOPS = 10
- REPL output is enabled by making
The device is about an 30mm * 30mm * 15 mm. The aim is to have a second version that is about 20mm * 25 * 10mm so it can be built in to a film canister
Version 2 is now 25mm * 28mm * 15mm and while not quite as small as hoped, but is of much better and secure construction
To operate, the device is switched on it is place inside the camera the rear cover is closed. After a delay the device will make a series of light readings over a period of time and will store them in a file with a name based on the time and date the test was carried out. This file can then be viewed on a computer.
- At the end of the test run:
- The LED's on the BH1745 are set ON for light detected (Fail) or OFF for light not detected (Pass)
- The LED's on the Tiny2040 are set to RED for light detected (Fail) or Green for light not detected (Pass)
- The Tiny2040 LED's can be viewed thru the side of the case
DEBUG = True # True = Very vebose REPL debug messages oe execution progress messages
or
DEBUG = False # False = No REPL debug messages or progress messages
LED_SLEEP = 0.5 # startup LED flash delay FLASH_LOOPS = 5 # startup LED flash count
START_DELAY = 20 # delay after LEDS flash before readings start to be taken
LOOPS = 10 # number of reading to be taken
LOOPS_LIGHTS = 2 # number of readings at start and end taken with bh1745 sensor LED on (test readings)
READING_WAIT = 0.5 # delay before readings taken in loop
LOOP_WAIT = 2 # delay at end of oop before next loop
estTime = START_DELAY + (LOOPS * (LOOP_WAIT + READING_WAIT + READING_WAIT)) # etimated total test time in seconds
Any questions, feel free to ask
- Processor Tiny2040 RP2040 development board
- I2C Sensor BH1745 Luminance and Colour Sensor Breakout
- Battery Adafruit 20mm Coin Cell Breakout w/On-Off
- Micropython pimoroni-tiny2040-v1.19.16-micropython
- Case Adapted 3d Printed Case
A few pictures:
Device Version 2 Pictures:
Device Version 1 Pictures: