Skip to content

cracked-machine/UV_LED_Driver_SW_STM32F051

Repository files navigation

UV Lightbox

UV lightbox with adjustable LED brightness.

The lid uses a momentary switch to detect when the lid is closed or open.

  • When lid is open, only the LED stips will turn on, allowing safe preparation of negatives.
  • When lid is closed, only the UV LED panels will turn on.

Software Overview

  • UVBoxManager inits user application and coordinates input control interrupts.
  • EventManager implements a simple state machine.
  • LedManager controls the LED PWM for the two modes.

System overview

System behavior

  • When the lid is closed the timer starts its countdown.
  • When the countdown has expired, the lid must be opened to reset the timer. This prevents the timer from restarting in a loop before the lid is opened.

Hardware Overview

For hardware details see project: UV_LED_DRIVER

Exposure Timer

To get a one second timer tick for the exposure countdown clock:

MCLK / (TIMER_PSC * TIMER_PERIOD) = Countdown (in Hz) 48000000 / (704 * 65535) = 1.0404 Hz

About

Firmware for UV LightBox

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages