Skip to main content
Posted in

I just thought of something that would be handy to have, an LED to light up when exposing. It could light up for 1 second during exposure as a visual cue everything is working. The reason is in a industrial space where yo have a lot of noise so a visual would be good thing. I guess I could use pin 13 and how would adjust the code to make the LED follow the shutter and stay lit long enough (1 sec) even if the shutter isn't open that long? I would mount this LED on the enclosure that houses the Arduino.

Thanks

RC, I normally use the LED

RC,

I normally use the LED to show the actual exposure time, so I tie it into the exposure line. (note: to do this with the NTE3086, you'll need to use a transistor as the current consumption is too high for one pin to do both, see the Dollyshield schematics for one way to do this.)

However, there's nothing to stop you from attaching to an unused pin (with current limiting resistor), and then adjusting the fire_camera() function to also bring this pin high. To make it last for a second, and not equivalent to exposure time, just record the ms time when you bring the pin high, and then in the main loop do a check on the time and bring it low if that much time has passed.

  pinMode(EXP_LED, HIGH);
  led_exp_tm = millis();
  if( led_exp_tm + 1000 < millis() ) {
    pinMode(LED_EXP, LOW);
  }

!c

Thanks Church, I'll give this

Thanks Church, I'll give this a try in a few weeks. Busy building timelapse rigs at the moment for a space shuttle project I'm working on. In a time crunch now since this gear starts working next week. Uggggh

Cheers