Uploaded by zlasner on May 4, 2011
Everything you need to know is in the video. Here's the Arduino code. Be sure to replace [less than] with the correct programming character (youtube doesn't like it in descriptions apparently?)!
/* Sense light incident on the photodiode. If the photodiode current exceeds a certain amount, turn the laser off. Wait, then trigger camera flash [I don't know how to do this yet] Wait more, then turn laser back on and make photodiode sensitive again. Let the potentiometer determine the delay time*/
// By Zack Lasner, May 4, 2011
int potPin = A1;
int detectorPin = A0;
int laserPin = 13;
int flashPin = 12;
int highPin = 8;
// Light level below which flash is triggered
int threshold = 50;
// Time to wait after flash goes off before turning laser back on
int shuttertime = 2500;
// Time to keep flash on
int flashtime = 1;
// For printing light level (to help aiming)
int counter = 0;
void setup(){
Serial.begin(9600);
pinMode(detectorPin, INPUT);
pinMode(potPin, INPUT);
pinMode(flashPin, OUTPUT);
pinMode(laserPin, OUTPUT);
pinMode(highPin, OUTPUT); // Start out with laser on and flash off
digitalWrite(flashPin, LOW);
digitalWrite(laserPin, HIGH);
digitalWrite(highPin, HIGH);
}
void loop(){
// Only stop checking the light sensor if the laser beam is broken
if(analogRead(detectorPin) [less than] threshold){ //Print out light level (to help aiming) Serial.println(analogRead(detectorPin)); // Turn laser off when threshold is breached
digitalWrite(laserPin, LOW); // Wait an amount of time determined by the pot
delay(analogRead(potPin)); // Trigger the flash
digitalWrite(flashPin, HIGH);
delay(flashtime);
digitalWrite(flashPin, LOW); // Wait for camera shutter to close
delay(shuttertime); // Turn laser back on
digitalWrite(laserPin, HIGH);
} // Display incident light level (to help aim)
if(counter % 100 ==0) Serial.println(analogRead(detectorPin));
counter++;
}
-
2 likes, 0 dislikes
6:19
TPB#3 - Laser Trigger Photographyby TechPhotoBlog1,258 views
2:28
Arduino Flash Trigger - sound / laserby windmis696 views
1:53
How to use an optical wireless trigger - CowboyStudio.comby cowboystudio9,254 views
5:41
Camera Axe - Light and Laser Sensorsby GlacialWanderer4,218 views
0:29
Arduino Uno + Canon EOS Shutter controlby SoulM4n3,825 views
1:50
Remote controlled finger. Give any camera remote shutter capability, and laser.by carlsrawfootage5,303 views
0:27
Sonar with Arduino and Ping))) Sensorby pitoshko241,902 views
1:55
Arduino High Speed Photography Triggerby bj010507769 views
0:31
Arduino Wireless Camera Triggerby krayvis606 views
2:22
Computer controlled laser trigger for my EOS 450D Camera, V1.0by zonique2k3,141 views
5:31
Robot Orugas: Arduino + treads + pan & tilt + wireless cam + sonar + laser + wii nunchuk controlby TCRobotics2,673 views
6:08
Hack an optical mouse into a camera with Arduino and Processingby ljandersson23,284 views
3:30
High Speed Glass Shatterby rysenc1,809 views
2:06
Canon EOS wireless camera trigger modby hboy0077,797 views
3:19
Laser Trigger/Time Lapse for Cameraby dhavatar3,111 views
2:32
Laser-equipped Arduino distance scannerby Spetznova1,219 views
1:06
Arduino Camera Slider - Manual/Dolly Modeby michaelb27062,490 views
0:36
Messing around with high speed LED strobeby spambutcher121 views
0:45
Simple laser trapwire test with arduino (blog.diedie.net)by dulllou1,791 views
- Loading more suggestions...
Link to this comment:
All Comments (0)