<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>arvydas.co.uk</title>
	
	<link>http://www.arvydas.co.uk</link>
	<description>Think awesome, build awesome and be awesome.</description>
	<lastBuildDate>Mon, 19 Nov 2012 20:15:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/arvydas-uk" /><feedburner:info uri="arvydas-uk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc-sa/3.0/</creativeCommons:license><feedburner:emailServiceId>arvydas-uk</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Problems with Samsung Series 5 Ultrabook and USBTinyISP</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/RC0Pr2ELSNQ/</link>
		<comments>http://www.arvydas.co.uk/2012/11/problems-with-samsung-series-5-ultrabook-and-usbtinyisp/#comments</comments>
		<pubDate>Mon, 19 Nov 2012 20:10:18 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Hardware hacking]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=331</guid>
		<description><![CDATA[Well, this is somewhat disappointing&#8230; I recently acquired a Samsung Series 5 530U3B Ultrabook which is really nice and was going to make my main laptop for on the work on the go. Unfortunately it supplies insufficient power to my USBTinyISP &#8230; <a href="http://www.arvydas.co.uk/2012/11/problems-with-samsung-series-5-ultrabook-and-usbtinyisp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/11/samsung-530u3b.jpg" class="liimagelink" rel="lightbox[331]"><img class="alignnone size-medium wp-image-332" title="samsung-530u3b" src="http://www.arvydas.co.uk/wp-content/uploads/2012/11/samsung-530u3b-500x374.jpg" alt="" width="500" height="374" /></a></p>
<p>Well, this is somewhat disappointing&#8230; I recently acquired a Samsung Series 5 530U3B Ultrabook which is really nice and was going to make my main laptop for on the work on the go. Unfortunately it supplies insufficient power to my <a href="http://www.arvydas.co.uk/2012/09/using-usbtinyisp-to-program-attiny45-and-attiny85/" target="_blank" class="liinternal">USBTinyISP programmer</a>. The effect is that when I try to program ATTiny45, I get this error:</p>
<pre>Binary sketch size: 2,752 bytes (of a 4,096 byte maximum)
avrdude: verification error, first mismatch at byte 0x0040
 0x02 != 0x36
avrdude: verification error; content mismatch</pre>
<p>The verification fails on random memory addresses. This means that I will need to add an external power supply to my custom programmer or find a USB hub with external power supply. I think that the latter will be the easiest.</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/RC0Pr2ELSNQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/11/problems-with-samsung-series-5-ultrabook-and-usbtinyisp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/11/problems-with-samsung-series-5-ultrabook-and-usbtinyisp/</feedburner:origLink></item>
		<item>
		<title>Repairing Syma S031G helicopter</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/mw5plkvHei0/</link>
		<comments>http://www.arvydas.co.uk/2012/10/repairing-syma-s031g-helicopter/#comments</comments>
		<pubDate>Wed, 03 Oct 2012 00:51:57 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[R/C toy hacking]]></category>
		<category><![CDATA[Repairs]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=316</guid>
		<description><![CDATA[A few weeks ago I found this boxed Syma S031G helicopter in a ModelZone store on a special shelf where they are selling broken or otherwise non working gadgets. There were more of those broken helicopters for sale, but they &#8230; <a href="http://www.arvydas.co.uk/2012/10/repairing-syma-s031g-helicopter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-318" title="s031g-heli-title-image" src="http://www.arvydas.co.uk/wp-content/uploads/2012/10/s031g-heli-title-image.jpg" alt="" width="500" height="333" /></p>
<p>A few weeks ago I found this boxed Syma S031G helicopter in a ModelZone store on a special shelf where they are selling broken or otherwise non working gadgets. There were more of those broken helicopters for sale, but they were in a range of £30 and were listed as having RC transmitter problems or other faulty parts. It wouldn&#8217;t have made sense buying one without investigating if repairs wouldn&#8217;t even cost more than a new heli retailing for £59.99 at the same store (or 30% cheaper on eBay). Mine only had a handwritten sticker &#8220;broken&#8221; stuck to it and a price of £9.99. A quick inspection through the box didn&#8217;t show any signs of significant damage and shop assistant was kind enough to let me open the box and check if it had all parts. Transmitter, charger, heli, instructions and even spare rear propeller was in the box so I decided to take the risk and bough it.</p>
<p><span id="more-316"></span></p>
<p>Just to make it clear, this is not one of those tiny helis that fit into your palm, this is a significantly bigger helicopter with a full size radio remote control. Once I unpacked it I noticed that it had actually been flown as the blades showed a bit of wear and damage.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-wing1.jpg" class="liimagelink" rel="lightbox[316]"><img class="alignnone size-medium wp-image-319" title="syma-s031g-heli-wing1" src="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-wing1-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-wing2.jpg" class="liimagelink" rel="lightbox[316]"><img class="alignnone size-medium wp-image-320" title="syma-s031g-heli-wing2" src="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-wing2-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>But generally it looked like it was in a very decent condition.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-wing3.jpg" class="liimagelink" rel="lightbox[316]"><img class="alignnone size-medium wp-image-321" title="syma-s031g-heli-wing3" src="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-wing3-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>At first I could not get it to start at all, but then I found out that it has a gyroscope so it needs to be placed on a flat surface and left there for a few seconds in order for the gyroscope to calibrate itself. Luckily I was holding it just far enough in my hand and messing with a remote when to my big surprise the motors kicked in and blades started spinning just few centimetres away from my face! That was close, but it was working!</p>
<p>Unfortunately when I put it on the ground and tried to lift it off, it just didn&#8217;t have enough power and kept sliding on the floor with the full throttle on instead of going up in the air. Something was not right. Digging through the internet I found out that some of the guys who purchased it had similar problems, but they all ended up returning the item to the seller and getting a replacement. The helicopter is so cheap that nobody actually cares about fixing them and just bin them once they are broken. Well, that wasn&#8217;t an option for me :)</p>
<p>In one of those scarce forum posts I found that one of the owners of a similar heli had the same problem and ended up replacing the motors, because they tend to overheat and somehow wear out. I found a pair of motors for a reasonable £6.95 on eBay and decided to take one more risk for the toy and order them. I received the motors today.</p>
<p><img class="alignnone size-medium wp-image-317" title="s031g-heli-motors" src="http://www.arvydas.co.uk/wp-content/uploads/2012/10/s031g-heli-motors-500x333.jpg" alt="" width="500" height="333" /></p>
<p>It took a while to disassemble it in order to get to the motors to replace them.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-repair-1.jpg" class="liimagelink" rel="lightbox[316]"><img class="alignnone size-thumbnail wp-image-322" title="syma-s031g-heli-repair-1" src="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-repair-1-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-repair-2.jpg" class="liimagelink" rel="lightbox[316]"><img class="alignnone size-thumbnail wp-image-323" title="syma-s031g-heli-repair-2" src="http://www.arvydas.co.uk/wp-content/uploads/2012/10/syma-s031g-heli-repair-2-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>I had to remove all lower part of the helicopter and unscrew the bottom blade holder in order to push the gearbox outwards so that I could access the screws for the motors.</p>
<p>I assembled it back again (without any leftover screws!) and now it works! I can feel the power when I&#8217;m holding it in my hands with full throttle and it does lift off from the ground at home, but it&#8217;s too big to fly indoors. It was already too dark to go outside and fly it so will have to wait for a real test tomorrow. Hopefully I will not crash it during the first flight :)</p>
<p>Heli &#8211; £9.99, motors &#8211; £6.95, fun fixing it &#8211; priceless!</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/mw5plkvHei0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/10/repairing-syma-s031g-helicopter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/10/repairing-syma-s031g-helicopter/</feedburner:origLink></item>
		<item>
		<title>A world of free IC samples</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/EhOaiNcfEr0/</link>
		<comments>http://www.arvydas.co.uk/2012/09/a-world-of-free-ic-samples/#comments</comments>
		<pubDate>Fri, 21 Sep 2012 11:52:03 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=311</guid>
		<description><![CDATA[The world is full of free integrated circuit samples, you just need to know where to look for them. Today I got a very nicely packaged batch of samples from Maxim Integrated. All I had to do was ask nicely &#8230; <a href="http://www.arvydas.co.uk/2012/09/a-world-of-free-ic-samples/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-312" title="2012-09-21 11.20.53" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/2012-09-21-11.20.53-500x375.jpg" alt="" width="500" height="375" /></p>
<p>The world is full of free integrated circuit samples, you just need to know where to look for them. Today I got a very nicely packaged batch of samples from <a href="http://www.maximintegrated.com/" target="_blank" class="liexternal">Maxim Integrated</a>. All I had to do <a href="https://shop.maximintegrated.com/storefront/searchsample.do" target="_blank" class="liexternal">was ask nicely</a> :)</p>
<p>I filled all relevant information four days ago and today I have 2 x MAX7219CNG and 2 x MAX7221CNG LED display drivers. They retail at about £8 and £13 without shipping so it&#8217;s about £42 of free stuff! Will be using them to control <a href="http://www.rapidonline.com/Electronic-Components/Kingbright-8x8-Red-Dot-Matrix-Display-Cathode-57-0694" target="_blank" class="liexternal">8&#215;8 LED matrices</a> I got a while back from Rapid Online.</p>
<p>Thanks Maxim Integrated!</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/EhOaiNcfEr0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/09/a-world-of-free-ic-samples/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/09/a-world-of-free-ic-samples/</feedburner:origLink></item>
		<item>
		<title>Repairing Alba CR305IP FM clock radio alarm</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/h7zxBdaPRoM/</link>
		<comments>http://www.arvydas.co.uk/2012/09/repairing-alba-cr305ip-fm-clock-radio-alarm/#comments</comments>
		<pubDate>Thu, 13 Sep 2012 19:55:47 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Hardware hacking]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=292</guid>
		<description><![CDATA[I bought this Alba FM clock radio a very long time ago at a car boot sale for £2. Seller was selling a bunch of them. It had everything in the box: power supply, cables, various iPod dock plastic bits &#8230; <a href="http://www.arvydas.co.uk/2012/09/repairing-alba-cr305ip-fm-clock-radio-alarm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/alba-radio.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-full wp-image-304" title="My beautiful picture" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/alba-radio.jpg" alt="" width="500" height="423" /></a></p>
<p>I bought this Alba FM clock radio a very long time ago at a car boot sale for £2. Seller was selling a bunch of them. It had everything in the box: power supply, cables, various iPod dock plastic bits and even AV cable. Took it home, plugged it in and&#8230; it was working, but no audio at all. I could control the iPod, set the clock and etc, but it just did not make any sound. Well, you know&#8230; it was just £2 :) So it was left in a cupboard for a very long time until today I decided to take it out and have a look at what&#8217;s inside.</p>
<p><span id="more-292"></span></p>
<p>It was very easy to disassemble. Just a few Phillips screws, nothing interesting. Inside there was a bunch of boards all connected together.<a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/01-overview.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-medium wp-image-294" title="01-overview" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/01-overview-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>A few more close-up pictures where you can see that boards have silkscreens which describe the connector pinouts. Nice!</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/02-closup-tuner-board.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-thumbnail wp-image-295" title="02-closup-tuner-board" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/02-closup-tuner-board-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/03-closup-controller-board.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-thumbnail wp-image-296" title="03-closup-controller-board" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/03-closup-controller-board-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/04-closup-controller-board-connector-descriptions.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-thumbnail wp-image-297" title="04-closup-controller-board-connector-descriptions" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/04-closup-controller-board-connector-descriptions-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/04-closup-controller-board-connector-descriptions.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-thumbnail wp-image-297" title="04-closup-controller-board-connector-descriptions" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/04-closup-controller-board-connector-descriptions-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/05-closup-amp-board.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-thumbnail wp-image-298" title="05-closup-amp-board" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/05-closup-amp-board-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/10-closup-ipod-connector.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-thumbnail wp-image-299" title="10-closup-ipod-connector" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/10-closup-ipod-connector-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>It consist of 4 boards interconnected together into sort of a circle:</p>
<ol>
<li>Amplifier board</li>
<li>iPod connector board</li>
<li>Tuner board that also acts as button controller</li>
<li>Main controller board that has the LCD screen and some Chinese chip with all the &#8220;brains&#8221;</li>
</ol>
<p>It was time to start troubleshooting.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/00-title-image.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-medium wp-image-293" title="00-title-image" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/00-title-image-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>I started with testing the audio signal by connecting iPod and following audio path with the oscilloscope up to the amplifier board with TDA2822. A quick check on the sample schematics for the chip</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/TDA2822.gif" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-full wp-image-306" title="TDA2822" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/TDA2822.gif" alt="" width="345" height="256" /></a></p>
<p>(<a href="http://www.e-dan.co.uk/electronics/TDA2822.html" target="_blank" class="liexternal">image source</a>)</p>
<p>I could see that the signal comes to the inputs on pins 6 and 7, but there is no output on pins 1 and 3. Strange&#8230; I started suspecting a faulty chip, but then decided to check if the chip is getting power at all. Nope, no power for the chip. I noticed that it&#8217;s not powered directly, but actually power comes from the controller board on a wire named POWER-CTL, goes into few transistors and finally to the chip. This means that the amplifier chip is automatically powered down when controller goes into standby.</p>
<p>A few more tests later I noticed that the signal was never sent to the board when I turned the radio on. I found the microcontroller pin that was sending the signal, but it never reached the board. It all pointed to a faulty SMD transistor. Looking at the board I figured out that this was a PNP transistor and just as soon as I soldered another big one in, it started playing tunes from my iPod!</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/10-transistor-fix.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-medium wp-image-300" title="10-transistor-fix" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/10-transistor-fix-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>So iPod was playing through the speakers, AUX input too, but switching to radio source silence could only be heard. Checking the board I also noticed that there was a TUNER-CTL signal going from the controller board to the tuner. Tracing it with the oscilloscope I noticed a similar pattern: a signal is switched on the microcontroller, but it does not get to the tuner board. This time it was a 47k SMD resistor causing this. A quick check with a multimeter in the circuit showed no resistance at all. Strange so I took another big 47k resistor and soldered it on top of the SMD resistor and radio started working!</p>
<p>Now it was time to cleanup a bit and solder the components properly. When I removed the SMD resistor it showed the correct 47k resistance. Yeah, I know that I shouldn&#8217;t be measuring components in circuit, but sometimes it&#8217;s a quick and easy test. It turned out that when I soldered my own 47k resistor on top, the total resistance of the two resistors became 47k / 2 = 23.5k. Funnily, that made the TUNER-CTL signal finally reach the tuner board. Did they make a mistake during the assembly and soldered a too high resistance SMD resistor? Did they even test it before packing up? Yeah, it&#8217;s Alba, a brand you probably shouldn&#8217;t trust. I removed both 47k resistors, soldered 22k and the radio started working again as it should have.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/20-partially-assembled.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-medium wp-image-302" title="20-partially-assembled" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/20-partially-assembled-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>A quick check just before putting in last screws to make sure that everything still works and my assembly didn&#8217;t screw anything up. Great, it&#8217;s still working fine! The audio quality is rubbish, but I had more fun fixing it and finally got to experience the benefits of a high quality oscilloscope to troubleshoot faulty electronics. Couldn&#8217;t have done it without it.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/21-working.jpg" class="liimagelink" rel="lightbox[292]"><img class="alignnone size-medium wp-image-303" title="21-working" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/21-working-500x333.jpg" alt="" width="500" height="333" /></a></p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/h7zxBdaPRoM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/09/repairing-alba-cr305ip-fm-clock-radio-alarm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/09/repairing-alba-cr305ip-fm-clock-radio-alarm/</feedburner:origLink></item>
		<item>
		<title>Using USBTinyISP to program ATTiny45 and ATTiny85</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/jynH0ao6V-o/</link>
		<comments>http://www.arvydas.co.uk/2012/09/using-usbtinyisp-to-program-attiny45-and-attiny85/#comments</comments>
		<pubDate>Mon, 03 Sep 2012 20:15:38 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Hardware hacking]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=281</guid>
		<description><![CDATA[There are a few different ways how to program ATTiny microcontrollers &#8211; lovely little chip with so much potential. I tried programming with Arduino Uno, but the solution was too clumsy with lots of wires connected to the breadboard from &#8230; <a href="http://www.arvydas.co.uk/2012/09/using-usbtinyisp-to-program-attiny45-and-attiny85/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/usbtinyisp-connected-to-attiny-programming-adapter.jpg" class="liimagelink" rel="lightbox[281]"><img class="alignnone size-medium wp-image-285" title="usbtinyisp-connected-to-attiny-programming-adapter" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/usbtinyisp-connected-to-attiny-programming-adapter-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>There are a few different ways how to program ATTiny microcontrollers &#8211; lovely little chip with so much potential. I tried programming with Arduino Uno, but the solution was too clumsy with lots of wires connected to the breadboard from Arduino. Then I remembered that I have <a href="http://www.ladyada.net/make/usbtinyisp/" class="liexternal">USBTinyISP</a> and apparently it is one of the best ways to program these chips.</p>
<p><span id="more-281"></span></p>
<p>The schematics on <a href="http://fritzing.org/projects/attiny85-programming-with-usbtinyisp/" class="liexternal">how to wire USBTinyISP to ATTiny45 or ATTiny85</a> I found from Fritzing library.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/attiny-programming-schematics.jpg" class="liimagelink" rel="lightbox[281]"><img class="alignnone size-full wp-image-286" title="attiny-programming-schematics" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/attiny-programming-schematics.jpg" alt="" width="327" height="501" /></a></p>
<p>I wanted a bit more permanent solution so decided to build it on a stripboard.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/strip-board-for-attiny45-attiny85-programming-using-usbtinyisp.jpg" class="liimagelink" rel="lightbox[281]"><img class="alignnone size-medium wp-image-284" title="strip-board-for-attiny45-attiny85-programming-using-usbtinyisp" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/strip-board-for-attiny45-attiny85-programming-using-usbtinyisp-500x212.jpg" alt="" width="500" height="212" /></a></p>
<p>It might be not the best layout, but I currently have stripboards only this size. The only place where strips need to be cut are in between the IC and connector legs. It was very easy to solder and it works very well! Still some space left for test circuit if I come up with one.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/attiny-programming-adapter-top.jpg" class="liimagelink" rel="lightbox[281]"><img class="alignnone size-medium wp-image-283" title="attiny-programming-adapter-top" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/attiny-programming-adapter-top-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/attiny-programming-adapter-bottom.jpg" class="liimagelink" rel="lightbox[281]"><img class="alignnone size-medium wp-image-282" title="attiny-programming-adapter-bottom" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/attiny-programming-adapter-bottom-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>How to set up your IDE to program these chips can be found in the High-Low Tech blog <a href="http://hlt.media.mit.edu/?p=1695" class="liexternal">Programming an ATtiny w/ Arduino 1.0.1</a>.</p>
<p><strong>Update:</strong> You<em> really really really</em> don&#8217;t want to put your chip incorrectly into the DIP socket. I accidentally did it and the just 10s later the chip got extremely hot. Good thing I managed to rescue it and it seems to be working. Lesson learned!</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/jynH0ao6V-o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/09/using-usbtinyisp-to-program-attiny45-and-attiny85/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/09/using-usbtinyisp-to-program-attiny45-and-attiny85/</feedburner:origLink></item>
		<item>
		<title>Adventures with RepRap Prusa Mendel 3D Printer</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/HPKnYNLjFEA/</link>
		<comments>http://www.arvydas.co.uk/2012/09/adventures-with-reprap-prusa-mendel-3d-printer/#comments</comments>
		<pubDate>Sat, 01 Sep 2012 01:30:39 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[3D Printer]]></category>
		<category><![CDATA[Prusa Mendel]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=254</guid>
		<description><![CDATA[My highly anticipated 3D printer has finally arrived! I bought it from eBay as a fully assembled device, just because I didn&#8217;t want to bother assembling it myself or looking for parts to build from scratch. I was hoping it &#8230; <a href="http://www.arvydas.co.uk/2012/09/adventures-with-reprap-prusa-mendel-3d-printer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/00-reprap-setup.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-255" title="RepRap Prusa Mendel Setup" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/00-reprap-setup-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>My highly anticipated 3D printer has finally arrived! I bought it from eBay as a fully assembled device, just because I didn&#8217;t want to bother assembling it myself or looking for parts to build from scratch. I was hoping it to be plug and play, but it turned out to require a bit more work to get it working.</p>
<p><span id="more-254"></span></p>
<p>It was supposed to be fully calibrated, but it wasn&#8217;t. My first print turned out to be quite a bit of a mess.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/01_first-mess.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-256" title="01_first-mess" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/01_first-mess-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>That&#8217;s the base of a cube. The hot end was too high. In fact, it was about 4 mm above the heated bed when it was supposed to be just 0.5 mm above. Once I realigned the heated bed, lowered the endstop of the Z axis it started working as it was supposed to and printed a few nice little test cubes.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/02-cubes.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-257" title="02-cubes" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/02-cubes-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>I&#8217;m still not satisfied with the two corners of the cubes, they are supposed to be close to 90 degrees, but they are somehow rounded. Still not sure what the cause of this is. The hollow box didn&#8217;t print very well too. I think I will need to add a fan to the print area in order for the plastic to cool down more quickly, otherwise it distorts some very thin edges.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/03-messy-cube.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-258" title="03-messy-cube" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/03-messy-cube-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>Solid items print rather well. The bigger one is about 2x2x1cm size.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/04-bits.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-259" title="04-bits" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/04-bits-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/05-mario-shoes.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-260" title="05-mario-shoes" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/05-mario-shoes-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>I had enough testing. What&#8217;s the point of those small cubes? :) That&#8217;s when I decided that I wanted to print something useful like gears for the next printer!</p>
<p><a href="http://www.arvydas.co.uk/2012/09/adventures-with-reprap-prusa-mendel-3d-printer/"><em>Click here to view the embedded video.</em></a></p>
<p>The big one printed out fine, but the small one was a mess. I think that the problem is somewhat software related for the small one, because printer was trying to print as if it wasn&#8217;t a solid block with empty space inside.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/06-gears.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-261" title="06-gears" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/06-gears-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>I still don&#8217;t have a clue what I need to set in Pronterface to make it print a fully solid item. Here is the close up shot of the small part.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/07-gears-failure.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-262" title="07-gears-failure" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/07-gears-failure-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>So it turns out that my printer is good at printing larger designs until I have it sorted out.</p>
<p>Next item on the list of useful things was a case for my Raspberry Pi. I got the <a href="http://www.thingiverse.com/thing:24945" target="_blank" class="liexternal">design from the Thingiverse</a>. It turned out stunning!</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-1.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-263" title="08-raspi-1" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-1-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-2.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-265" title="08-raspi-2" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-2-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-3.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-266" title="08-raspi-3" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-3-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-4.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-267" title="08-raspi-4" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-4-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-5.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-268" title="08-raspi-5" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-5-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-6.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-269" title="08-raspi-6" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-6-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>You can see in the pictures below that the printout of small parts was not very good, but the case still snaps well and holds Raspberry Pi in place. I especially love the airflow vents!</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-7.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-270" title="08-raspi-7" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-7-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-8.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-271" title="08-raspi-8" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-8-150x150.jpg" alt="" width="150" height="150" /></a><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-9.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-thumbnail wp-image-272" title="08-raspi-9" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-9-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>It seems that the printer leaves some empty spaces, that&#8217;s something to look into and troubleshoot for later. Could be related to issues with printing out those small bits too.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-10.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-264" title="08-raspi-10" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/08-raspi-10-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>My biggest suspect now is the big extruder gear. It is a bit loose on the bolt and printer does not quite stop the extrusion when printer reverses the extrusion motor.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/09/09-bolt-gear-problem.jpg" class="liimagelink" rel="lightbox[254]"><img class="alignnone size-medium wp-image-273" title="09-bolt-gear-problem" src="http://www.arvydas.co.uk/wp-content/uploads/2012/09/09-bolt-gear-problem-500x333.jpg" alt="" width="500" height="333" /></a></p>
<p>A few tips if you have just purchased a 3D printer:</p>
<ul>
<li>Aligning of all axis and heated bed it is a must. 3D printers are somewhat delicate, they can be easily misaligned during transportation. Test your calibration with this <a href="http://www.thingiverse.com/thing:13053" target="_blank" class="liexternal">calibration object</a>.</li>
<li>If you are trying to align endstops and printer does not go beyond the previous position of an endstop, just type in &#8220;G92 Z40&#8243; in the Pronterface for RAMPS board with Marlin firmware. This will make the printer assume that Z axis is still 4cm above the endstop.</li>
<li>Start with very basic objects like cubes and etc. Make sure they are printed correctly before printing any complex objects.</li>
<li>Be patient and don&#8217;t try to remove the object while the heated bed is above 60 degrees Celsius. At 40 degrees it will be very easy to remove.</li>
<li>Ensure that your 3D item is printable and does not have any parts that &#8220;hang in the air&#8221; without proper support.</li>
</ul>
<p>DIY 3D printers may be a lot cheaper than industrial, but require a lot of tinkering and manual calibration. It&#8217;s still amazing that you can hold an item in your hands when it was only a 3D design in your computer minutes ago. It&#8217;s hard to describe how excited I am when I finally able to experience the potential of 3D printing!</p>
<p>I will keep updating this blog with my adventures in 3D printing and troubleshooting. Make sure you <a href="http://feeds.feedburner.com/arvydas-uk" target="_blank" class="liexternal">subscribe to my RSS</a>!</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/HPKnYNLjFEA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/09/adventures-with-reprap-prusa-mendel-3d-printer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/09/adventures-with-reprap-prusa-mendel-3d-printer/</feedburner:origLink></item>
		<item>
		<title>Arduino touch sensor ky036</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/mg1uU0OgluY/</link>
		<comments>http://www.arvydas.co.uk/2012/08/arduino-touch-sensor-ky036/#comments</comments>
		<pubDate>Sat, 18 Aug 2012 20:20:29 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Arduino Tutorials]]></category>
		<category><![CDATA[Hardware hacking]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=235</guid>
		<description><![CDATA[I received a few Arduino touch sensors from DealExtreme just because they were dirty cheap and I have a few ideas where I could use them as device power switches. There is probably an easier way to build a touch &#8230; <a href="http://www.arvydas.co.uk/2012/08/arduino-touch-sensor-ky036/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/ky036.jpg" class="liimagelink" rel="lightbox[235]"><img class="alignnone size-medium wp-image-236" title="ky036 touch sensor" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/ky036-500x323.jpg" alt="" width="500" height="323" /></a></p>
<p>I received a few<a href="http://dx.com/p/human-body-touch-sensor-module-black-blue-121514" target="_blank" class="liexternal"> Arduino touch sensors</a> from DealExtreme just because they were dirty cheap and I have a few ideas where I could use them as device power switches. There is probably an easier way to build a touch sensor for Arduino without that many additional components, but let&#8217;s see what we can do with this cheap sensor for just $2.6 or less than £1.7.</p>
<p><span id="more-235"></span></p>
<p>As for most things from DealExtreme (and many other cheap components sites originating from China) there is no documentation, but it turns out to be very easy to use this sensor. Just hook it up to an Arduino using the following diagram:</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/TouchSensor.jpg" class="liimagelink" rel="lightbox[235]"><img class="alignnone size-medium wp-image-237" title="TouchSensor" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/TouchSensor-500x274.jpg" alt="" width="500" height="274" /></a></p>
<p>It has 4 pins:</p>
<ul>
<li><strong>A0</strong> &#8211; inverted signal</li>
<li><strong>G</strong> &#8211; should be connected to ground</li>
<li><strong>+</strong> &#8211; should be connected to 5V power supply</li>
<li><strong>D0</strong> &#8211; touch signal</li>
</ul>
<p>Touch signal consist of 50Hz signal pulse with 4.8ms pulse width on the D0 output pin for as long as finger (or any other body part) touches the bent pin on the transistor.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/TouchSensor-d0.png" class="liimagelink" rel="lightbox[235]"><img class="alignnone size-full wp-image-239" title="TouchSensor-d0" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/TouchSensor-d0.png" alt="" width="320" height="234" /></a></p>
<p>The A0 pin produces inverted signal.</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/TouchSensor-a0.png" class="liimagelink" rel="lightbox[235]"><img class="alignnone size-full wp-image-238" title="TouchSensor-a0" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/TouchSensor-a0.png" alt="" width="320" height="234" /></a></p>
<p>That&#8217;s all there is to it. The pulse signal provides a small bit of complexity for the Arduino code, but is easily handled by adding a 50ms timeout of HIGH signal in the D0 pin connected to digital pin 3 on Arduino:</p>
<pre class="brush: cpp; title: ; notranslate">
//setup default LED on pin 13
const int ledPin =  13;
//setup touch sensor on pin 3
const int touchPin = 3;

//store the time when last event happened
unsigned long lastEvent = 0;
//store the state of LED
boolean ledOn = false;

//setup pins
void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(touchPin, INPUT);
}

void loop(){
  //read touch sensor state
  int touchState = digitalRead(touchPin);

  //only interested in the HIGH signal
  if (touchState == HIGH) {
    //if 50ms have passed since last HIGH pulse, it means that the
    //touch sensor has been touched, released and touched again
    if (millis() - lastEvent &gt; 50) {
      //toggle LED and set the output
      ledOn = !ledOn;
      digitalWrite(ledPin, ledOn ? HIGH : LOW);
    }

    //remember when last event happened
    lastEvent = millis();
  }
}
</pre>
<p>Touching the touch sensor will light up the LED, but will not do anything as long as user keeps touching the sensor. Releasing the sensor and touching it again will turn off the LED and so on.</p>
<p>P.S. Loving my <a href="http://www.arvydas.co.uk/2012/05/going-beyond-just-a-hobby/" target="_blank" class="liinternal">Rigol DS1052E digital oscilloscope</a>. It&#8217;s a real eye opener to electronic signal debugging. Fantastic piece of kit.</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/mg1uU0OgluY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/08/arduino-touch-sensor-ky036/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/08/arduino-touch-sensor-ky036/</feedburner:origLink></item>
		<item>
		<title>APC.IO – a $49 all in one PC by VIA: a bicycle for your mind or a big disappointment?</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/c8H5fDTbNkA/</link>
		<comments>http://www.arvydas.co.uk/2012/08/apc-io-a-49-all-in-one-pc-by-via-a-bicycle-for-your-mind-or-a-big-disappointment/#comments</comments>
		<pubDate>Tue, 14 Aug 2012 13:45:10 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Hardware hacking]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=219</guid>
		<description><![CDATA[There was a lot of excitement in the hardware hacker community back in May 2012 when VIA announced APC.IO &#8211; a $49 all in one Android PC. I was excited too, but my excitement quickly faded away when I received &#8230; <a href="http://www.arvydas.co.uk/2012/08/apc-io-a-49-all-in-one-pc-by-via-a-bicycle-for-your-mind-or-a-big-disappointment/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0631.jpg" class="liimagelink" rel="lightbox[219]"><img class="alignnone size-medium wp-image-225" title="APC.IO connected" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0631-500x375.jpg" alt="" width="500" height="375" /></a></p>
<p>There was a lot of excitement in the hardware hacker community back in May 2012 when VIA announced APC.IO &#8211; a $49 all in one Android PC. I was excited too, but my excitement quickly faded away when I received my two APC&#8217;s a few weeks ago and booted them up&#8230;</p>
<p><span id="more-219"></span></p>
<h2>Quick overview in pictures</h2>
<div id="attachment_220" class="wp-caption alignnone" style="width: 510px"><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0626.jpg" class="liimagelink" rel="lightbox[219]"><img class="size-medium wp-image-220" title="IMG_0626" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0626-500x375.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">APC comes very well packaged</p></div>
<div id="attachment_221" class="wp-caption alignnone" style="width: 510px"><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0627.jpg" class="liimagelink" rel="lightbox[219]"><img class="size-medium wp-image-221" title="IMG_0627" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0627-500x375.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">Nice little box</p></div>
<div id="attachment_222" class="wp-caption alignnone" style="width: 510px"><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0628.jpg" class="liimagelink" rel="lightbox[219]"><img class="size-medium wp-image-222" title="IMG_0628" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0628-500x375.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">First glance at the contents</p></div>
<div id="attachment_223" class="wp-caption alignnone" style="width: 510px"><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0629.jpg" class="liimagelink" rel="lightbox[219]"><img class="size-medium wp-image-223" title="IMG_0629" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0629-500x374.jpg" alt="" width="500" height="374" /></a><p class="wp-caption-text">Contents unpacked: charger, USB cable to connect to PC, sticker, board and case plate</p></div>
<div id="attachment_224" class="wp-caption alignnone" style="width: 510px"><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0630.jpg" class="liimagelink" rel="lightbox[219]"><img class="size-medium wp-image-224" title="IMG_0630" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0630-500x375.jpg" alt="" width="500" height="375" /></a><p class="wp-caption-text">Hooked up and connected</p></div>
<div id="attachment_226" class="wp-caption alignnone" style="width: 510px"><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0633.jpg" class="liimagelink" rel="lightbox[219]"><img class="size-medium wp-image-226" title="IMG_0633" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/IMG_0633-500x374.jpg" alt="" width="500" height="374" /></a><p class="wp-caption-text">Size comparison with Raspberry Pi and MK802 Android PC inside a USB stick</p></div>
<h2>The good</h2>
<ul>
<li>Relatively small form factor</li>
<li>Wide range of connectivity options: HDMI, VGA, 4xUSB, LAN, audio in/out</li>
<li>Micro SD card expansion</li>
<li><a href="http://apc.io/blog/2012/07/26/apc-kernel-and-bootloader-available-for-download-forum-opens/" target="_blank" class="liexternal">Kernel and Bootloader available for download</a></li>
</ul>
<h2>The bad</h2>
<p><strong>The price</strong> &#8211; it&#8217;s just crazy! The board itself costs just $49, but delivery charge for two of them was $43! So the price of the board came to $70.5 and that&#8217;s a lot considering that it&#8217;s only a bare board without a case. Some people complained that they received import charges bumping the price even more. For the same price, you could get a lot nicer package and better performance by purchasing MK802 or <a href="http://www.dealextreme.com/p/android-4-0-mini-pc-google-tv-player-w-wifi-allwinner-a10-cortex-a8-tf-hdmi-white-4gb-137012" target="_blank" class="liexternal">one of it&#8217;s clones</a>.</p>
<p><strong>US plug for UK customers</strong> &#8211; you will need an adapter to get it to work.</p>
<p><strong>The performance</strong> is unsatisfactory. It takes 30s to boot! It comes with Android 2.3 without Android Market out of the box and very limited amount of application preinstalled. <a href="http://forum.apc.io/discussion/85/google-market-install" target="_blank" class="liexternal">Android Market can be installed</a> though. I could not get the full HD version of Big Buck Bunny movie to play consistently on the HDMI output. After a few seconds it kept bumping back to VGA output. I suspect that maybe it was overheating?</p>
<p><strong>No official support for other operating systems</strong> like Linux. This is a huge disappointment, because Linux could make the device a lot more useful and powerful. Android that comes with it is just too limited.</p>
<h2>The verdict</h2>
<p>The price is just too high. It would make it a lot more attractive if it cost somewhere around $35 with a reasonable delivery charge. It desperately needs a Linux port to be able to use the full potential of the device. With all the limitations the slogan &#8220;A bicycle for your mind&#8221; just does not make sense.  I should strongly suggest looking for alternatives and avoid buying APC.IO for now until it&#8217;s a lot more open, has all detailed header pinouts and most importantly &#8211; a fully featured Linux port.</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/c8H5fDTbNkA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/08/apc-io-a-49-all-in-one-pc-by-via-a-bicycle-for-your-mind-or-a-big-disappointment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/08/apc-io-a-49-all-in-one-pc-by-via-a-bicycle-for-your-mind-or-a-big-disappointment/</feedburner:origLink></item>
		<item>
		<title>Forwarding Arduino serial port from Windows host to Linux guest using VirtualBox</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/37aR0io02v0/</link>
		<comments>http://www.arvydas.co.uk/2012/08/forwarding-arduino-serial-port-from-windows-host-to-linux-guest-usin-virtualbox/#comments</comments>
		<pubDate>Wed, 08 Aug 2012 01:25:52 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=214</guid>
		<description><![CDATA[Forwarding Arduino from Windows host to Linux guest is straightforward, just select it from the list of available devices: Once that&#8217;s done, the device will appear as /dev/ttyUSB0. The only problem is that file permissions for the device are 660 &#8230; <a href="http://www.arvydas.co.uk/2012/08/forwarding-arduino-serial-port-from-windows-host-to-linux-guest-usin-virtualbox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Forwarding Arduino from Windows host to Linux guest is straightforward, just select it from the list of available devices:</p>
<p><a href="http://www.arvydas.co.uk/wp-content/uploads/2012/08/virtualbox-device-forward.png" class="liimagelink" rel="lightbox[214]"><img class="alignnone size-medium wp-image-215" title="virtualbox-device-forward" src="http://www.arvydas.co.uk/wp-content/uploads/2012/08/virtualbox-device-forward-500x209.png" alt="" width="500" height="209" /></a></p>
<p>Once that&#8217;s done, the device will appear as /dev/ttyUSB0. The only problem is that file permissions for the device are 660 so you won&#8217;t be able to access the device unless you are root or set the permissions to 666 with</p>
<pre class="brush: bash; title: ; notranslate">
sudo chmod 666 /dev/usbTTY0
</pre>
<p>Note, that you would have to do this every time you forward the device or start the guest VM.</p>
<p>A more elegant solution exists (at least in Ubuntu). Just add yourself the the dialout group:</p>
<pre class="brush: bash; title: ; notranslate">
sudo adduser your-user-name dialout
</pre>
<p>Reboot your PC and you will be able to access the serial port without anything extra just by forwarding it to the guest Linux OS.</p>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/37aR0io02v0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/08/forwarding-arduino-serial-port-from-windows-host-to-linux-guest-usin-virtualbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/08/forwarding-arduino-serial-port-from-windows-host-to-linux-guest-usin-virtualbox/</feedburner:origLink></item>
		<item>
		<title>Mute/Unmute sound in Ubuntu 12.04 using command line</title>
		<link>http://feedproxy.google.com/~r/arvydas-uk/~3/QXTqYtSNkVA/</link>
		<comments>http://www.arvydas.co.uk/2012/08/muteunmute-sound-in-ubuntu-12-04-using-command-line/#comments</comments>
		<pubDate>Tue, 07 Aug 2012 12:06:54 +0000</pubDate>
		<dc:creator>Arvydas</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.arvydas.co.uk/?p=211</guid>
		<description><![CDATA[Stumbled over this strange problem with Ubuntu and sound muting using command line interface (CLI). Everywhere on the internet I found that it can be done with amixer: For some reason, muting works fine, but unumuting or toggle has no &#8230; <a href="http://www.arvydas.co.uk/2012/08/muteunmute-sound-in-ubuntu-12-04-using-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Stumbled over this strange problem with Ubuntu and sound muting using command line interface (CLI). Everywhere on the internet I found that it can be done with amixer:</p>
<pre class="brush: bash; title: ; notranslate">
amixer sset Master mute

amixer sset Master unmute

amixer sset Master toggle
</pre>
<p>For some reason, muting works fine, but unumuting or toggle has no effect. Upon further investigation I noticed that by muting Master channel, &#8220;PCM&#8221; and &#8220;Master Mono&#8221; channels are muted too. Unmuting Master does not unmute those two channels. I could have solved this issue by running a bash script that mutes the sound with</p>
<pre class="brush: bash; title: ; notranslate">
amixer sset Master mute
</pre>
<p>&#8230; and unmutes all channels with </p>
<pre class="brush: bash; title: ; notranslate">
amixer sset Master unmute
amixer sset PCM unmute
amixer sset &quot;Master Mono&quot; unmute
</pre>
<p>&#8230; but what fun is that? You can however mute and unmute with pactl. This requires just a single command line per action:</p>
<pre class="brush: bash; title: ; notranslate">
pactl set-sink-mute 0 1
pactl set-sink-mute 0 0
</pre>
<img src="http://feeds.feedburner.com/~r/arvydas-uk/~4/QXTqYtSNkVA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.arvydas.co.uk/2012/08/muteunmute-sound-in-ubuntu-12-04-using-command-line/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.arvydas.co.uk/2012/08/muteunmute-sound-in-ubuntu-12-04-using-command-line/</feedburner:origLink></item>
	</channel>
</rss>
