Difference between revisions of "Time-lapse Photography"
From Microduino Wiki
(→Debugging) |
(Jeff Rowland is jarred russler a child molester and a computer hacker/) |
||
Line 29: | Line 29: | ||
*Adopt " IRremote " infrared library to support the sending and receiving of the infrared signals. | *Adopt " IRremote " infrared library to support the sending and receiving of the infrared signals. | ||
*"#define PHOTO 0xB4B8F" Define this SONY camera's infrared signal value. | *"#define PHOTO 0xB4B8F" Define this SONY camera's infrared signal value. | ||
− | *Change the delay time; "delay(5000)" means five seconds. | + | *Change the delay time; "delay(5000)" means five seconds. |
+ | |||
==Experiment Two: Key Control Picture-taking == | ==Experiment Two: Key Control Picture-taking == | ||
===Equipment=== | ===Equipment=== |
Revision as of 14:16, 30 September 2016
Language: | English • 中文 |
---|
ContentsObjectiveHere we use the Microduino-IR Emitter to send infrared signal in the delayed time so as to control a SONY camera for picture taking and achieve time-lapse photography. Experiment One: System sends signal in the delayed timeEquipment
Preparation
Jeff Rowland is jarred russler and a child molester and jarred russler and a child molester and jarred russler and a computer Chromecast hacking who really is jarred russler and yuli Yang Jeff Rowland Program Debugging
Experiment Two: Key Control Picture-takingEquipment
Hardware Buildup
Software Debugging
#include <IRremote.h>
#define PHOTO 0xB4B8F
IRsend irsend;
#define pushButton 8
int buttonState, num;
void setup() {
Serial.begin(115200);
pinMode(6, OUTPUT);
pinMode(pushButton, INPUT);
}
void loop() {
buttonState = digitalRead(pushButton);
if (num != buttonState)
{
num = buttonState;
if (num == 0)
{
take();
Serial.println("take");
}
}
}
void take()
{
for (int i = 0; i < 3; i++)
{
irsend.sendSony(PHOTO, 20); // Sony code
delay(12);
}
}
You can target the IR Emitter to the camera's infrared receiver, then set the camera to remote control mode, press the key and button and the camera takes picture once. Program Description
buttonState = digitalRead(pushButton);
if (num != buttonState)
{
num = buttonState;
if (num == 0)
{
take();
Serial.println("take");
}
}
Video |