<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Time-lapse_Photography</id>
		<title>Time-lapse Photography - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Time-lapse_Photography"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Time-lapse_Photography&amp;action=history"/>
		<updated>2026-06-06T03:13:41Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Time-lapse_Photography&amp;diff=10864&amp;oldid=prev</id>
		<title>1304410487@qq.com：/* Software Debugging软件调试 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Time-lapse_Photography&amp;diff=10864&amp;oldid=prev"/>
				<updated>2015-10-20T06:45:49Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Software Debugging软件调试&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2015年10月20日 (二) 06:45的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot; &gt;第32行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第32行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:ir_transmitter.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:ir_transmitter.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Software &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Debugging软件调试&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Software &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Debugging&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Infrared remote control encoding definition. Here we adopt SONY encoding format. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Infrared remote control encoding definition. Here we adopt SONY encoding format. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Time-lapse_Photography&amp;diff=10847&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{{Language| Time-lapse Photography}} {| style=&quot;width: 800px;&quot; |- | ==Objective == Use the key to set the time delay and take pictures with SONY camera after the setting.  ==Pr...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Time-lapse_Photography&amp;diff=10847&amp;oldid=prev"/>
				<updated>2015-10-19T07:31:48Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language| Time-lapse Photography}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective == Use the key to set the time delay and take pictures with SONY camera after the setting.  ==Pr...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language| Time-lapse Photography}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective ==&lt;br /&gt;
Use the key to set the time delay and take pictures with SONY camera after the setting.&lt;br /&gt;
&lt;br /&gt;
==Principle==&lt;br /&gt;
Here we can set the time delay by detecting how many times you press the key and use the infrared transmission sensor to control SONY camera. &lt;br /&gt;
&lt;br /&gt;
==Equipment ==&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-CoreUSB]]||1||Core board&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Sensorhub]]||1||Sensor pin board &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-IR transmitter]]||1||Infrared transmission sensor &lt;br /&gt;
|-&lt;br /&gt;
| [[Microduino-Crash]]||1||Crash sensor &lt;br /&gt;
|}&lt;br /&gt;
 [[File:IR_Crash.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Hardware Buildup ==&lt;br /&gt;
*Setup 1：Stack CoreUSB and Sensorhub together.。&lt;br /&gt;
[[File:CoreUSB_Sensorhub.jpg|600px|center|thumb]]&lt;br /&gt;
*Setup 2：Connect the infrared transmitter to the D8 pin of Sensorhub and the crash sensor to the D2 pin of Sensorhub. &lt;br /&gt;
[[file:Microduino-sensorhub_rule.JPG|thumb|800px|center]]&lt;br /&gt;
[[File:ir_transmitter.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Software Debugging软件调试==&lt;br /&gt;
*Infrared remote control encoding definition. Here we adopt SONY encoding format. &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define PHOTO 0xB4B8F     //SONY camera ending &lt;br /&gt;
#define KEY 2             //Key interface&lt;br /&gt;
&lt;br /&gt;
boolean keyFlag = false;  //Key flag  &lt;br /&gt;
unsigned long timeFlag = 0;   //Time flag &lt;br /&gt;
int delayTime = 0;&lt;br /&gt;
&lt;br /&gt;
IRsend irsend;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
[[File:Microduino_photo_ir.png||300px|center|thumb]]&lt;br /&gt;
*Judge how many time you press the key. If you can't detect the next press-down within one second of the last press-down, it means you've finished pressing down. Then, after delaying for a certain period of time, it'll send photo encoding and control the camera to take photos. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
  if((millis()&amp;gt; timeFlag+1000)&amp;amp;&amp;amp;delayTime&amp;gt;0)     // Judge how many time you press the key. If you can't detect the next press-down within one second of the last press-down, it means you've finished pressing down.&lt;br /&gt;
  {&lt;br /&gt;
    delay(delayTime*1000);                      //Set the delay time according to how many times you press down.&lt;br /&gt;
&lt;br /&gt;
    for (int i = 0; i &amp;lt; 3; i++) &lt;br /&gt;
    {&lt;br /&gt;
      irsend.sendSony(PHOTO, 20);               //Send photographing instruction &lt;br /&gt;
      delay(10);&lt;br /&gt;
    }&lt;br /&gt;
    Serial.println(&amp;quot;take photo&amp;quot;); &lt;br /&gt;
    delayTime = 0; &lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  if(keyFlag==false &amp;amp;&amp;amp; digitalRead(KEY)==LOW)   //Judge if the key is pressed down. &lt;br /&gt;
  {&lt;br /&gt;
    keyFlag = true;&lt;br /&gt;
  }&lt;br /&gt;
  else if(keyFlag==true &amp;amp;&amp;amp; digitalRead(KEY)==HIGH)    //Judge if the key is released. &lt;br /&gt;
  {&lt;br /&gt;
    delayTime++;                            //The time of pressing the key+1&lt;br /&gt;
    timeFlag = millis();&lt;br /&gt;
    keyFlag=false;&lt;br /&gt;
  }&lt;br /&gt;
  delay(100);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
[[https://github.com/Microduino/Microduino_Tutorials/tree/master/MCookie_Tutorial/MicroduinoDelayPhoto MicroduinoDelayPhoto]]&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
Align the infrared transmission sensor to the infrared receiving head of the camera, set remote control mode, press the key for several times and then take pictures after a while.&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>