<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Arduino Sleep Archives - Digital Me</title>
	<atom:link href="https://ba0sh1.com/tag/arduino-sleep/feed/" rel="self" type="application/rss+xml" />
	<link>https://ba0sh1.com/tag/arduino-sleep/</link>
	<description>Electronics, Computers at leisure time</description>
	<lastBuildDate>Mon, 11 Jul 2022 13:39:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.6</generator>
	<item>
		<title>Project Crystal (Part 2)</title>
		<link>https://ba0sh1.com/2012/06/13/project-crystal-part-2/</link>
					<comments>https://ba0sh1.com/2012/06/13/project-crystal-part-2/#respond</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Tue, 12 Jun 2012 19:23:55 +0000</pubDate>
				<category><![CDATA[Project]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino Sleep]]></category>
		<category><![CDATA[Distance Sensor]]></category>
		<category><![CDATA[LED Strip]]></category>
		<category><![CDATA[PIR Sensor]]></category>
		<category><![CDATA[PWM]]></category>
		<category><![CDATA[RGB LED]]></category>
		<guid isPermaLink="false">https://ba0sh1.com/?p=88</guid>

					<description><![CDATA[<p>It took me a while but I&#8217;ve made some progress &#8230; Here are the photos of finished board: Working as a software engineer for ten over years, I did not initially consider...</p>
<p>The post <a href="https://ba0sh1.com/2012/06/13/project-crystal-part-2/">Project Crystal (Part 2)</a> appeared first on <a href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>It took me a while but I&#8217;ve made some progress &#8230;<br><br>Here are the photos of finished board:</p>



<span id="more-88"></span>



<figure class="wp-block-gallery columns-3 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img fetchpriority="high" decoding="async" width="800" height="600" src="https://ba0sh1.com/wp-content/uploads/2012/06/377c9-crystal_back.jpg" alt="Controller board back view" data-id="103" data-full-url="https://ba0sh1.com/wp-content/uploads/2012/06/377c9-crystal_back.jpg" data-link="https://ba0sh1.com/crystal_back/" class="wp-image-103" srcset="https://ba0sh1.com/wp-content/uploads/2012/06/377c9-crystal_back.jpg 800w, https://ba0sh1.com/wp-content/uploads/2012/06/377c9-crystal_back-300x225.jpg 300w, https://ba0sh1.com/wp-content/uploads/2012/06/377c9-crystal_back-768x576.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption class="blocks-gallery-item__caption">Controller board back view</figcaption></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" width="800" height="600" src="https://ba0sh1.com/wp-content/uploads/2012/06/2a4f5-crystal_front.jpg" alt="Controller board front view" data-id="102" data-full-url="https://ba0sh1.com/wp-content/uploads/2012/06/2a4f5-crystal_front.jpg" data-link="https://ba0sh1.com/crystal_front/" class="wp-image-102" srcset="https://ba0sh1.com/wp-content/uploads/2012/06/2a4f5-crystal_front.jpg 800w, https://ba0sh1.com/wp-content/uploads/2012/06/2a4f5-crystal_front-300x225.jpg 300w, https://ba0sh1.com/wp-content/uploads/2012/06/2a4f5-crystal_front-768x576.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption class="blocks-gallery-item__caption">Controller board front view</figcaption></figure></li><li class="blocks-gallery-item"><figure><img decoding="async" width="800" height="600" src="https://ba0sh1.com/wp-content/uploads/2012/06/6836f-crystal_sensors.jpg" alt="PIR sensor and distance sensor" data-id="105" data-full-url="https://ba0sh1.com/wp-content/uploads/2012/06/6836f-crystal_sensors.jpg" data-link="https://ba0sh1.com/crystal_sensors/" class="wp-image-105" srcset="https://ba0sh1.com/wp-content/uploads/2012/06/6836f-crystal_sensors.jpg 800w, https://ba0sh1.com/wp-content/uploads/2012/06/6836f-crystal_sensors-300x225.jpg 300w, https://ba0sh1.com/wp-content/uploads/2012/06/6836f-crystal_sensors-768x576.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><figcaption class="blocks-gallery-item__caption">PIR sensor and distance sensor</figcaption></figure></li></ul></figure>



<p>Working as a software engineer for ten over years, I did not initially consider Adruino programming is of any difficulty. But I soon realized that I have been deeply spoiled by the modern operation systems. Giving a task that is so naturally to be implemented as a thread, it is never trivial in micro controller system. I spend one whole day to map out a flow chart of the control tasks, then turn the chart into C code. I can imaging that the time would have double or trippled if I don&#8217;t do this. Old school way rules, isn&#8217;t it?</p>



<p>I have attached the flow chart and Arduino sketch here. Sorry I dislike documentation, just refer to the inline comments and flow chart in case needed.</p>



<div data-wp-interactive="core/file" class="wp-block-file"><object data-wp-bind--hidden="!state.hasPdfPreview" hidden class="wp-block-file__embed" data="https://ba0sh1.com/wp-content/uploads/2012/06/b303f-crystal_flowchart.pdf" type="application/pdf" style="width:100%;height:600px" aria-label="Embed of Embed of Crystal_Flowchart.pdf.."></object><a href="https://ba0sh1.com/wp-content/uploads/2012/06/b303f-crystal_flowchart.pdf">Crystal_Flowchart.pdf</a><a href="https://ba0sh1.com/wp-content/uploads/2012/06/b303f-crystal_flowchart.pdf" class="wp-block-file__button" download>Download</a></div>



<div class="wp-block-file"><a href="https://ba0sh1.com/wp-content/uploads/2012/06/648ad-crystal_sketch.zip">Crystal_Sketch.zip</a><a href="https://ba0sh1.com/wp-content/uploads/2012/06/648ad-crystal_sketch.zip" class="wp-block-file__button" download>Download</a></div>



<p>Having a license term is still better then nothing, so I make this one:</p>



<ol class="wp-block-list"><li>Tribute goes to&nbsp;<a href="http://makeprojects.com/User/9189/Francisco+Castro" target="_blank" rel="noopener">Francisco Castro</a>&nbsp;and his&nbsp;<a href="http://makeprojects.com/Project/Luminch-One/1773/1" target="_blank" rel="noopener">Luminch One</a>&nbsp;project.</li><li>The redesign here is provided on AS-IS basis. If it works, it is designed by ba0sh1.</li><li>If it doesn&#8217;t work, I do not know who designed it</li></ol>



<p>And enjoy the demo video. My first YouTube upload <img src="https://s.w.org/images/core/emoji/16.0.1/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
http://www.youtube.com/watch?v=vYRVWFtfnt4
</div></figure>
<p>The post <a href="https://ba0sh1.com/2012/06/13/project-crystal-part-2/">Project Crystal (Part 2)</a> appeared first on <a href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2012/06/13/project-crystal-part-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
