<?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 Archives - Digital Me</title>
	<atom:link href="https://ba0sh1.com/tag/arduino/feed/" rel="self" type="application/rss+xml" />
	<link>https://ba0sh1.com/tag/arduino/</link>
	<description>Electronics, Computers at leisure time</description>
	<lastBuildDate>Mon, 11 Jul 2022 13:40:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.1</generator>
	<item>
		<title>Arduino Redesigned &#8211; Maker UNO Review</title>
		<link>https://ba0sh1.com/2018/03/18/arduino-redesigned-maker-uno-review/</link>
					<comments>https://ba0sh1.com/2018/03/18/arduino-redesigned-maker-uno-review/#respond</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Sun, 18 Mar 2018 15:42:46 +0000</pubDate>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[Arduino]]></category>
		<guid isPermaLink="false">https://www.ba0sh1.com/?p=1243</guid>

					<description><![CDATA[<p>Friends at Cytron Technologies are going to launch an Arduino compatible Maker UNO board at KickStarter. They send me an early production board for review. So here are my two cents worth....</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2018/03/18/arduino-redesigned-maker-uno-review/">Arduino Redesigned &#8211; Maker UNO Review</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Friends at <a href="https://www.cytron.io/" target="_blank" rel="noopener">Cytron Technologies</a> are going to launch an Arduino compatible Maker UNO board at KickStarter. They send me an early production board for review. So here are my two cents worth. (This is NOT a paid review)</p>
<p><span id="more-1243"></span></p>
<p>This <a href="https://en.wikipedia.org/wiki/List_of_Arduino_boards_and_compatible_systems#Footprint-compatible">article</a> from Wikipedia gives us a very comprehensive list of Arduino UNO compatible boards from &#8220;known&#8221; vendors.  There are 37 of them, excluding all the clones that are cheaply available from aliexpress etc. What makes Maker UNO distinctive is that it is specially redesigned for educational market. Let see what are the features / changes from the official Arduino UNO, follow the typical rules of &#8220;the good&#8221;, &#8220;the bad&#8221;, and &#8220;the ugly&#8221;</p>
<figure id="attachment_1244" aria-describedby="caption-attachment-1244" style="width: 225px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="wp-image-1244 size-medium" src="https://ba0sh1.com/wp-content/uploads/2018/03/27da0-makeruno-225x300.jpg" alt="Maker UNO" width="225" height="300" srcset="https://ba0sh1.com/wp-content/uploads/2018/03/27da0-makeruno-225x300.jpg 225w, https://ba0sh1.com/wp-content/uploads/2018/03/27da0-makeruno-768x1024.jpg 768w, https://ba0sh1.com/wp-content/uploads/2018/03/27da0-makeruno-1152x1536.jpg 1152w, https://ba0sh1.com/wp-content/uploads/2018/03/27da0-makeruno.jpg 1200w" sizes="(max-width: 225px) 100vw, 225px" /><figcaption id="caption-attachment-1244" class="wp-caption-text">Maker UNO</figcaption></figure>
<h4>The Good</h4>
<ul>
<li><strong>More More LEDs.</strong> We all love LEDs. &#8220;Blinky&#8221; is probably the first Arduino project for many of us, then followed by &#8220;Chasing Lights&#8221;. Remember the tedious work to break out digital pins onto breadboard, plug LEDs and current limiting resistors? All these are no longer necessary with Maker UNO. We now have LED indicators built right onto the board for all digital pins. Imaging the amount of classroom time it saves! Even for advanced users, the LEDs can be super handy when debugging code. For example, turn on/off LEDs when &#8220;Serial.print&#8221; is not available, e.g., in an interrupt service routine.</li>
</ul>
<figure id="attachment_1246" aria-describedby="caption-attachment-1246" style="width: 225px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="wp-image-1246 size-medium" src="https://ba0sh1.com/wp-content/uploads/2018/03/f4dc3-makeruno-leds-225x300.jpg" alt="LED Indicators" width="225" height="300" srcset="https://ba0sh1.com/wp-content/uploads/2018/03/f4dc3-makeruno-leds-225x300.jpg 225w, https://ba0sh1.com/wp-content/uploads/2018/03/f4dc3-makeruno-leds-768x1024.jpg 768w, https://ba0sh1.com/wp-content/uploads/2018/03/f4dc3-makeruno-leds-1152x1536.jpg 1152w, https://ba0sh1.com/wp-content/uploads/2018/03/f4dc3-makeruno-leds.jpg 1200w" sizes="(max-width: 225px) 100vw, 225px" /><figcaption id="caption-attachment-1246" class="wp-caption-text">LED Indicators</figcaption></figure>
<ul>
<li><strong>Buzzer and Button</strong>. Nothing is more exciting than making noise in the classroom. With Maker UNO it is now possible without additional hardware. A buzzer is built-in. If continuously making noise is not too welcomed in a classroom, then let the noise triggered by user button forms a more socially responsible project. Yes the button is also included. Of course there is also a switch that can turn off the buzzer permanently.
<p><figure id="attachment_1251" aria-describedby="caption-attachment-1251" style="width: 300px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="wp-image-1251 size-medium" src="https://ba0sh1.com/wp-content/uploads/2018/03/d1356-makeruno-buzzer-1-300x225.jpg" alt="Buzzer &amp; User Button" width="300" height="225" srcset="https://ba0sh1.com/wp-content/uploads/2018/03/d1356-makeruno-buzzer-1-300x225.jpg 300w, https://ba0sh1.com/wp-content/uploads/2018/03/d1356-makeruno-buzzer-1-1024x768.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2018/03/d1356-makeruno-buzzer-1-768x576.jpg 768w, https://ba0sh1.com/wp-content/uploads/2018/03/d1356-makeruno-buzzer-1-1536x1152.jpg 1536w, https://ba0sh1.com/wp-content/uploads/2018/03/d1356-makeruno-buzzer-1-2048x1536.jpg 2048w, https://ba0sh1.com/wp-content/uploads/2018/03/d1356-makeruno-buzzer-1-1568x1176.jpg 1568w" sizes="(max-width: 300px) 100vw, 300px" /><figcaption id="caption-attachment-1251" class="wp-caption-text">Buzzer &amp; User Button</figcaption></figure></li>
<li><strong>Power option</strong>. Remember the gigantic 5.5mm DC jack and USB type B receptacle on the original Arduino UNO? Those are replaced by one single USB Micro-B port. Who does not carry a micro-USB cable now a days?</li>
</ul>
<p>Summarize for the Good: More built-in peripherals, easier to power. All these significantly reduced the ownership cost and save precious classroom time.</p>
<h4>The Bad</h4>
<ul>
<li>I cannot really fault the board except for one issue: the CH340G USB-Serial chip it used. Well frankly speaking it is a bit unfair because I had not encountered one single problem with this chip. But historically CH340G had some issues with Mac OSX and it is largely due to the driver. So Mac users need to pay attention to download the correct driver. It is puzzling that the official WCH driver download page lists CH340G OSX driver as CH341.<br />
For Windows (Windows 10) users, driver is downloaded automatically from Windows Update hence no problem what-so-ever.</p>
<p><figure id="attachment_1256" aria-describedby="caption-attachment-1256" style="width: 225px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="wp-image-1256 size-medium" src="https://ba0sh1.com/wp-content/uploads/2018/03/5d043-makeruno-ch340g-225x300.jpg" alt="CH340G" width="225" height="300" srcset="https://ba0sh1.com/wp-content/uploads/2018/03/5d043-makeruno-ch340g-225x300.jpg 225w, https://ba0sh1.com/wp-content/uploads/2018/03/5d043-makeruno-ch340g-768x1024.jpg 768w, https://ba0sh1.com/wp-content/uploads/2018/03/5d043-makeruno-ch340g-1152x1536.jpg 1152w, https://ba0sh1.com/wp-content/uploads/2018/03/5d043-makeruno-ch340g.jpg 1200w" sizes="(max-width: 225px) 100vw, 225px" /><figcaption id="caption-attachment-1256" class="wp-caption-text">CH340G</figcaption></figure></li>
</ul>
<h4>The Ugly</h4>
<ul>
<li>Without reservation, I do have one complain. Look at the &#8220;GND&#8221; silkscreen label below. It seems as though the bottom three pins are all &#8220;GND&#8221;s because the bottom two pins are not labeled. But in fact the bottom most pin is VIN in official Arduino and &#8220;5VOUT&#8221; in Maker UNO. During one test I erroneously clipped the ground clip of my scope probe onto that pin, and BOOM, my USB hub turn itself off. So my board is a per-production version, I hope these pins can be properly labeled.
<p><figure id="attachment_1257" aria-describedby="caption-attachment-1257" style="width: 225px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="wp-image-1257 size-medium" src="https://ba0sh1.com/wp-content/uploads/2018/03/8a16a-makeruno-vin-225x300.jpg" alt="VIN Label" width="225" height="300" srcset="https://ba0sh1.com/wp-content/uploads/2018/03/8a16a-makeruno-vin-225x300.jpg 225w, https://ba0sh1.com/wp-content/uploads/2018/03/8a16a-makeruno-vin-768x1024.jpg 768w, https://ba0sh1.com/wp-content/uploads/2018/03/8a16a-makeruno-vin-1152x1536.jpg 1152w, https://ba0sh1.com/wp-content/uploads/2018/03/8a16a-makeruno-vin.jpg 1200w" sizes="(max-width: 225px) 100vw, 225px" /><figcaption id="caption-attachment-1257" class="wp-caption-text">VIN Label</figcaption></figure></li>
</ul>
<h4>The Clever</h4>
<p>Something went beyond &#8220;The Good&#8221; level. Lets save the best for last. And the best things are not always how good the construction is, how comprehensive the features are. For this time, the award belongs to the designer who made all the effort to include a blank space at back of the board for student to write his/her name! Who the genius designed this must have tons of experience in classroom! And my ultimate respect!</p>
<figure id="attachment_1260" aria-describedby="caption-attachment-1260" style="width: 640px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2018/03/ee37f-makeruno-nametag.jpg"><img decoding="async" loading="lazy" class="wp-image-1260 size-large" src="https://ba0sh1.com/wp-content/uploads/2018/03/ee37f-makeruno-nametag-768x1024.jpg" alt="Silkscreen" width="640" height="853" srcset="https://ba0sh1.com/wp-content/uploads/2018/03/ee37f-makeruno-nametag-768x1024.jpg 768w, https://ba0sh1.com/wp-content/uploads/2018/03/ee37f-makeruno-nametag-225x300.jpg 225w, https://ba0sh1.com/wp-content/uploads/2018/03/ee37f-makeruno-nametag-1152x1536.jpg 1152w, https://ba0sh1.com/wp-content/uploads/2018/03/ee37f-makeruno-nametag.jpg 1200w" sizes="(max-width: 640px) 100vw, 640px" /></a><figcaption id="caption-attachment-1260" class="wp-caption-text">Clever Silkscreen</figcaption></figure>
<p>So here I finished my short review. Don&#8217;t forget to read the excellent article by Ober at <a href="https://hackaday.io/project/79748-arduino-uno-for-education">https://hackaday.io/project/79748-arduino-uno-for-education</a>, detailing the story behind Maker UNO. And see you Mar 23 2018 at KickStarter.</p>
<p><iframe loading="lazy" title="$6 Maker UNO: Simplifying Arduino for {Education}" src="https://www.kickstarter.com/projects/cytrontech/6-maker-uno-simplifying-arduino-for-education/widget/video.html" height="360.0" width="640" frameborder="0" scrolling="no"></iframe></p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2018/03/18/arduino-redesigned-maker-uno-review/">Arduino Redesigned &#8211; Maker UNO Review</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2018/03/18/arduino-redesigned-maker-uno-review/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Season&#8217;s Greeting from VFDuino</title>
		<link>https://ba0sh1.com/2014/12/24/seasons-greeting-vfduino/</link>
					<comments>https://ba0sh1.com/2014/12/24/seasons-greeting-vfduino/#respond</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Wed, 24 Dec 2014 13:52:16 +0000</pubDate>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[VFD]]></category>
		<guid isPermaLink="false">https://www.ba0sh1.com/?p=1011</guid>

					<description><![CDATA[<p>To all my readers: Wish you a very Merry Christmas. VFDuino, Arduino compatible Vacuum Fluorescent Display module. Open source release imminent.</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2014/12/24/seasons-greeting-vfduino/">Season&#8217;s Greeting from VFDuino</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>To all my readers:</p>
<p>Wish you a very Merry Christmas.</p>
<p><span id="more-1011"></span></p>
<p><iframe loading="lazy" title="Wish everyone a very Merry Christmas." width="640" height="360" src="https://www.youtube.com/embed/aww5O6wBgbw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p>
<p>VFDuino, Arduino compatible Vacuum Fluorescent Display module. Open source release imminent.</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2014/12/24/seasons-greeting-vfduino/">Season&#8217;s Greeting from VFDuino</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2014/12/24/seasons-greeting-vfduino/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>FlappyDuino &#8211; Arduino Day 2014 celebration</title>
		<link>https://ba0sh1.com/2014/03/29/flappyduino-arduino-day-2014-celebration/</link>
					<comments>https://ba0sh1.com/2014/03/29/flappyduino-arduino-day-2014-celebration/#comments</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Fri, 28 Mar 2014 16:01:25 +0000</pubDate>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Distance Sensor]]></category>
		<category><![CDATA[TFT]]></category>
		<guid isPermaLink="false">https://www.ba0sh1.com/?p=915</guid>

					<description><![CDATA[<p>March 29 2014 is Arduino&#8217;s 10 years birthday, also the World&#8217;s Arduino Day. In conjunction with the global celebration, SG Makers in partnership with IDA is organizing a whole series of events for Singapore Arduino lovers....</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2014/03/29/flappyduino-arduino-day-2014-celebration/">FlappyDuino &#8211; Arduino Day 2014 celebration</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>March 29 2014 is Arduino&#8217;s 10 years birthday, also the World&#8217;s Arduino Day. In conjunction with the global celebration, <a title="SGMakers" href="http://sgmakers.com/" target="_blank" rel="noopener">SG Makers</a> in partnership with <a title="IDA" href="http://www.ida.gov.sg/" target="_blank" rel="noopener">IDA</a> is organizing a whole series of events for Singapore Arduino lovers. And I was invited to showcase some Arduino projects.<span id="more-915"></span></p>
<p>Being not too much dedicated to Arduino, I have to quickly put up something demo-able. And since I&#8217;ve been playing with display devices often, I decided to make an Arduino graphics project. After two weeks, I finished my first Arduino game &#8212; FlappyDuino (thanks SG Makers William Hooi for inventing the name).</p>
<p>The project hardware is really simple. It only contains an Arduino Pro Mini, a ST7735 SPI TFT panel and a distance sensor (Sharp GP2Y0A21YK0F, which I used before in <a title="Project Crystal (Part 1)" href="https://www.ba0sh1.com/project-crystal-part-1/" target="_blank" rel="noopener">Project Crystal</a>). I have put the KiCAD schematic, PCB and Arduino sketch code at <a title="FlappyDuino" href="https://github.com/baoshi/FlappyDuino" target="_blank" rel="noopener">https://github.com/baoshi/FlappyDuino</a>. Feel free to download and criticise my code.</p>
<p>Lazy me also think a video is worth thousands of words.</p>
<p><iframe loading="lazy" title="FlappyDuino" width="640" height="360" src="https://www.youtube.com/embed/uOS7CkUbVWU?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></p>
<p>Happy Birthday Arduino!</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2014/03/29/flappyduino-arduino-day-2014-celebration/">FlappyDuino &#8211; Arduino Day 2014 celebration</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2014/03/29/flappyduino-arduino-day-2014-celebration/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
		<item>
		<title>JTAG adapter for Arduino Micro</title>
		<link>https://ba0sh1.com/2013/12/31/jtag-adapter-arduino-micro/</link>
					<comments>https://ba0sh1.com/2013/12/31/jtag-adapter-arduino-micro/#comments</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Tue, 31 Dec 2013 14:55:14 +0000</pubDate>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[AVR]]></category>
		<category><![CDATA[JTAG]]></category>
		<category><![CDATA[JTAGICE3]]></category>
		<guid isPermaLink="false">https://www.ba0sh1.com/?p=848</guid>

					<description><![CDATA[<p>For the holiday season I get myself an AVR JTAGICE3. Holding the new shiny emulator and a bunch of Arduino boards, what shall I do? Of course to hop onto the all-hail...</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/12/31/jtag-adapter-arduino-micro/">JTAG adapter for Arduino Micro</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>For the holiday season I get myself an AVR JTAGICE3. Holding the new shiny emulator and a bunch of Arduino boards, what shall I do? Of course to hop onto the all-hail Atmel Studio and ditch the toy-alike Arduino software. Reason being? Debugging Arduino code with serial console is no fun. I need my single steps, breakpoints and watches back. In fact the Arduino boards seems to be more valuable (to me) without the software. The onboard ISP connector seems to be standard and it &#8220;just works&#8221; with JTAGICE3. Well, I had this &#8220;just works&#8221; impression until I tried it on the new Arduino Micro board&#8230;<span id="more-848"></span></p>
<p>Make the story straight. The Atmel ISP connector combines SPI bus and RESET signal. SPI is used for downloading program, and RESET implements Atmel&#8217;s &#8220;debugWire&#8221; on-chip debug system. debugWire OCD is a very fancy protocol that uses only one RESET pin to debug. ATmega328p supports debugWire, and hence the ISP connector on Arduino UNO can be used for debugging. Arduino Micro uses a newer ATmega32U4 chip. Surprisingly debugWire is missing from the product datasheet, instead JTAG is listed. JTAG uses 4 I/O pins,  from Arduino Micro schematic we can see the JTAG pins (TDI/TDO/TMS/TCK) are multiplexed with analog pin A0-A3. It appears I have to sacrifice these analog pins for the JTAG interface.</p>
<figure id="attachment_854" aria-describedby="caption-attachment-854" style="width: 288px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-854  " title="JTAG pins on Arduino Micro" alt="JTAG pins on Arduino Micro" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/c611b-atmega32u4-jtag.png" width="288" height="196" /><figcaption id="caption-attachment-854" class="wp-caption-text">JTAG pins on Arduino Micro</figcaption></figure>
<p>JTAGICE3 comes with a 10-pin JTAG header, with the definition as follows:</p>
<figure id="attachment_855" aria-describedby="caption-attachment-855" style="width: 133px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="size-full wp-image-855 " title="JTAG header" alt="JTAG header" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/863a1-jtag-header.png" width="133" height="135" /><figcaption id="caption-attachment-855" class="wp-caption-text">JTAGICE3 JTAG Pinout</figcaption></figure>
<p>All I need to do is to make an adapter connecting these pins:</p>
<figure id="attachment_857" aria-describedby="caption-attachment-857" style="width: 462px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/590aa-arduino-micro-jtag.png" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-857  " title="JTAG on Arduino Micro" alt="JTAG on Arduino Micro" src="https://www.ba0sh1.com/wp-content/uploads/2013/12/Arduino-Micro-JTAG-1024x423.png" width="462" height="191" /></a><figcaption id="caption-attachment-857" class="wp-caption-text">JTAG on Arduino Micro</figcaption></figure>
<p>The actual construction is done on a perf board. I made it Arduino &#8220;Shield&#8221; type so they can be simply stacked together.</p>
<figure id="attachment_859" aria-describedby="caption-attachment-859" style="width: 600px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/756bb-arduino-micro-jtag-shield.png"><img decoding="async" loading="lazy" class="size-full wp-image-859" alt="Arduino Micro JTAG Shield" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/756bb-arduino-micro-jtag-shield.png" width="600" height="450" srcset="https://ba0sh1.com/wp-content/uploads/2013/12/756bb-arduino-micro-jtag-shield.png 600w, https://ba0sh1.com/wp-content/uploads/2013/12/756bb-arduino-micro-jtag-shield-300x225.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a><figcaption id="caption-attachment-859" class="wp-caption-text">Arduino Micro JTAG Shield</figcaption></figure>
<p>I admit it looks quite dangerous when stacked up <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f62e.png" alt="😮" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<figure id="attachment_861" aria-describedby="caption-attachment-861" style="width: 600px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/74d25-arduino-micro-with-jtag.png" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class="size-full wp-image-861 " alt="JTAG connected" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/74d25-arduino-micro-with-jtag.png" width="600" height="450" srcset="https://ba0sh1.com/wp-content/uploads/2013/12/74d25-arduino-micro-with-jtag.png 600w, https://ba0sh1.com/wp-content/uploads/2013/12/74d25-arduino-micro-with-jtag-300x225.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></a><figcaption id="caption-attachment-861" class="wp-caption-text">JTAG connected</figcaption></figure>
<p>I hook up JTAGICE3 and choose JTAG interface in Atmel Studio. And no surprise. Murphy gets me everytime! &#8220;[ERROR] No JTAG devices detected.&#8221; is the only reply I get. I Scratch my head several hours then to realize how stupid I were. Since the pins PF4-PF7 have been used as analog inputs for Arduino, how can JTAG establish connection with these pins! And the resolution is simple: connect using ISP header and enable the JTAGEN fuse bit. Now I feel the usefulness of ISP connector.</p>
<figure id="attachment_862" aria-describedby="caption-attachment-862" style="width: 560px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/2863d-enable-jtagen.png" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-862  " alt="Enable JTAGEN Fuse" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/12/2863d-enable-jtagen.png" width="560" height="480" srcset="https://ba0sh1.com/wp-content/uploads/2013/12/2863d-enable-jtagen.png 700w, https://ba0sh1.com/wp-content/uploads/2013/12/2863d-enable-jtagen-300x257.png 300w" sizes="(max-width: 560px) 100vw, 560px" /></a><figcaption id="caption-attachment-862" class="wp-caption-text">Enable JTAGEN Fuse</figcaption></figure>
<p>I can finally talk to ATmega32U4 using JTAG and do some debugging. The coming year will be interesting <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/12/31/jtag-adapter-arduino-micro/">JTAG adapter for Arduino Micro</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2013/12/31/jtag-adapter-arduino-micro/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Singapore Mini Maker Faire, 2nd year</title>
		<link>https://ba0sh1.com/2013/08/21/singapore-mini-maker-faire-2nd-year/</link>
					<comments>https://ba0sh1.com/2013/08/21/singapore-mini-maker-faire-2nd-year/#comments</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Wed, 21 Aug 2013 06:02:15 +0000</pubDate>
				<category><![CDATA[Diary]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Maker Faire]]></category>
		<guid isPermaLink="false">https://www.ba0sh1.com/?p=740</guid>

					<description><![CDATA[<p>Well I should have written this earlier since the Singapore Mini Maker Faire 2013 (#SMMF13) has passed for weeks. This is the second year of the event and the venue was relocated...</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/08/21/singapore-mini-maker-faire-2nd-year/">Singapore Mini Maker Faire, 2nd year</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Well I should have written this earlier since the Singapore Mini Maker Faire 2013 (#SMMF13) has passed for weeks.</p>
<p>This is the second year of the event and the venue was relocated from the remote (to me) Science Center to Singapore&#8217;s busiest Orchard area. And it is free entry for all <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p><span id="more-740"></span> If anything would dominate the theme of the whole faire, that is 3D printer. This year we see less MakerBots, more self-built devices.</p>
<figure id="attachment_741" aria-describedby="caption-attachment-741" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/1cfcc-smmf13-3d-printer-huge.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-741 " alt="Huge 3D printer" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/1cfcc-smmf13-3d-printer-huge.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/1cfcc-smmf13-3d-printer-huge.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/1cfcc-smmf13-3d-printer-huge-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-741" class="wp-caption-text">Huge 3D printer</figcaption></figure>
<p>The huge printer &#8220;B.O.B&#8221; by romscraj (<a href="http://romscraj.com/">http://romscraj.com</a>). Its gigantic metal frame makes every other printer looks like a toy. But it is not printing by the time I reach there. Printing huge object will take a long while, I guess&#8230;</p>
<figure id="attachment_743" aria-describedby="caption-attachment-743" style="width: 614px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/2a16a-smmf13-3d-printer-wood.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-743 " alt="Wood 3D printer" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/2a16a-smmf13-3d-printer-wood.jpg" width="614" height="408" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/2a16a-smmf13-3d-printer-wood.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2013/08/2a16a-smmf13-3d-printer-wood-300x199.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/08/2a16a-smmf13-3d-printer-wood-768x510.jpg 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-743" class="wp-caption-text">Wood 3D printer</figcaption></figure>
<p>An unfinished wooden 3D printer (mill? laser cutter?) silently sits beside a MakerBot Replactor 2, but certainly catches more attention. The wood framework is as sturdy as it looks. The booth is within the Sustainable Living Lab (SL2) platform, nobody was there at the moment, pity <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f641.png" alt="🙁" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<figure id="attachment_742" aria-describedby="caption-attachment-742" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/0fe25-smmf13-3d-printer-delta-3d.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-742 " alt="Delta 3D printer" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/0fe25-smmf13-3d-printer-delta-3d.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/0fe25-smmf13-3d-printer-delta-3d.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/0fe25-smmf13-3d-printer-delta-3d-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-742" class="wp-caption-text">Delta 3D printer</figcaption></figure>
<p>This is the first time I saw the &#8220;Rostock Delta 3D&#8221; driving mechanism. Watching the three step motors running mad to keep the extrude platform flat == nerd porn.</p>
<figure id="attachment_751" aria-describedby="caption-attachment-751" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/c3166-smmf13-ultrasonic.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-751 " title="Ultrasonic water purifier" alt="Ultrasonic water purifier" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/c3166-smmf13-ultrasonic.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/c3166-smmf13-ultrasonic.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/c3166-smmf13-ultrasonic-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-751" class="wp-caption-text">Ultrasonic water purifier</figcaption></figure>
<p>Singapore Academy of Young Engineers &amp; Scientists (SAYES, wonderful name) brought us ultrasonic water purifier. It (supposedly) uses high power ultrasonic wave to break dusts. The water in the photo may not look clear at the moment but half minute before a handful bunch of sands were just dropped in. BTW it effectively cleaned by glasses as well <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f600.png" alt="😀" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<figure id="attachment_752" aria-describedby="caption-attachment-752" style="width: 614px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/e4362-smmf13-mood-indicator.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-752 " title="Mood indicator" alt="Mood indicator" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/e4362-smmf13-mood-indicator.jpg" width="614" height="408" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/e4362-smmf13-mood-indicator.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2013/08/e4362-smmf13-mood-indicator-300x199.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/08/e4362-smmf13-mood-indicator-768x510.jpg 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-752" class="wp-caption-text">Mood indicator</figcaption></figure>
<p>Mood indicator by Media Lab LASALLE. It aggregates twitter messages and trying to detect sender&#8217;s mood by indexing keywords. A map is then plotted showing the mood of the people around the world. Is Singapore the world&#8217;s unhappiest nation?</p>
<figure id="attachment_753" aria-describedby="caption-attachment-753" style="width: 614px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/b6cec-smmf13-temperature-feeling.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-753" title="Temperature recoder" alt="Temperature recoder" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/b6cec-smmf13-temperature-feeling.jpg" width="614" height="408" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/b6cec-smmf13-temperature-feeling.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2013/08/b6cec-smmf13-temperature-feeling-300x199.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/08/b6cec-smmf13-temperature-feeling-768x510.jpg 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-753" class="wp-caption-text">Temperature recorder</figcaption></figure>
<p style="text-align:left;">Temperature recorder by the same Lab. It has integrated temperature sensor (of course), a GPS module and a dial letting people to choose if they feel cold/cool/perfect/warm. The data are then aggregated to map the temperature across the island. Very practical crowd sourcing application.</p>
<figure id="attachment_758" aria-describedby="caption-attachment-758" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/194b8-smmf13-soundscape.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-758 " title="Immersive soundscape" alt="Immersive soundscape" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/194b8-smmf13-soundscape.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/194b8-smmf13-soundscape.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/194b8-smmf13-soundscape-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-758" class="wp-caption-text">Immersive soundscape</figcaption></figure>
<p>This Soundscape application (available on Andriod Market) creates 3D sound effects. Its bigger speaker brother (to the left side, sorry for the truncating) further demonstrates highly directional capability, definitely great for public events so the neighbours can stop complaining. These young startups has a website http://www.immersivesoundscape.com/ Please do checkout their cool inventions.</p>
<figure id="attachment_757" aria-describedby="caption-attachment-757" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/3e966-smmf13-arduino-email.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-757 " alt="Email prank" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/3e966-smmf13-arduino-email.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/3e966-smmf13-arduino-email.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/3e966-smmf13-arduino-email-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-757" class="wp-caption-text">Email prank</figcaption></figure>
<p>You will never see shortage of Arduino on a Maker Faire. This Email prank thingy contains an Arduino and a WiFi shield. It sends out an automated email when the button is pressed. May I have email notification when my coffee is ready?</p>
<p>Talking about coffee, these two coffee machines brew super strong coffee without electricity or hot watermark. Everything back to nature (future?).</p>
<figure id="attachment_762" aria-describedby="caption-attachment-762" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/ae6cb-smmf13-coffee-machine-1.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-762 " alt="Coffee machine" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/ae6cb-smmf13-coffee-machine-1.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/ae6cb-smmf13-coffee-machine-1.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/ae6cb-smmf13-coffee-machine-1-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-762" class="wp-caption-text">Coffee machine</figcaption></figure>
<figure id="attachment_763" aria-describedby="caption-attachment-763" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/105d6-smmf13-coffee-machine-2.jpg"><img decoding="async" loading="lazy" class=" wp-image-763 " alt="Fancier coffee machine" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/105d6-smmf13-coffee-machine-2.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/105d6-smmf13-coffee-machine-2.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/105d6-smmf13-coffee-machine-2-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-763" class="wp-caption-text">Fancier coffee machine</figcaption></figure>
<p>This piano staircase leads up to the stage. But the sound is too weak to attract much attentions. How about a 100W Class-D Amp next time?</p>
<figure id="attachment_764" aria-describedby="caption-attachment-764" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/547b7-smmf13-piano-stair.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-764 " title="Piano staircase" alt="Piano staircase" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/547b7-smmf13-piano-stair.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/547b7-smmf13-piano-stair.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/547b7-smmf13-piano-stair-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-764" class="wp-caption-text">Piano staircase</figcaption></figure>
<p>For the Arduino community <a title="3E Gadgets" href="http://3egadgets.com/" target="_blank" rel="noopener">3E gadgets</a> has brought in the little lovely TinyDuino board. Within the tiny 20x20mm square a full Adruino Pro Mini (ATMega328P/8Mhz) equivalent circuit is setup. There are also bunch of tiny shields available so user will have no difficulty to deal with the miniature connector. Another good news to the Makers here in Singapore is that 3E Gadgets is now an official distributor of <a title="http://www.adafruit.com" href="http://www.adafruit.com" target="_blank" rel="noopener">Adafruit Industrie</a>s. That means we do not need to pay the $8 mailing fee and wait extended days to get hands onto Adafruit products!</p>
<figure id="attachment_783" aria-describedby="caption-attachment-783" style="width: 480px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/09/5aae8-smmf13-3egadgets.jpg"><img decoding="async" loading="lazy" class=" wp-image-783  " title="3EGadgets" alt="3EGadgets" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/09/5aae8-smmf13-3egadgets.jpg" width="480" height="480" srcset="https://ba0sh1.com/wp-content/uploads/2013/09/5aae8-smmf13-3egadgets.jpg 1000w, https://ba0sh1.com/wp-content/uploads/2013/09/5aae8-smmf13-3egadgets-300x300.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/09/5aae8-smmf13-3egadgets-150x150.jpg 150w, https://ba0sh1.com/wp-content/uploads/2013/09/5aae8-smmf13-3egadgets-768x768.jpg 768w" sizes="(max-width: 480px) 100vw, 480px" /></a><figcaption id="caption-attachment-783" class="wp-caption-text">3EGadgets (Courtesy of Mr. Ferris Kwok)</figcaption></figure>
<p>This is the second year I met Mr Jolyon Caplin. He is demonstrating a remote controlled toy excavator. With his modification this $80 toy almost became a robot dancer!</p>
<figure id="attachment_768" aria-describedby="caption-attachment-768" style="width: 614px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/c5f2b-smmf13-excavator.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-768 " alt="Remote controlled excavator" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/c5f2b-smmf13-excavator.jpg" width="614" height="408" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/c5f2b-smmf13-excavator.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2013/08/c5f2b-smmf13-excavator-300x199.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/08/c5f2b-smmf13-excavator-768x510.jpg 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-768" class="wp-caption-text">Remote controlled excavator</figcaption></figure>
<p>And as usual his signature light rods. Talking about the circuit, it is powered by an old school PIC16F84 (still available in Simlim Tower :-o) Getting most out of a chip is definitely the art of electronics design.</p>
<figure id="attachment_767" aria-describedby="caption-attachment-767" style="width: 408px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/5fec6-smmf13-light-rod.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-767 " alt="Remote controlled light rod" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/5fec6-smmf13-light-rod.jpg" width="408" height="614" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/5fec6-smmf13-light-rod.jpg 680w, https://ba0sh1.com/wp-content/uploads/2013/08/5fec6-smmf13-light-rod-199x300.jpg 199w" sizes="(max-width: 408px) 100vw, 408px" /></a><figcaption id="caption-attachment-767" class="wp-caption-text">Remote controlled light rod</figcaption></figure>
<p>If Ian of Dangerousprototypes is the celebrity last year, this year we have Bunnie Huang. He gave a talk &#8220;Singapore better than United States for hardware makers&#8221;. Full report of his talk is <a title="Singapore better than United States for hardware makers: Bunnie Huang" href="http://sgentrepreneurs.com/2013/07/29/singapore-a-better-than-silicon-valley-for-hardware-makers-bunnie-huang/" target="_blank" rel="noopener">here</a>.</p>
<figure id="attachment_770" aria-describedby="caption-attachment-770" style="width: 614px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/05bcf-smmf13-bunnie.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-770 " alt="Bunnie and me" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/05bcf-smmf13-bunnie.jpg" width="614" height="461" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/05bcf-smmf13-bunnie.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2013/08/05bcf-smmf13-bunnie-300x225.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/08/05bcf-smmf13-bunnie-768x576.jpg 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-770" class="wp-caption-text">Bunnie and me</figcaption></figure>
<p>I shall end this post by introducing this wonderful lady engineer Michelle and her projects at <a title="AIS CUBE" href="http://www.aiscube.com/" target="_blank" rel="noopener">AIS CUBE</a>.</p>
<figure id="attachment_771" aria-describedby="caption-attachment-771" style="width: 614px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/8328e-smmf13-forum-aiscube.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-771 " alt="Michelle from AIS Cube" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/8328e-smmf13-forum-aiscube.jpg" width="614" height="408" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/8328e-smmf13-forum-aiscube.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2013/08/8328e-smmf13-forum-aiscube-300x199.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/08/8328e-smmf13-forum-aiscube-768x510.jpg 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-771" class="wp-caption-text">Michelle from AIS Cube</figcaption></figure>
<p>With a team of 2 they managed to implement a BASIC virtual machine inside PIC32 micro controller, together will a full development platform named &#8220;Sonata&#8221;. This is a tremendous meaningful project that opens the door for kids to learn electronics. I would compare it with the Raspberry Pi project, but this is much more low level yet easier to hand on.</p>
<p>And yes I&#8217;m the lucky bastard who grabbed one of these tiny twik^2 dev boards. At first glance it contains a PIC32 MCU, a 3 axis accelerometer  and a tiny RGB OLED screen (which is nice!) Please expect more to come about this little board.</p>
<figure id="attachment_773" aria-describedby="caption-attachment-773" style="width: 614px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/d25f4-smmf13-twik.jpg" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class=" wp-image-773 " title="twik^2 dev board" alt="twik^2 dev board" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/08/d25f4-smmf13-twik.jpg" width="614" height="444" srcset="https://ba0sh1.com/wp-content/uploads/2013/08/d25f4-smmf13-twik.jpg 1024w, https://ba0sh1.com/wp-content/uploads/2013/08/d25f4-smmf13-twik-300x217.jpg 300w, https://ba0sh1.com/wp-content/uploads/2013/08/d25f4-smmf13-twik-768x555.jpg 768w" sizes="(max-width: 614px) 100vw, 614px" /></a><figcaption id="caption-attachment-773" class="wp-caption-text">twik^2 dev board</figcaption></figure>
<p>Final words:</p>
<p>The maker movement definitely increases the talent pool. It is true even in a crowded island like Singapore where everyone is busy making ends meet. I hope those who sitting high above can hear it. Instead of bring talent in, why not incubate own talents? (quote from Bennie)</p>
<p><span style="color:#888888;">PS: No Raspberry Pi this year, why?</span></p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/08/21/singapore-mini-maker-faire-2nd-year/">Singapore Mini Maker Faire, 2nd year</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2013/08/21/singapore-mini-maker-faire-2nd-year/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Hacking a cheap LED voltmeter</title>
		<link>https://ba0sh1.com/2013/07/26/hacking-a-cheap-led-voltmeter/</link>
					<comments>https://ba0sh1.com/2013/07/26/hacking-a-cheap-led-voltmeter/#comments</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Thu, 25 Jul 2013 16:05:38 +0000</pubDate>
				<category><![CDATA[Project]]></category>
		<category><![CDATA[7-Segment]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[I2C]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[STM8]]></category>
		<guid isPermaLink="false">https://www.ba0sh1.com/?p=720</guid>

					<description><![CDATA[<p>I&#8217;m planning to build a EEVblog-ish constant dummy load for battery and power supply testing. Dave in his build used a LCD voltmeter for the display. In the senseless pursuit of difference, I...</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/07/26/hacking-a-cheap-led-voltmeter/">Hacking a cheap LED voltmeter</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m planning to build a <a title="EEVblog #102" href="http://www.eevblog.com/2010/08/01/eevblog-102-diy-constant-current-dummy-load-for-power-supply-and-battery-testing/" target="_blank" rel="noopener">EEVblog-ish constant dummy load</a> for battery and power supply testing. Dave in his build used a LCD voltmeter for the display. In the senseless pursuit of difference, I tried other display solutions including character LCD, graphics LCD, OLED, TFT, AMOLED, IPS, which resulted in several previous blogs but nothing ends up to be satisfactory. Along with the complexity grows exponentially from one  solution to another, I slowly start to feel the importance of KISS concept, keep it simple stupid. All I need is just a number display, nothing fancy, nothing pricey, nothing takes my attention away from the analog circuitry. I decided to go back to the basic 7-segment LED display. &#8220;Simplicity is the ultimate sophistication&#8221;, how elegant it is!<span id="more-720"></span></p>
<p>I ordered several <a title="LED voltmeter" href="http://item.taobao.com/item.htm?id=12715421542" target="_blank" rel="noopener">LED voltmeters</a> from a taobao seller. It costs RMB16 each, about US$2.6 excluding shipping. The original design was for battery measurement on scooters. The advertised accuracy is 0.2%, which turns on my bullshit detector immediately. So the first thing I did after receiving it, was &#8220;don&#8217;t turn it on, tear it apart&#8221;. The manufacture did not scratch off the markings so the schematic can be easily traced out.</p>
<figure id="attachment_723" aria-describedby="caption-attachment-723" style="width: 770px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/07/73b04-voltmeter-schematic.png"><img decoding="async" loading="lazy" class="size-large wp-image-723" alt="Voltmeter schematic" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/07/73b04-voltmeter-schematic.png?w=1024&#038;h=703" width="770" height="528" srcset="https://ba0sh1.com/wp-content/uploads/2013/07/73b04-voltmeter-schematic.png 3277w, https://ba0sh1.com/wp-content/uploads/2013/07/73b04-voltmeter-schematic-300x206.png 300w, https://ba0sh1.com/wp-content/uploads/2013/07/73b04-voltmeter-schematic-1024x703.png 1024w, https://ba0sh1.com/wp-content/uploads/2013/07/73b04-voltmeter-schematic-768x527.png 768w, https://ba0sh1.com/wp-content/uploads/2013/07/73b04-voltmeter-schematic-1536x1055.png 1536w, https://ba0sh1.com/wp-content/uploads/2013/07/73b04-voltmeter-schematic-2048x1406.png 2048w, https://ba0sh1.com/wp-content/uploads/2013/07/73b04-voltmeter-schematic-1568x1077.png 1568w" sizes="(max-width: 770px) 100vw, 770px" /></a><figcaption id="caption-attachment-723" class="wp-caption-text">Voltmeter schematic</figcaption></figure>
<p>The heart of the voltmeter is &#8220;STM8S003F3P6&#8221;, a 8-bit MCU with 16MHz clock and 8K flash by STMicroelectronics. <a title="STM8S003F3" href="http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00024550.pdf" target="_blank" rel="noopener">Datasheet </a>shows this MCU has built-in 10-bit ADC. Driving 4 digits 10000 counts with 10-bit ADC is definitely overrating. While somebody may argue that ADC resolution can be increased using oversampling, without proper noise injection circuitry I cannot confirm it actually works. Furthermore the MCU does not have a dedicated ADC reference input. Supply voltage is used as reference. As the display needs to scan each digit continuously, supply fluctuation is inevitable. How to maintain ADC accuracy with changing reference? The original designer may have considered this problem initially. He/She added D9 (TL431 2.5V reference) and connected its output to analog input AIN6. So before measuring the input voltage at AIN5, 2.5V at AIN6 can be measured and then AIN5 calculated relatively. However D9 was not populated on the board I receive.</p>
<p>I was in the verge of desolder the LED and suddenly an idea bumped into me: why not reprogram this module and use it as a sole display? By doing so I can offload the LED driving task to the STM8. The original designer has reserved footprint for a 6-pin connector with SWIM programming/debugging interface and TX/RX serial port, reprogram should not be too difficult. A second thought is that it would be even better if I can emulate a popular serial LED module so that all existing codes can be used. The &#8220;<a title="LED Backpack" href="http://www.adafruit.com/products/878" target="_blank" rel="noopener">Adafruit 4-digit 7-segment LED backpack</a>&#8221; is soon identified. Ladyada did some remarkable work to develop Arduino library and wrote a tutorial for it. Make something compatible with her work is my honor.</p>
<p>However the Adafruit LED backpack is using I2C interface. The hardware I2C pins on the voltmeter is already occupied for driving LED, which means I need to bit banging I2C slave protocol on GPIO pins. There are many online resources about I2C master emulation, but I2C slave emulation is very limited. The best one I found is an article published by TI &#8220;<a title="Software I2C Slave Using the MSP430" href="http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa330" target="_blank" rel="noopener">Software I2C Slave Using the MSP430</a>&#8220;. It depicts an entire state-driven process of interpreting I2C signals, together with some assembly code for MSP430. To help understanding I made a flowchart, and  rewrote the library using C code. As I&#8217;m not planning to explain the detail of the process here, all codes and documentation can be found at <a href="https://github.com/baoshi/I2C-LED">https://github.com/baoshi/I2C-LED</a></p>
<p>Some notes to potential users:</p>
<ol>
<li>The code is compiled using &#8220;IAR Embedded Workbench for STMicroelectronics STM8&#8221;. The &#8220;KickStarter&#8221; edition is free (but needs registration) and limited to 8K code size, just nice for STM8S003F3.</li>
<li>The library is written in C. The efficiency is not as good as assembly code. As a result, at full 16Mhz clock and best optimization, I&#8217;m only able to archive maximum I2C clock of 63KHz, conservatively I use 50KHz clock during testing.</li>
<li>I tried the COSMIC compiler but the efficiency seems to be worse.</li>
<li>To change I2C clock in Arduino environment, edit TWI_FREQ variable in &lt;arduino&gt;librariesWireutilitytwi.h, or follow the great <a title="I2C - Two-Wire Peripheral Interface - for Arduino" href="http://www.gammon.com.au/forum/?id=10896" target="_blank" rel="noopener">article </a>by Nick Gammon.</li>
<li>STM8s does not support per-pin interrupt configuration, which is really pain-in-the-xxxx. Simulate the interrupt mode cost a lot of CPU time and hence is directly responsible for the slow I2C clock support. Migrate to a better MCU platform should give better result. But if you can change a MCU, why not use hardware I2C directly?</li>
<li>I2C reading is not implemented. The LED display is write-only.</li>
<li>Adafruit&#8217;s LED backpack uses Holtek HT16K33. All HT16K33 display modes are emulated, but not keyboard scan functions. Anyway Adafruit&#8217;s LED backpack does not have keyboard interface either.</li>
<li>Averaging current consumption (at 3.3V) is about 2.6mA, which is larger than HT16K33&#8217;s 1-2mA.</li>
<li>Developing and debugging this library is not possible without Bus Pirate&#8217;s 2Wire mode. Using 2Wire mode I can clock each bit individually so as to trace the I2C state.</li>
<li>Other than lower cost, there is nothing better than the Adafruit&#8217;s LED backpack. I did it because I can.</li>
<li>Hardware modification is shown in the picture below. Only the MCU, two resistor network and some bypass capacitors are needed.</li>
</ol>
<figure id="attachment_725" aria-describedby="caption-attachment-725" style="width: 600px" class="wp-caption aligncenter"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/07/745b2-modified-voltmeter.jpg"><img decoding="async" loading="lazy" class="size-full wp-image-725" alt="Modified voltmeter with I2C interface" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/07/745b2-modified-voltmeter.jpg" width="600" height="450" srcset="https://ba0sh1.com/wp-content/uploads/2013/07/745b2-modified-voltmeter.jpg 600w, https://ba0sh1.com/wp-content/uploads/2013/07/745b2-modified-voltmeter-300x225.jpg 300w" sizes="(max-width: 600px) 100vw, 600px" /></a><figcaption id="caption-attachment-725" class="wp-caption-text">Modified voltmeter with I2C interface</figcaption></figure>
<p>All source code, schematic (in KiCad format), documents are available at <a href="https://github.com/baoshi/I2C-LED">https://github.com/baoshi/I2C-LED</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/07/26/hacking-a-cheap-led-voltmeter/">Hacking a cheap LED voltmeter</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2013/07/26/hacking-a-cheap-led-voltmeter/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
		<item>
		<title>Tutorial: 3.3V hacking for Arduino Nano</title>
		<link>https://ba0sh1.com/2013/03/30/tutorial-3-3v-hacking-for-arduino-nano/</link>
					<comments>https://ba0sh1.com/2013/03/30/tutorial-3-3v-hacking-for-arduino-nano/#comments</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Sat, 30 Mar 2013 12:17:24 +0000</pubDate>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[AVR]]></category>
		<guid isPermaLink="false">https://www.ba0sh1.com/?p=591</guid>

					<description><![CDATA[<p>Hey I&#8217;m writing my first tutorial 🙂 During my recent OLED testing I wrote the software using Arduino Pro Mini 3.3 &#8211; the only Arduino board with 3.3V I/O (Lilipad may be the...</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/03/30/tutorial-3-3v-hacking-for-arduino-nano/">Tutorial: 3.3V hacking for Arduino Nano</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hey I&#8217;m writing my first tutorial <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>During my recent<a title="Poorman’s OLED test jig" href="https://www.ba0sh1.com/oled-test-jig/"> OLED testing</a> I wrote the software using Arduino Pro Mini 3.3 &#8211; the only Arduino board with 3.3V I/O (Lilipad may be the other one but not breadboard friendly). Originally I was using the SPI interface and everything works fine. But when I&#8217;m trying to test the I2C interface I suddenly realize the I2C lines are not on the breadboard pins! Instead they are on top of the board and I have to use jumper wires to connect them, not as neat as I would like ;p<span id="more-591"></span></p>
<p>Looking into my inventory I found an Arduino Nano with all the necessary pins. But it uses 5V I/O only. So how to modify an Arduino Nano to 3.3V<!--more-->?  Adafruit already has a <a href="http://learn.adafruit.com/arduino-tips-tricks-and-techniques/3-3v-conversion" target="_blank" rel="noopener">tutorial</a> about it. But judging from the photos the modification is on a Uno. Uno uses different USB chip from Nano&#8217;s FT232RL, and hence we need some more steps.</p>
<p>So here is what we need:</p>
<ol>
<li>Arduino Nano (of course)</li>
<li>A 3.3V regulator in SOT-223 package. Please note the official Nano design uses UA78M05 regulator, which has a different pin configuration than the popular LM1117-3.3. The one I found compatible is Micrel&#8217;s <a href="http://www.micrel.com/_PDF/mic37100.pdf" target="_blank" rel="noopener">MIC37100-3.3WS</a>, Digikey link <a href="http://www.digikey.com/product-detail/en/MIC37100-3.3WS/576-1163-ND/771632" target="_blank" rel="noopener">here</a>.</li>
<li>An Atmel ISP programmer, such as AVR JTAGICE mkII, or usbasp, or even a second Arduino as ISP.</li>
<li>A good magnifier!</li>
</ol>
<p>Schematic below is the official Arduino Nano design with necessary modifications marked in red:</p>
<p style="text-align:center;"><a class="thumbnail" href="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/03/8fd06-arduinonano-3.3.png" target="_blank" rel="noopener"><img decoding="async" loading="lazy" class="aligncenter size-large wp-image-594" alt="ArduinoNano 3.3" src="https://www.ba0sh1.com/wp-content/uploads/2013/03/ArduinoNano-3.3-1024x662.png" width="770" height="497" /></a></p>
<ol>
<li>Replace the original voltage regulator.</li>
<li>Locate D1 from the board, cut the trace at cathode side and connect cathode to VIN of the regulator. Alternatively you can also remove D1 completely, but by doing so the Nano board is unable to be powered from USB, You&#8217;ll need to provide your own source voltage from Pin 1.</li>
<li>Cut the trace at FT232RL pin 4 (VCCIO), and connect pin 4 to pin 17 (3V3OUT). This enables FT232RL to use 3.3V logic.</li>
<li>Cut the trace at FT232RL pin 20 (VCC) and connect pin 20 to D1 anode (VUSB).</li>
</ol>
<p>I would suggest to trace your board carefully before doing step 3 and 4. In my case the board is a Chinese <del>enhanced</del> modified version and all the power pins are connected by vias under FT232RL. So I had to desolder the whole chip to break the links. Just to share my modified board:</p>
<figure id="attachment_595" aria-describedby="caption-attachment-595" style="width: 640px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="thumbnail size-full wp-image-595" alt="Modified Arduino Nano" src="http://blog.ba0sh1.com/wordpress/wp-content/uploads/2013/03/6c9d0-arduinonano-conversion.jpg" width="640" height="480" srcset="https://ba0sh1.com/wp-content/uploads/2013/03/6c9d0-arduinonano-conversion.jpg 640w, https://ba0sh1.com/wp-content/uploads/2013/03/6c9d0-arduinonano-conversion-300x225.jpg 300w" sizes="(max-width: 640px) 100vw, 640px" /><figcaption id="caption-attachment-595" class="wp-caption-text">Modified Arduino Nano</figcaption></figure>
<p>Till here the hardware modification is done.</p>
<p>However, if you carefully read the 660-page ATmega328 datasheet (which you should), at the bottom of first page:</p>
<figure id="attachment_597" aria-describedby="caption-attachment-597" style="width: 770px" class="wp-caption aligncenter"><img decoding="async" loading="lazy" class="thumbnail size-large wp-image-597" alt="ATmega328p clock" src="https://www.ba0sh1.com/wp-content/uploads/2013/03/ATmega328p-Clock-1024x699.png" width="770" height="525" /><figcaption id="caption-attachment-597" class="wp-caption-text">ATmega328p clock</figcaption></figure>
<p>Yes the chip is only specified at 10MHz with 3.3V supply. So unless you want to overclock your 3.3V Arduino at 16MHz, you should try to reduce the clock frequency.</p>
<p>Although the simplest way to modify clock frequency is to replace the 16MHz crystal with a 8MHz one, I&#8217;m out of luck because my board is using a tiny resonate instead of standard HC-49S crystal.</p>
<p>So the other way is modify the Arduino bootloader, configure CLKPR register to divide the clock by 2. To do this, follow the steps below:</p>
<ol>
<li><span style="line-height:13px;">Go to &#8220;c:arduino-1.0.3hardwarearduinobootloaders&#8221;, make a copy of &#8220;atmega&#8221; folder, I name my new folder &#8220;atmegad2&#8221;</span></li>
<li>Inside &#8220;atmegad2&#8221;, edit &#8220;ATmegaBOOT_168.c&#8221;, look for the main() function and add the following<br />
[code language=&#8221;cpp&#8221;]<br />
uint16_t w;</p>
<p>#ifdef CLKDIV2<br />
// Disable interrupts<br />
ch = SREG;<br />
cli();<br />
// Enable clock change<br />
CLKPR = _BV(CLKPCE);<br />
// Change clock division<br />
CLKPR = 0x1;<br />
// Enough time for new clock to be stable?<br />
asm volatile(<br />
  &quot;nop nt&quot;<br />
  &quot;nop nt&quot;<br />
  &quot;nop nt&quot;<br />
  &quot;nop nt&quot;<br />
);<br />
SREG = ch;<br />
#endif</p>
<p>#ifdef WATCHDOG_MODS<br />
&#8230;<br />
[/code]</li>
<li>Edit &#8220;Makefile&#8221;, add a new build target (I added right below &#8220;atmega328_pro8_isp: isp&#8221;)<br />
[code]<br />
atmega328_pro16div2: TARGET = atmega328_pro_16MHz_Div2<br />
atmega328_pro16div2: MCU_TARGET = atmega328p<br />
atmega328_pro16div2: CFLAGS += &#8216;-DMAX_TIME_COUNT=F_CPU&gt;&gt;4&#8217; &#8216;-DNUM_LED_FLASHES=1&#8217; -DBAUD_RATE=57600 -DDOUBLE_SPEED -DCLKDIV2<br />
atmega328_pro16div2: AVR_FREQ = 8000000L<br />
atmega328_pro16div2: LDSECTION  = &#8211;section-start=.text=0x7800<br />
atmega328_pro16div2: $(PROGRAM)_atmega328_pro_16MHzDiv2.hex<br />
[/code]</li>
<li>Create a batch file &#8220;env.bat&#8221;, content below. This is to set correct building environment for the boot loader. You do not need a separate installation of WinAVR as the current version of WinAVR has some definition problem with Arduino bootloader source. The WinAVR within Arduino distribution is just fine.<br />
[code]<br />
set path=c:arduino-1.0.3hardwaretoolsavrbin;c:Appsarduino-1.0.3hardwaretoolsavrutilsbin;%PATH%<br />
[/code]</li>
<li>Open a command prompt, cd into &#8220;c:arduino-1.0.3hardwarearduinobootloadersatmegad2&#8221;, execute the follow:<br />
[code]<br />
c:arduino-1.0.3hardwarearduinobootloadersatmegad2&gt;env.bat<br />
&#8230;&#8230;..<br />
c:arduino-1.0.3hardwarearduinobootloadersatmegad2&gt;make atmega328_pro16div2<br />
avr-gcc -g -Wall -O2 -mmcu=atmega328p -DF_CPU=8000000L   &#8216;-DMAX_TIME_COUNT=F_CPU&gt;&gt;4&#8217; &#8216;-DNUM_LED_FLASHES=1&#8217; -DBAUD_RATE=57600 -DDOUBLE_SPEED -DCLKDIV2   -c -o ATmegaBOOT_168.o ATmegaBOOT_168.c<br />
avr-gcc -g -Wall -O2 -mmcu=atmega328p -DF_CPU=8000000L   &#8216;-DMAX_TIME_COUNT=F_CPU&gt;&gt;4&#8217; &#8216;-DNUM_LED_FLASHES=1&#8217; -DBAUD_RATE=57600 -DDOUBLE_SPEED -DCLKDIV2 -Wl,&#8211;section-start=.text=0x7800 -o ATmegaBOOT_168_atmega328_pro_16MHzDiv2.elf ATmegaBOOT_168.o<br />
avr-objcopy -j .text -j .data -O ihex ATmegaBOOT_168_atmega328_pro_16MHzDiv2.elf ATmegaBOOT_168_atmega328_pro_16MHzDiv2.hex<br />
rm ATmegaBOOT_168_atmega328_pro_16MHzDiv2.elf ATmegaBOOT_168.o</p>
<p>c:arduino-1.0.3hardwarearduinobootloadersatmegad2&gt;<br />
[/code]</p>
<p>When the building ended, you should have &#8220;ATmegaBOOT_168_atmega328_pro_16MHzDiv2.hex&#8221; in the folder.</li>
<li>Use you ISP programmer, burn  &#8220;ATmegaBOOT_168_atmega328_pro_16MHzDiv2.hex&#8221; into ATmega328p chip. You do not need to reprogram the fuses but just in case you need, the fuse settings are:<br />
[code]<br />
HFUSE = DA<br />
LFUSE = FF<br />
EFUSE = 05<br />
[/code]</li>
</ol>
<p>Now you can use your Arduino Nano just as an Arduino Pro Mini 3.3/8Mhz, write some blink LED program to test the new clock. Have fun with 3.3V devices!</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2013/03/30/tutorial-3-3v-hacking-for-arduino-nano/">Tutorial: 3.3V hacking for Arduino Nano</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2013/03/30/tutorial-3-3v-hacking-for-arduino-nano/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<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 rel="nofollow" href="https://ba0sh1.com/2012/06/13/project-crystal-part-2/">Project Crystal (Part 2)</a> appeared first on <a rel="nofollow" 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="is-layout-flex wp-block-gallery-1 wp-block-gallery columns-3 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img decoding="async" loading="lazy" 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" loading="lazy" 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" loading="lazy" 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 class="wp-block-file"><object 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><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/14.0.0/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">
<iframe loading="lazy" title="Project Crystal Demo" width="640" height="360" src="https://www.youtube.com/embed/vYRVWFtfnt4?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div></figure>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2012/06/13/project-crystal-part-2/">Project Crystal (Part 2)</a> appeared first on <a rel="nofollow" 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>
		<item>
		<title>Project Crystal (Part 1)</title>
		<link>https://ba0sh1.com/2012/05/24/project-crystal-part-1/</link>
					<comments>https://ba0sh1.com/2012/05/24/project-crystal-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Baoshi]]></dc:creator>
		<pubDate>Thu, 24 May 2012 03:35:26 +0000</pubDate>
				<category><![CDATA[Project]]></category>
		<category><![CDATA[Arduino]]></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=26</guid>

					<description><![CDATA[<p>A small project I did while waiting for the Raspberry Pi &#8211; Arduino controlled RGB LED light. The initial idea was stolen taken from Luminch One I made several redesigns: RGB LED strip instead of...</p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2012/05/24/project-crystal-part-1/">Project Crystal (Part 1)</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>A small project I did while waiting for the Raspberry Pi &#8211; Arduino controlled RGB LED light.</p>
<p>The initial idea was <del>stolen</del> taken from <a href="http://makeprojects.com/Project/Luminch-One/1773/1" target="_blank" rel="noopener">Luminch One</a></p>
<p>I made several redesigns:</p>
<ol>
<li>RGB LED strip instead of original high-powered LED</li>
<li>Use battery power.</li>
</ol>
<div>
<p><span id="more-1261"></span>The journey for battery power ends up to be much more complex. The major concern is standby (light off) power consumption. I wished the circuit could remain standby for at least one week. With three 3100mAh 18650 battery cell at 3.7V each, the maximum allowed current draw works out as 3100 * 0.8 / 7 (days) / 24 (hrs) = 14.7mA (<a href="http://www.powerstream.com/battery-capacity-calculations.htm" target="_blank" rel="noopener">reference</a> here, number of cells actually does not help, but LED light needs 12V). However, the Arduino Nano alone consumes 20mA when running. After removing the power LED, it still consumes about 17mA. The distance sensor, Sharp GP2Y0A21YK0F takes another whopping 20mA. With these two monsters, standby time is 3100 * 0.8 / 37mA = 67 Hours ~ 2.8 days (show stopper).</p>
<p>It seems I need to turn off distance sensor and put Arduino into sleep mode during standby. It is solved by adding a Passive Infrared (PIR) sensor which powers on GP2Y0A21YK0F only when human (or pet) walks near the light. Together with AVR sleep mode the current now reduces to 2mA standby. My standby time is 51 days <img src="https://s.w.org/images/core/emoji/14.0.0/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>Here comes the schematic.</p>
<figure id="attachment_63" aria-describedby="caption-attachment-63" style="width: 1262px" class="wp-caption alignnone"><img decoding="async" loading="lazy" class="    wp-image-63 size-full" title="Crystal schematic" src="https://ba0sh1.com/wp-content/uploads/2012/06/69689-crystal_sch.png" alt="Crystal schematic" width="1262" height="769" srcset="https://ba0sh1.com/wp-content/uploads/2012/06/69689-crystal_sch.png 1262w, https://ba0sh1.com/wp-content/uploads/2012/06/69689-crystal_sch-300x183.png 300w, https://ba0sh1.com/wp-content/uploads/2012/06/69689-crystal_sch-1024x624.png 1024w, https://ba0sh1.com/wp-content/uploads/2012/06/69689-crystal_sch-768x468.png 768w" sizes="(max-width: 1262px) 100vw, 1262px" /><figcaption id="caption-attachment-63" class="wp-caption-text">Crystal schematic</figcaption></figure>
<p>Notes:</p>
<ol>
<li>Q1 controls power to the Sharp sensor. I tried to drive this sensor directly from an Arduino pin but failed. The sensor output is unstable. I believe GP2Y0A21YK0F  specified 20mA power draw is only average value. Its peak current is quite higher.</li>
<li>Q2 is reverse voltage protection (<a href="http://youtu.be/IrB-FPcv1Dc" target="_blank" rel="noopener">reference</a>)</li>
<li>J_LIGHT is the main RGB LED light. J_LIGHT_BK is for backup.</li>
<li>R1/R2 is voltage divider for battery voltage measurement.</li>
<li>J_INDI connects to a Bi-color (Red/Green) LED light as indication.</li>
</ol>
<div>
<p> The final construction will be on a perf-board. So I start Eagle PCB, set grid to 0.1inch and route the design. All files at the bottom.</p>
<p>Next part will include Arduino sketch, photos, and demo video. Stay tuned &#8230;</p>
</div>
</div>


<p></p>
<p>The post <a rel="nofollow" href="https://ba0sh1.com/2012/05/24/project-crystal-part-1/">Project Crystal (Part 1)</a> appeared first on <a rel="nofollow" href="https://ba0sh1.com">Digital Me</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://ba0sh1.com/2012/05/24/project-crystal-part-1/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
