<?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>Steve's Junk &#187; Electronics</title>
	<atom:link href="http://smackaay.com/category/2-2-2-2-2-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://smackaay.com</link>
	<description>A showcase of Steven Mackaay's stuff</description>
	<lastBuildDate>Sun, 11 Mar 2012 20:11:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>The Olimex PIC32-Pinguino micro Review</title>
		<link>http://smackaay.com/2012/03/11/the-olimex-pic32-pinguino-micro-review/</link>
		<comments>http://smackaay.com/2012/03/11/the-olimex-pic32-pinguino-micro-review/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 20:11:37 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[microchip]]></category>
		<category><![CDATA[Olimex]]></category>
		<category><![CDATA[PIC32]]></category>
		<category><![CDATA[Pinguino]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1147</guid>
		<description><![CDATA[Specs: Manufactured by Olimex Price ~$25 USD Pic32MX440F256H 32 bit Microchip MCU 256K of Flash, 32K of RAM Built in microSD slot Operating at 80 Mhz USB On-the-go Geared for Pinguino IDE First Thoughts: I haven&#8217;t used this product very extensively yet so some shortcomings are awesome points may be missed. I have played with [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_1148" class="wp-caption aligncenter" style="width: 443px"><a href="http://smackaay.com/wp-content/uploads/2012/03/IMG_3522-mod.jpg"><img class="size-medium wp-image-1148" title="PIC32-PINGUINO" src="http://smackaay.com/wp-content/uploads/2012/03/IMG_3522-mod-433x300.jpg" alt="PIC32-PINGUINO" width="433" height="300" /></a><p class="wp-caption-text">The Olimex PIC32-Pnguino with it&#39;s large DIP form factor</p></div>
<p>Specs:</p>
<ul>
<li>Manufactured by <a href="http://www.olimex.com/">Olimex</a></li>
<li>Price ~$25 USD</li>
<li>Pic32MX440F256H 32 bit Microchip MCU</li>
<li>256K of Flash, 32K of RAM</li>
<li>Built in microSD slot</li>
<li>Operating at 80 Mhz</li>
<li>USB On-the-go</li>
<li>Geared for Pinguino IDE</li>
</ul>
<p>First Thoughts:</p>
<p>I haven&#8217;t used this product very extensively yet so some shortcomings are awesome points may be missed. I have played with it for a couple of days though and read through most of the libraries and documentation. This product is from Olimex in Bulgaria and to be honest, I&#8217;m a bit of a fan of Olimex. Olimex has built some interesting devices such as the DuinoMite and you can really tell that these guys really like what they do. They spend the time and effort to make the boards as good as possible.</p>
<p>Anyways, some thoughts about this board. It&#8217;s a pretty neat little board for both prototyping and perhaps even fitting it in to a product. It has a small form factor and would happily fit into a larger board for use in a larger product. The built in microSD port and the USB otg interface allows for some neat things to be made. The pinguino IDE isn&#8217;t too bad either. The libraries are reasonably complete and the device works quite reliably with the software as I encountered no bugs or glitches and programs worked as expected.</p>
<p>Pros:</p>
<ul>
<li>Small form factor</li>
<li>.1 dip pinout which is good for breadboarding</li>
<li>Good price for a 32 bit device like this</li>
<li>Well built</li>
<li>UEXT port for other Olimex peripherals is a nice choice</li>
<li>Fast!</li>
</ul>
<p>Cons:</p>
<ul>
<li>Uses small ICSP port which you must buy from Olimex. I know it&#8217;s done for size and not simply to sell a cable but it&#8217;s still a bit of a drag.</li>
<li>DIP width is too wide to fit on a single breadboard, you&#8217;ll need to use two breadboards and straddle it over them.</li>
<li>UEXT connector is taller than everything else on the board. Not a huge issue but most people won&#8217;t use the UEXT connector and the header could interfere inside an enclosure.</li>
<li>like with most 32 bit processors, the pins are not 5V. some of the pins may be 5V tolerant but this simply comes with the territory.</li>
</ul>
<p>Final Thoughts:</p>
<p>I like the stuff that Olimex builds. They give a shit about what they make and it shows. This type of device is pretty good for almost anyone with a reasonable amount of skill wishing to prototype anything you would normally do with an Arduino. For the price, you can&#8217;t beat these guys. In order to get ahold of one you can go through Mouser or look at the Ebay distributor (olimexery). Olimex themselves seems to sell it but they don&#8217;t seem to have a slick store setup to do purchasing.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/03/11/the-olimex-pic32-pinguino-micro-review/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wiring S Review</title>
		<link>http://smackaay.com/2012/03/11/wiring-s-review/</link>
		<comments>http://smackaay.com/2012/03/11/wiring-s-review/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 07:11:58 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[canadian]]></category>
		<category><![CDATA[prototyping]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[wiring]]></category>
		<category><![CDATA[wiring s]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1143</guid>
		<description><![CDATA[Since I have so many units for physical computing now, I figure it&#8217;s time to review some of them. Perhaps somebody will find the review useful for when they are searching around for opinions about certain products. Specs: Manufactured by Rogue Robotics Price ~$27 USD Uses an Atmega644p (surface mount) 64Kb of Flash (double arduino uno) [...]]]></description>
			<content:encoded><![CDATA[<p>Since I have so many units for physical computing now, I figure it&#8217;s time to review some of them. Perhaps somebody will find the review useful for when they are searching around for opinions about certain products.</p>
<div id="attachment_1144" class="wp-caption aligncenter" style="width: 451px"><a href="http://smackaay.com/wp-content/uploads/2012/03/IMG_3519-mod.jpg"><img class="size-medium wp-image-1144" title="Wiring S" src="http://smackaay.com/wp-content/uploads/2012/03/IMG_3519-mod-441x300.jpg" alt="" width="441" height="300" /></a><p class="wp-caption-text">The Wiring S board from Rogue robotics</p></div>
<p>Specs:</p>
<ul>
<li>Manufactured by <a title="Rogue robotics" href="http://www.roguerobotics.com" target="_blank">Rogue Robotics</a></li>
<li>Price ~$27 USD</li>
<li>Uses an Atmega644p (surface mount)</li>
<li>64Kb of Flash (double arduino uno)</li>
<li>4Kb if SRAM (double the uno)</li>
<li>overall size (2&#8243; x 3&#8243; x .5&#8243;)</li>
<li>16 Mhz</li>
<li>7-12v input or USB</li>
<li>2 hardware uarts</li>
<li>1 hardware spi</li>
<li>FTDI USB to serial interface</li>
</ul>
<p>First thoughts:</p>
<p>I started off trying a few common things such as accelerometers, switches, sd cards and various other things. Most of the basic stuff from a standard Arduino will work except the SD card will you to program it through the SPI library. The form factor has changed a bit from Arduino in that they have used standard 100mil spacing. Also, they have separated the headers in to groups of 8, you can access each of these as ports instead of straight pins. you could do this with the Arduino but the pins were not always contiguous. Also, using the 644 is great because you get two hardware UARTs. very nice! Other than the changes mentioned, it is pretty much the same as an arduino and the software looks and functions almost exactly the same as the standard Arduino IDE. It all has very good fit and finish and is reasonably priced and functional.</p>
<p>Pros:</p>
<ul>
<li>Better pin locations, based on a grid of 100 mill unlike and Arduino which has one row of headers off by 50 mil.</li>
<li>Better pinout usage. Ports are aligned along the header and power,rst and aref are on their own separate header, much better.</li>
<li>Easier to reach reset button if a shield were on the board.</li>
<li>more flash and SRAM than standard UNO, double to be exact.</li>
<li>inch based form factor (exactly 2&#215;3 inches)</li>
<li>provision for pins or terminal for direct power feed rather than barrel or usb</li>
<li>reasonable cost, not super cheap or expensive, comparable</li>
<li>Switchover jumper for usb power and external</li>
<li>Canadian Made!</li>
</ul>
<p>Cons:</p>
<ul>
<li>Used huge USB connector like Arduinos. Most others stay away from these since they&#8217;re huge and most people don&#8217;t like the large cords.</li>
<li>For the same reason that the header placing is good also makes it bad if you like to use shields for the Arduino</li>
<li>sd library isn&#8217;t implemented but that&#8217;s not a big deal</li>
<li>slightly larger for factor (as per area) than the Arduino but not by much.</li>
</ul>
<p>In closing:</p>
<p>This product is great for anybody who uses the Arduino or is learning. It&#8217;s better in almost every waythan an UNO and is offered for a  reasonable price.</p>
<p>Pop by <a href="http://www.robotshop.com/ca/home.html" target="_blank">robotshop</a> or<a href="http://www.roguerobotics.com" target="_blank"> roguerobotics</a> if you&#8217;d like to pick one up</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/03/11/wiring-s-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digital gage, Arduinos and Netduinos</title>
		<link>http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/</link>
		<comments>http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 09:06:47 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[beaglebone]]></category>
		<category><![CDATA[hoarder]]></category>
		<category><![CDATA[netduino]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1125</guid>
		<description><![CDATA[Since my last update I&#8217;ve been busily collecting Arduinos and various other things. This is getting sort of expensive. Anyways, first off. Digi-Gage My Digi-Gage is coming along quite nicely. I spun a set of boards from Itead studio a couple of weeks ago, paid a bit extra for the ENIG and the black soldermask. [...]]]></description>
			<content:encoded><![CDATA[<p>Since my last update I&#8217;ve been busily collecting Arduinos and various other things. This is getting sort of expensive. Anyways, first off.</p>
<p><strong>Digi-Gage</strong></p>
<p>My Digi-Gage is coming along quite nicely. I spun a set of boards from Itead studio a couple of weeks ago, paid a bit extra for the ENIG and the black soldermask. very nice indeed.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/02/IMG_3510-modified.jpg"><img class="aligncenter size-medium wp-image-1127" title="Digi gage board" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3510-modified-400x300.jpg" alt="Digi gage board" width="400" height="300" /></a></p>
<p>This board is for my digital gage. The board interfaces a PIC18F4685 to a LS7166 and thus counts ticks from a run of the mill glass scale. Hopefully it&#8217;ll work as well as I hope.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/02/IMG_3512-modified.jpg"><img class="aligncenter size-medium wp-image-1128" title="Digi gage board semi-populated" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3512-modified-429x300.jpg" alt="Digi gage board semi-populated" width="429" height="300" /></a></p>
<p>This is it semi-populated. turns out I forgot to buy the TQFP package MCU hence why the mcu isn&#8217;t present on the board. I&#8217;ll get the rest of the parts from Digikey soon.</p>
<p><strong>Arduino &#8211; devboard collection</strong></p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/02/IMG_3509-modified.jpg"><img class="aligncenter size-medium wp-image-1126" title="Devboard city" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3509-modified-400x300.jpg" alt="Devboard city" width="400" height="300" /></a></p>
<p>Well, I&#8217;ve been spending money on all kinds of things and perhaps it&#8217;s time to slow down a bit. Especially considering that I don&#8217;t use them. Here&#8217;s what I&#8217;ve got and some thoughts about them.</p>
<ul>
<li>Arduino Uno &#8211; The standard arduino, handy, very handy</li>
<li>Arduino Mega 2560 &#8211; A bigger version of the standard. Good for extra pinouts.</li>
<li>Arduino Nano &#8211; Extremely handy, combining both the arduino usefulness with a breadboardable stick.</li>
<li>Chipkit Uno &#8211; A (much) faster 32 bit arduino. Only disadvantage is the 3.3 volt limit on IO. That said, it has double the IO of a standard arduino and uses the Arduino IDE</li>
<li>Chipkit Max &#8211; A larger version of the previous one with many more IO.</li>
<li>AVR Butterfly &#8211; Haven&#8217;t really played with it yet but it seems pretty promising for something cute and interesting.</li>
<li>Netduino Plus &#8211; Like an arduino but faster and able to be programmed in visual c#. I haven&#8217;t figured out how to program it in VB yet, perhaps it&#8217;s not even possible.</li>
<li>Netduino Mini &#8211; like the above but with a smaller form. Neat little device.</li>
<li>Duinomite Mini &#8211; another cool device with VGA out just like the Duinomite standard.</li>
<li>Beaglebone &#8211; Still haven&#8217;t used this much yet</li>
<li>Olimexino 328 &#8211; An arduino but built well. Great for industrial use. Gotta love olimex.</li>
</ul>
<div><span style="font-size: small;"><span style="line-height: 24px;">Anyways, here&#8217;s a gallery of the images.</span></span></div>

<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/img_3509-modified/' title='Devboard city'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3509-modified-150x112.jpg" class="attachment-thumbnail" alt="Devboard city" title="Devboard city" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/img_3510-modified/' title='Digi gage board'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3510-modified-150x112.jpg" class="attachment-thumbnail" alt="Digi gage board" title="Digi gage board" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/img_3512-modified/' title='Digi gage board semi-populated'><img width="150" height="104" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3512-modified-150x104.jpg" class="attachment-thumbnail" alt="Digi gage board semi-populated" title="Digi gage board semi-populated" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0ardmega/' title='0ardmega'><img width="150" height="75" src="http://smackaay.com/wp-content/uploads/2012/02/0ardmega-150x75.jpg" class="attachment-thumbnail" alt="0ardmega" title="0ardmega" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0arduinoekits/' title='0arduinoekits'><img width="150" height="118" src="http://smackaay.com/wp-content/uploads/2012/02/0arduinoekits-150x118.jpg" class="attachment-thumbnail" alt="0arduinoekits" title="0arduinoekits" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0arduinonano/' title='0arduinonano'><img width="63" height="150" src="http://smackaay.com/wp-content/uploads/2012/02/0arduinonano-63x150.jpg" class="attachment-thumbnail" alt="0arduinonano" title="0arduinonano" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0avrbutterfly/' title='0avrbutterfly'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2012/02/0avrbutterfly-150x112.jpg" class="attachment-thumbnail" alt="0avrbutterfly" title="0avrbutterfly" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0avrbutterflyback/' title='0avrbutterflyback'><img width="150" height="101" src="http://smackaay.com/wp-content/uploads/2012/02/0avrbutterflyback-150x101.jpg" class="attachment-thumbnail" alt="0avrbutterflyback" title="0avrbutterflyback" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0beaglebone/' title='0beaglebone'><img width="150" height="96" src="http://smackaay.com/wp-content/uploads/2012/02/0beaglebone-150x96.jpg" class="attachment-thumbnail" alt="0beaglebone" title="0beaglebone" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0chipkitmax32/' title='0chipkitmax32'><img width="150" height="76" src="http://smackaay.com/wp-content/uploads/2012/02/0chipkitmax32-150x76.jpg" class="attachment-thumbnail" alt="0chipkitmax32" title="0chipkitmax32" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0chipkituno/' title='0chipkituno'><img width="150" height="110" src="http://smackaay.com/wp-content/uploads/2012/02/0chipkituno-150x110.jpg" class="attachment-thumbnail" alt="0chipkituno" title="0chipkituno" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0mduinomitemini/' title='0mduinomitemini'><img width="144" height="150" src="http://smackaay.com/wp-content/uploads/2012/02/0mduinomitemini-144x150.jpg" class="attachment-thumbnail" alt="0mduinomitemini" title="0mduinomitemini" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0netduinomini/' title='0netduinomini'><img width="150" height="81" src="http://smackaay.com/wp-content/uploads/2012/02/0netduinomini-150x81.jpg" class="attachment-thumbnail" alt="0netduinomini" title="0netduinomini" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0netduinoplus/' title='0netduinoplus'><img width="150" height="112" src="http://smackaay.com/wp-content/uploads/2012/02/0netduinoplus-150x112.jpg" class="attachment-thumbnail" alt="0netduinoplus" title="0netduinoplus" /></a>
<a href='http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/0olimexino-328/' title='0olimexino-328'><img width="150" height="116" src="http://smackaay.com/wp-content/uploads/2012/02/0olimexino-328-150x116.jpg" class="attachment-thumbnail" alt="0olimexino-328" title="0olimexino-328" /></a>

]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/02/26/digital-gage-arduinos-and-netduinos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update time..</title>
		<link>http://smackaay.com/2012/02/01/update-time/</link>
		<comments>http://smackaay.com/2012/02/01/update-time/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 04:42:29 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[arduino nano]]></category>
		<category><![CDATA[digital gage]]></category>
		<category><![CDATA[pic18f4680]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1117</guid>
		<description><![CDATA[First off, something fun (if you&#8217;re boring like me) I decided to record data in my car overnight and through the daytime. From 12:00am to 7:00pm thereabouts. I recorded the data every 4 seconds with the following sensors NTC Thermistor Low Sensitivity CDS (Resistor that changes when light hits it) High Sensitivity CDS Accelerometer X,Y,Z axis [...]]]></description>
			<content:encoded><![CDATA[<p>First off, something fun (if you&#8217;re boring like me)</p>
<p>I decided to record data in my car overnight and through the daytime. From 12:00am to 7:00pm thereabouts. I recorded the data every 4 seconds with the following sensors</p>
<ul>
<li>NTC Thermistor</li>
<li>Low Sensitivity CDS (Resistor that changes when light hits it)</li>
<li>High Sensitivity CDS</li>
<li>Accelerometer X,Y,Z axis</li>
</ul>
<p>Why did I do this? just cause. here is the resulting chart</p>
<div id="attachment_1118" class="wp-caption aligncenter" style="width: 510px"><a href="http://smackaay.com/wp-content/uploads/2012/02/tempchart.png"><img class="size-medium wp-image-1118" title="tempchart" src="http://smackaay.com/wp-content/uploads/2012/02/tempchart-500x227.png" alt="" width="500" height="227" /></a><p class="wp-caption-text">Recorded data for Feb 1, 2012 in my car</p></div>
<p>Here is the legend: B = Temperature , C = Low Sens. Light, D = High Sens. Light, E = X axis accel, F = Y axis accel, G = Z axis accel.</p>
<p>All of these values are as the MCU read them, ranging from 0-1023. They are also logarithmic so as they approach 1024, the value is &#8216;squished&#8217; so large changes appear small.  anyways, I thought it was neat to see the following things occur.</p>
<ul>
<li>Temperature of the device goes down as the night wears on. There are some lights detected, probably people passing by in the alley behind my car. some drift is noticeable from the accelerometers (due to temperature change?). Also something to notice is that  X and Y are pretty much the same</li>
<li>The light appears to go haywire, this is me driving in the dark and going under streetlights. Also, the temperature increases, the accelerometers shake and show the duration of my drive to work.</li>
<li>As my car is parked you can see that I have parked crooked by the X and Y axis. Also, the sun starts to come up. As far as I could tell, it was pitch dark outside, the sensitive light meter says differently.</li>
<li>During the day, the overcast sky keeps the sky about the same light level, whereas with the less sensitive instrument, since it&#8217;s further from saturation, shows variations in the ambient light level through the day. Temperature also fluctuates.</li>
<li>The Drive home, very similar to the drive to work.</li>
<li>The car is level again and the light level drops as well as the temperature.</li>
</ul>
<p>Anyways, I know it&#8217;s boring but it&#8217;s neat to see real world events (ones you didn&#8217;t know about) show up on the chart.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/02/IMG_3450-modified.jpg"><img class="aligncenter size-medium wp-image-1121" title="Arduino measurement" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3450-modified-500x283.jpg" alt="Arduino measurement" width="500" height="283" /></a></p>
<p><strong>Update on the Digital Gage</strong></p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/02/IMG_3447-modified.jpg"><img class="aligncenter size-medium wp-image-1120" title="Digital Gage" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3447-modified-292x300.jpg" alt="Digital Gage" width="292" height="300" /></a></p>
<p>Things are proceeding apace with this as well. The rail and the encoder are attached together and they also slide together with the aluminum part I machined for that purpose. Now as for the board, this was a nightmare. Nothing but problems. I started out with a PIC18F46K80, the faster/cheaper versions of the high end 18f4680 and initially it was all OK. Until I tried to use the UART. For the life of me, I could not get the UART to stop spitting out junk. Once I started getting it to stop spitting out junk, it then output nothing at all. <img src='http://smackaay.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/02/IMG_3444-modified.jpg"><img class="aligncenter size-medium wp-image-1119" title="RTJ gage board" src="http://smackaay.com/wp-content/uploads/2012/02/IMG_3444-modified-440x300.jpg" alt="RTJ gage board" width="440" height="300" /></a></p>
<p>Now, I&#8217;ve switch over to a standard 18f4680 but the LS7166 is giving me problems. aaargh! Anyways, things should improve with a bit of hard work and a fresh mind on the idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/02/01/update-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Olimex Duinomite</title>
		<link>http://smackaay.com/2012/01/28/the-olimex-duinomite/</link>
		<comments>http://smackaay.com/2012/01/28/the-olimex-duinomite/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 20:37:22 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[duinomite]]></category>
		<category><![CDATA[sbc]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1107</guid>
		<description><![CDATA[A while back I was thinking about making a small board that would run it&#8217;s own OS and methodology for programming, similar to the computers of old such as the TRS-80 and the Commodore 64. Everything was on these machine for controlling simple tasks, video, audio and file stuff. All from the OS prompt. I [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I was thinking about making a small board that would run it&#8217;s own OS and methodology for programming, similar to the computers of old such as the TRS-80 and the Commodore 64. Everything was on these machine for controlling simple tasks, video, audio and file stuff. All from the OS prompt. I always thought it&#8217;d be neat to have a microcontroller board that functioned similarly to the older computers but with IO.</p>
<p>Imagine my surprise when I discovered the Duinomite. I stumbled across it at dontronics and after reading a bit about it, I purchased it right away.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3441-modified.jpg"><img class="aligncenter size-medium wp-image-1108" title="Duinomite" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3441-modified-400x300.jpg" alt="Duinomite" width="400" height="300" /></a></p>
<p>The Duinomite is basically a single board computer with a BASIC interpreter, VGA and Composite interface and a bunch of other little features which make it so awesome. It should also be noted that this idea was done first by Geoff Graham and his unit, the MaxiMite. It seems as though Olimex and Geoff were having a bit of a fight for a while but frankly, I don&#8217;t really know. All I can say is that it&#8217;s a really neat device and I&#8217;m glad that I bought it.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3443-modified.jpg"><img class="aligncenter size-medium wp-image-1109" title="Duinomite board" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3443-modified-400x300.jpg" alt="Duinomite board" width="400" height="300" /></a></p>
<p>Anyways, like I said, it has a basic interpreter on it. It allows you to program it with a ps2 keyboard or through the console on a virtual com port. The language itself is pretty rudimentary with no labels except for line number. No functions either. However, for simpler, less time intensive stuff, this board is ideal. Here are some screenies of the video display.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/scr3.png"><img class="aligncenter size-full wp-image-1112" title="scr3" src="http://smackaay.com/wp-content/uploads/2012/01/scr3.png" alt="" width="304" height="216" /></a></p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/scr2.png"><img class="aligncenter size-full wp-image-1111" title="scr2" src="http://smackaay.com/wp-content/uploads/2012/01/scr2.png" alt="" width="304" height="216" /></a></p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/scr1.png"><img class="aligncenter size-full wp-image-1110" title="scr1" src="http://smackaay.com/wp-content/uploads/2012/01/scr1.png" alt="" width="304" height="216" /></a></p>
<p>The video is pretty rudimentary, monochrome only, 324&#215;216 or 320&#215;200 in vga mode. It does seem to work ok though. The nice thing about this device is its easy access to a sd card so you can log data as well real easily.</p>
<p>anyways, I thought it was a neat device. anyways, check it out at <a href="http://www.olimex.com/dev/index.html">http://www.olimex.com/dev/index.html</a></p>
<p><strong>Data logging</strong></p>
<p>As a side effect of trying this board out, I kept a couple of graphs. The first on is temperature versus time and the next is light level. I just wanted to try it out so I left it run overnight and here are the charts</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/grphtemp.png"><img class="aligncenter size-medium wp-image-1114" title="grphtemp" src="http://smackaay.com/wp-content/uploads/2012/01/grphtemp-500x103.png" alt="" width="500" height="103" /></a></p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/grphlight.png"><img class="aligncenter size-medium wp-image-1113" title="grphlight" src="http://smackaay.com/wp-content/uploads/2012/01/grphlight-500x248.png" alt="" width="500" height="248" /></a></p>
<p>I did something like this earlier, like 3 years ago. I&#8217;ve always found it neat to see such variation in a controlled environment. For example, the temperature graph shows when I closed the door to my office, the temperature dropped but you could see the furnace kicking on every 20 minutes.</p>
<p>Also, with the light. You can see I had the main light on. Then I turned it off. Then i left the monitor on when I left, eventually the monitor turned off and then as day broke you could see an increase in lighting.</p>
<p>I dunno, I think that kind of thing is cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/01/28/the-olimex-duinomite/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Many Dev Boards&#8230; what to do?</title>
		<link>http://smackaay.com/2012/01/11/many-dev-boards-what-to-do/</link>
		<comments>http://smackaay.com/2012/01/11/many-dev-boards-what-to-do/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 06:21:01 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[arduino mega]]></category>
		<category><![CDATA[arduino nano]]></category>
		<category><![CDATA[arduino uno]]></category>
		<category><![CDATA[beaglebone]]></category>
		<category><![CDATA[chipkit]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1099</guid>
		<description><![CDATA[First, an update about the annoyo, it worked perfectly and maximized irritation while making itself difficult to find. Anyways, I just received my BeagleBone and I promptly thought to myself, what am I going to do with this? Then I thought, hmmm, I have a bunch of other boards too. These boards aren&#8217;t including the [...]]]></description>
			<content:encoded><![CDATA[<p>First, an update about the annoyo, it worked perfectly and maximized irritation while making itself difficult to find. Anyways, I just received my BeagleBone and I promptly thought to myself, what am I going to do with this? Then I thought, hmmm, I have a bunch of other boards too.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3436-modified.jpg"><img class="aligncenter size-medium wp-image-1100" title="dev boards" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3436-modified-400x300.jpg" alt="" width="400" height="300" /></a></p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3440-modified.jpg"><img class="aligncenter size-medium wp-image-1101" title="IMG_3440 modified" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3440-modified-343x300.jpg" alt="" width="343" height="300" /></a></p>
<p>These boards aren&#8217;t including the mps430 board, the pic boards, the mikroelectronika board or the Friendly ARM. Too many boards, not enough time. I&#8217;m sure I&#8217;ll use them for something I guess. Tomorrow begins the fun of interfacing the LS7166, it shouldn&#8217;t be too difficult.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/01/11/many-dev-boards-what-to-do/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Another pic10f200 project, the Annoyo!</title>
		<link>http://smackaay.com/2012/01/09/another-pic10f200-project-the-annoyo/</link>
		<comments>http://smackaay.com/2012/01/09/another-pic10f200-project-the-annoyo/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 03:50:10 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[annoyo]]></category>
		<category><![CDATA[basic]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[oshonsoft]]></category>
		<category><![CDATA[pic10f200]]></category>
		<category><![CDATA[prank]]></category>
		<category><![CDATA[sound]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1092</guid>
		<description><![CDATA[I had this cool idea for a prank at the office, a device that generate sound every 6 minutes. This device generates 4 different sounds at 6 minute intervals. The idea is that the sounds are short, familiar, difficult to find and infrequent enough to prevent a hunt for the offending noise. This device has [...]]]></description>
			<content:encoded><![CDATA[<p>I had this cool idea for a prank at the office, a device that generate sound every 6 minutes. This device generates 4 different sounds at 6 minute intervals. The idea is that the sounds are short, familiar, difficult to find and infrequent enough to prevent a hunt for the offending noise. This device has been done before and obviously much more professionally by others but it&#8217;s fun to make since all you need is 2 caps, a 10f200, a speaker and a battery.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3432-modified.jpg"><img class="aligncenter size-medium wp-image-1094" title="Annoyo on board" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3432-modified-347x300.jpg" alt="" width="347" height="300" /></a><br />
The device itself is dead simple, simply find an old speaker you never use, preferably a small one so that you can drive it from the output pin. Using a small battery like I have there, you could probably let the device run for about 30 days. Here&#8217;s the design:</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/annoyo-scheme.png"><img class="aligncenter size-medium wp-image-1097" title="annoyo scheme" src="http://smackaay.com/wp-content/uploads/2012/01/annoyo-scheme-412x300.png" alt="" width="412" height="300" /></a></p>
<p>dead simple, once again. Only one output is used on this device, I even disabled MCLR so that there is no extra resistor. Just one cap for decoupling and one cap for producing a larger waveform for the speaker. You can change the cap size if you want, you may want a larger cap for a bit of a smoother wave. So, here&#8217;s the pinout and the source code and .hex file</p>
<ul>
<li>GP0,1,3 -&gt; Not connected</li>
<li>GP2 (pin 3) -&gt; to speaker</li>
</ul>
<p>Source and hex: <a href="http://smackaay.com/wp-content/uploads/2012/01/10f200-annoyo.zip">10f200 annoyo src.zip</a></p>
<p>Anyways, a couple of notes. This program was written with Oshonsoft basic. Also, it could have been written a bit smaller if I tried but as it stands it takes up 253 of 255 bytes available in flash. <img src='http://smackaay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hope somebody has fun with this!</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/01/09/another-pic10f200-project-the-annoyo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a quadrature generator with a PIC10F222</title>
		<link>http://smackaay.com/2012/01/08/building-a-quadrature-generator-with-a-pic10f222/</link>
		<comments>http://smackaay.com/2012/01/08/building-a-quadrature-generator-with-a-pic10f222/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:38:40 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[circuit]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[microchip]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[pic10f222]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1087</guid>
		<description><![CDATA[I need to start my new project with my digital RTJ gage and in order to do so I need to use the quadrature decoder chip LS7166. I could use the actual encoder I&#8217;m going to use for the project but it is large and unwieldy so I decided to build a generator for it. [...]]]></description>
			<content:encoded><![CDATA[<p>I need to start my new project with my digital RTJ gage and in order to do so I need to use the quadrature decoder chip LS7166. I could use the actual encoder I&#8217;m going to use for the project but it is large and unwieldy so I decided to build a generator for it.</p>
<p>The concept is simple, have a knob that produces no waveform in the middle of it&#8217;s stroke and as the pot deviates from the center, the speed of the signal increases also changing direction based on which side the knob id turned to. I couldn&#8217;t use a PIC10F200 much to my chagrin because it doesn&#8217;t have an ADC module built in, the PIC10F222 does however. It still works within my concept of low-end mcu&#8217;s doing valuable jobs since they&#8217;re still only 55 cents in quantity, from digikey of all places.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3428-modified.jpg"><img class="aligncenter size-medium wp-image-1089" title="pic10f222 quadrature generator 2" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3428-modified-392x300.jpg" alt="" width="392" height="300" /></a></p>
<p>Overall, it&#8217;s a pretty simple design.</p>
<ul>
<li>GP3 -&gt; unconnected</li>
<li>GP2 -&gt; Channel B out (Digital output)</li>
<li>GP1 -&gt; Channel A out (Digital output)</li>
<li>GP0 -&gt; 10k Potentiometer in (Analog in)</li>
</ul>
<p>Dead simple. I did program a bit of a dead spot in the middle so that one can stop the quadrature from advancing quite easily. I put 2 LEDs on it to indicate that it is in fact working. Anyways, here&#8217;s the source (again it&#8217;s in Oshonsoft BASIC)</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/10f222-quadrature.zip">10f222 quadrature src.zip</a></p>
<p>I didn&#8217;t bother drawing up a circuit diagram since it&#8217;s such an easy circuit but here&#8217;s an additional image if you&#8217;re really curious. keep in mind that the board I&#8217;m using is Stripboard (aka Veroboard) so the traces run along one direction</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/IMG_3427-modified.jpg"><img class="aligncenter size-medium wp-image-1088" title="pic10f222 quadrature generator" src="http://smackaay.com/wp-content/uploads/2012/01/IMG_3427-modified-341x300.jpg" alt="" width="341" height="300" /></a></p>
<p>Now for the fun challenge of making a simple serial interface MCU to the LS7166.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/01/08/building-a-quadrature-generator-with-a-pic10f222/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10f200 debouncing and a new compiler</title>
		<link>http://smackaay.com/2012/01/07/10f200-debouncing-and-a-new-compiler/</link>
		<comments>http://smackaay.com/2012/01/07/10f200-debouncing-and-a-new-compiler/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 08:54:33 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[basic compiler]]></category>
		<category><![CDATA[bounce]]></category>
		<category><![CDATA[debounce]]></category>
		<category><![CDATA[oshonsoft]]></category>
		<category><![CDATA[pic10f200]]></category>
		<category><![CDATA[switch noise]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1080</guid>
		<description><![CDATA[I&#8217;ve noticed some people doing search terms for debouncing and I figured I would post my method of debouncing inputs from switches. Some people have a big thing with using caps and resistors and gates with hysteresis but I prefer to simply use a cheap microcontroller because the result is programmable, MCU&#8217;s are cheap and there are [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed some people doing search terms for debouncing and I figured I would post my method of debouncing inputs from switches. Some people have a big thing with using caps and resistors and gates with hysteresis but I prefer to simply use a cheap microcontroller because the result is programmable, MCU&#8217;s are cheap and there are fewer parts than the usual arrangements. Here is a crude circuit diagram of the debouncer. for this circuit the arrangement is (Input GP3 -&gt; Output GP1)(Input GP2 -&gt; Output GP0)</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/debounce.png"><img class="aligncenter size-medium wp-image-1081" title="debounce" src="http://smackaay.com/wp-content/uploads/2012/01/debounce-500x248.png" alt="" width="500" height="248" /></a></p>
<p>The problem with some other MCU methods is that people often try checking every 5ms to see if two successive input were high. This is a faulty approach since it can be computationally wasteful and can still produce noise. My approach is as follows:</p>
<ol>
<li>read the input on a loop</li>
<li>if the input is high, increment a counter up to a certain maximum (say 90)</li>
<li>if the counter goes above a certain amount (say 60) then turn on the output</li>
<li>if the input is low, decrement the counter until it reaches 0</li>
<li>if the counter goes below a certain amount (say 30) then turn off the output</li>
<li>Don&#8217;t change the value of the output between 30 and 60</li>
</ol>
<p>What this does is ensures that there is an area of hysteresis where the noise or bounce of the switch will not generate noise on the output. You can play with the rules to suit your specific need and improve responsiveness or make the output resilient to accidental triggering. This is the reason why for some more important things I have used this method. I have used a pic16f505 for this purpose as well with larger arrays of buttons. Having a programmed method that you can change easily can give you an easy &#8216;jellybean&#8217; solution for these kinds of problems. Mind you of course when dealing with switches in high noise environments you may need to optoisolate or run TVSs on the switch.</p>
<p>If you&#8217;ve read any of my other posts you&#8217;ll know that I like the PIC10F200 MCUs simply because of their simplicity and the fact that a lot of people write them off as useless. This design is pretty crude as you can see and that leads me into the topic of the compiler. First,  here is a sample hex file for debouncing - <a href="http://smackaay.com/wp-content/uploads/2012/01/debounce.zip">debounce</a>. This hex is programmed to premit a pressed switch to activate after 11ms.</p>
<p>I recently bought a suite of compilers from <a href="http://www.oshonsoft.com/" target="_blank">OshonSoft</a> since I drifted over there out of pure chance. This company is a one man show who sells a variety of BASIC compilers for PIC, Z80 and 8085 processors. I tried the 10f compiler and was immediately impressed with how, for so inexpensively, there was a useful tool for simulation and programming.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/oshon.png"><img class="aligncenter size-medium wp-image-1077" title="OshonSoft" src="http://smackaay.com/wp-content/uploads/2012/01/oshon-500x255.png" alt="" width="500" height="255" /></a></p>
<p>I&#8217;ve only used the 10f compiler so far but it beats the tar out of PicBASIC Pro, as far as I can tell thus far. Not a lot of frills or gimmicks but it outputs very tight code. Here&#8217;s the source for the debouncer pic10f200. You can download a demo version of the 10f simulator at his website.</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/debouncesrc.zip">debouncesrc.zip</a></p>
<p>Well, anyways, that&#8217;s my little treatise on the subject. Also, for those of you on a tight budget and just getting into microcontrollers, Oshonsoft might be a good place to buy a compiler that&#8217;s reasonably simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/01/07/10f200-debouncing-and-a-new-compiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ugluino, the ugly Arduino powered robot</title>
		<link>http://smackaay.com/2012/01/01/ugluino-the-ugly-arduino-powered-robot/</link>
		<comments>http://smackaay.com/2012/01/01/ugluino-the-ugly-arduino-powered-robot/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 10:53:24 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Personal Projects]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[arduino nano]]></category>
		<category><![CDATA[microcontroller]]></category>
		<category><![CDATA[pic18f2685]]></category>
		<category><![CDATA[robot]]></category>
		<category><![CDATA[Ugluino]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1069</guid>
		<description><![CDATA[So, even though I&#8217;ve built a wide variety of crap over the last few years, all of them with varying utility, I&#8217;ve decided to build a quick robot. With oodles of free time and the feeling of having to go back to work on the horizon after what feels like an eternity of holiday (1 [...]]]></description>
			<content:encoded><![CDATA[<p>So, even though I&#8217;ve built a wide variety of crap over the last few years, all of them with varying utility, I&#8217;ve decided to build a quick robot. With oodles of free time and the feeling of having to go back to work on the horizon after what feels like an eternity of holiday (1 week) I quickly grabbed a bunch of stuff I had sitting around and put this guy together with all the grace of a kindergarten macaroni art sculpture.</p>
<div id="attachment_1073" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2012/01/ugluino3.jpg"><img class="size-medium wp-image-1073" title="Ugluino Being Built" src="http://smackaay.com/wp-content/uploads/2012/01/ugluino3-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">Ugluino Being Built</p></div>
<p>Based off of an Arduino Nano, this guy works just fine. I don&#8217;t like using Arduinos for the following reasons.</p>
<ul>
<li>Perceived lack of control of what&#8217;s going on inside</li>
<li>Feels like cheating since it&#8217;s so easy</li>
<li>Arduino UI is kind of shitty, especially for larger source files.</li>
<li>When dealing with AI routines, making it difficult to use multiple files is a minus</li>
</ul>
<p>Anyways, i plugged ahead and quickly pounded this out with the following IO</p>
<ul>
<li>Input &#8211; The only one, the Echo pin on the ultrasonic sensor</li>
<li>Output &#8211; Trigger on ultrasonic sensor</li>
<li>4 Digital output &#8211; for controlling direction on SN754410 Quad half h-bridge driver. These go to two gear motors which are attached directly to wheels</li>
<li>1 PWM out for duty on motors</li>
<li>1 attached servo out of the servo to turn the sensor</li>
</ul>
<div id="attachment_1072" class="wp-caption aligncenter" style="width: 484px"><a href="http://smackaay.com/wp-content/uploads/2012/01/ugluino2.jpg"><img class="size-medium wp-image-1072" title="The back end of the Ugluino" src="http://smackaay.com/wp-content/uploads/2012/01/ugluino2-474x300.jpg" alt="" width="474" height="300" /></a><p class="wp-caption-text">The back end of the Ugluino</p></div>
<p>Most everything worked out swimmingly until I fucked around with some wiring and produced a short. I hooked the robot on to the USB supply on my computer, I noticed after a few second that the power to the unit wasn&#8217;t running&#8230; hmmm POOF! Well, as it turned out, there was a problem with the wiring to the ultrasonic dealy and it blew what I beleive was a zener diode</p>
<p><a href="http://smackaay.com/wp-content/uploads/2012/01/arduinonanoburn.jpg"><img class="aligncenter size-medium wp-image-1070" title="arduinonanoburn" src="http://smackaay.com/wp-content/uploads/2012/01/arduinonanoburn-378x300.jpg" alt="" width="378" height="300" /></a></p>
<p>I wasn&#8217;t able to figure out exactly what it was, I suspect that it is a zener diode that selects between main power and USB since it is on the output of the VReg. I could be wrong. Since I didn&#8217;t have any more Arduino Nano&#8217;s I simply tried to fix it and soldered a wire across the offending gap. The device seems to work fine&#8230;? Anyways, if anyone know what that part was on the Arduino Nano v3.0, I&#8217;d like to know &#8217;cause I couldn&#8217;t find the 3.0 Schematics and the design has moved those parts around.</p>
<p>Anyways, The robot moves around based on a very simple algorithm.</p>
<ol>
<li>Stop Moving</li>
<li>Scan from 40Deg Right to 40 Deg Left in 10 deg increments</li>
<li>return appropriate movement from a function that analyses it</li>
<li>execute proper movement (Forward, Backward, Right, Left, Hard Right and Hard Left)</li>
<li>rinse</li>
<li>repeat</li>
</ol>
<p>It seemed to work reasonably well. I&#8217;d like to build a more sturdy version for shits and giggles so that I can play with the algorithms. I&#8217;m probably gonna build one with a PIC18F2685 instead of an Arduino. Also, instead of a single sensor, I will use IR proximity sensors to detect low lying objects. Moving the sensor with the Servo make the robot seem more intelligent than it actually is like it&#8217;s &#8216;looking around&#8217;. I quite like that. <img src='http://smackaay.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anyways, it&#8217;s my first post of the year, considering it&#8217;s January 1st and 3:52 am as I write this. maybe I should go to bed. Here&#8217;s a video of it getting around.</p>
<p>&nbsp;<br />
<iframe width="640" height="480" src="http://www.youtube.com/embed/jytW-GjFenE" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2012/01/01/ugluino-the-ugly-arduino-powered-robot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pre-Christmas things I&#8217;m workin&#8217; on!</title>
		<link>http://smackaay.com/2011/12/18/pre-christmas-things-im-workin-on/</link>
		<comments>http://smackaay.com/2011/12/18/pre-christmas-things-im-workin-on/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 04:58:40 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[ls7166]]></category>
		<category><![CDATA[rtj groove]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1033</guid>
		<description><![CDATA[Well, it&#8217;s been a while since I&#8217;ve posted anything (I think every post starts like this) so I&#8217;m gonna document a few things I&#8217;m working on right now. Things that are both for work and some things that are not. First off, the Mikro C compiler deal. A few days ago I went over the [...]]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s been a while since I&#8217;ve posted anything (I think every post starts like this) so I&#8217;m gonna document a few things I&#8217;m working on right now. Things that are both for work and some things that are not.</p>
<p>First off, the Mikro C compiler deal. A few days ago I went over the the mikroelectronika site and noticed that they had a sale on their compilers, a large develpment board for free if you get the compiler. I already have the PIC-C compiler but I figured it&#8217;s time to buy a new on since I haven&#8217;t actually purchased one for years.</p>
<p>So, for $250 you get both the compiler and the large development board.</p>
<div id="attachment_1040" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/IMG_3275.jpg"><img class="size-medium wp-image-1040" title="IMG_3275" src="http://smackaay.com/wp-content/uploads/2011/12/IMG_3275-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">Lot&#39;s of buttons and lots of stuff.</p></div>
<p>So there is the BIGPIC 6 board. It&#8217;s a well built board, .120&#8243; thick and the parts and overall quality are top-notch. Granted, I haven&#8217;t used it much since I&#8217;ve only had it a couple of days, but if you&#8217;re going to try out a compiler and want a development board to test out your compiler, this may be your ticket.</p>
<div id="attachment_1041" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/IMG_3276.jpg"><img class="size-medium wp-image-1041" title="IMG_3276" src="http://smackaay.com/wp-content/uploads/2011/12/IMG_3276-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">The BIGPIC 6 in profile</p></div>
<p>The only thing I was disappointed about was the lack of inclusion of the displays. They&#8217;re not that expensive and from the site has them for way too much money. You can buy them off EBay and wire them yourself if you want though.</p>
<p>Ok, and now for another item of interest of things from the work front. Gages! RTJ gages, BX groove gages and RX gages.</p>
<p>I&#8217;ve been tasked with designing our new series of RTJ groove gages. My primary idea is to make it completely electronic and build a non-referential gage. Basically my electronics version is a linear bearing attached to a DRO slide</p>
<div id="attachment_1037" class="wp-caption aligncenter" style="width: 510px"><a href="http://smackaay.com/wp-content/uploads/2011/12/digital-gage.gif"><img class="size-medium wp-image-1037" title="digital gage" src="http://smackaay.com/wp-content/uploads/2011/12/digital-gage-500x242.gif" alt="Digital Gage" width="500" height="242" /></a><p class="wp-caption-text">My Digitial Gage Design. I have most of the parts and am working on the electronics</p></div>
<p>Doesn&#8217;t look impressive, it&#8217;s just a prototype really. Here are the actually slide and dro scale. Right now I&#8217;m working on interfacing the LS7166 quadrature interface controller but that&#8217;s going to take a while since I have to work on the dial indicator version of the gage since the old design has started to reveal problems.</p>
<div id="attachment_1036" class="wp-caption aligncenter" style="width: 510px"><a href="http://smackaay.com/wp-content/uploads/2011/12/dial-gage.png"><img class="size-medium wp-image-1036" title="New Dial Gage" src="http://smackaay.com/wp-content/uploads/2011/12/dial-gage-500x273.png" alt="" width="500" height="273" /></a><p class="wp-caption-text">Dial Gage for RTJ Grooves</p></div>
<p>Anyways, I have all of the materials and I am working on the varieties of things needed to complete these things.</p>
<div id="attachment_1044" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/IMG_3284.jpg"><img class="size-medium wp-image-1044" title="IMG_3284" src="http://smackaay.com/wp-content/uploads/2011/12/IMG_3284-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">Linear glass encoder</p></div>
<div id="attachment_1043" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/IMG_3283.jpg"><img class="size-medium wp-image-1043" title="Linear bearing" src="http://smackaay.com/wp-content/uploads/2011/12/IMG_3283-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">Linear bearing</p></div>
<div id="attachment_1046" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/IMG_3286.jpg"><img class="size-medium wp-image-1046" title="Arduino" src="http://smackaay.com/wp-content/uploads/2011/12/IMG_3286-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">Yes, an Arduino!</p></div>
<p>Anyways, these things are all coming along nicely and not in a vaporware kind of way. I shall keep things updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2011/12/18/pre-christmas-things-im-workin-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electronics lab on the cheap</title>
		<link>http://smackaay.com/2011/12/11/electronics-lab-on-the-cheap/</link>
		<comments>http://smackaay.com/2011/12/11/electronics-lab-on-the-cheap/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 05:49:25 +0000</pubDate>
		<dc:creator>smackaay</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[agilent]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[exetech]]></category>
		<category><![CDATA[extech]]></category>
		<category><![CDATA[jameco]]></category>
		<category><![CDATA[laboratory]]></category>

		<guid isPermaLink="false">http://smackaay.com/?p=1018</guid>
		<description><![CDATA[Now, for those of you who don&#8217;t know me, I&#8217;m a total cheapskate. I hate paying good money for good things and wind up buying lots of crap for lots of money. Over the years I&#8217;ve seen the question asked by fledgling electronics buffs ,&#8221;What should I get to outfit my lab?&#8221; Now this innocuous [...]]]></description>
			<content:encoded><![CDATA[<p>Now, for those of you who don&#8217;t know me, I&#8217;m a total cheapskate. I hate paying good money for good things and wind up buying lots of crap for lots of money. Over the years I&#8217;ve seen the question asked by fledgling electronics buffs ,&#8221;What should I get to outfit my lab?&#8221;</p>
<p>Now this innocuous question is usually asked by people who either don&#8217;t have money or are cheapskates like me. I have purchased all kinds of cheap and slightly-less-cheap stuff from a variety of sources over the years and I&#8217;ve seen the quality and lack thereof. I&#8217;ve worked with it and I&#8217;ve had my problems with it. What I figure might be informative is a general guideline of some things I&#8217;ve bought over the years, especially the cheap shit, also my opinions on this stuff for people who are starting out.</p>
<p>It should be stated that I&#8217;m no expert on electronics and perhaps that makes my opinion suitable for the new hobbyist like myself. Sometimes acceptable is good enough.</p>
<h3>The Multimeter</h3>
<p>Every hobbyist needs a multimeter. They tell you voltages, resistances, current and often times things like frequency, diode voltage drop,  continuity and various other things. This will be your most important tool when things don&#8217;t work as they should or when building a circuit.</p>
<div id="attachment_1020" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/multimeter.jpg"><img class="size-medium wp-image-1020" title="Cheap chinese multimeter" src="http://smackaay.com/wp-content/uploads/2011/12/multimeter-400x300.jpg" alt="Cheap chinese multimeter" width="400" height="300" /></a><p class="wp-caption-text">The cheap chinese multimeter</p></div>
<p>Above is the cheap chinese multimeter. They come in various colors and designs and you can pick them up sometimes for $5. While they seem like a good deal, they are not. I have had a great many of these and they have all been a problem in one way or another. Either the voltage shown is wrong, or the fuse inside is pre-blown or sometimes certain functions simply don&#8217;t work. If you just want one around your house to check to see if something is live, buy one but otherwise I would stay away. Now for the hobbyist, there is the middle of the road multimeter, these are the ones I would get if you want a blend of quality and cost effectiveness. Some brands to consider are :</p>
<ul>
<li>Agilent ($99 to $150)</li>
<li>Extech ($50 to $100)</li>
<li>Uni-T ($35-$100) meh..</li>
</ul>
<p>There are others but those are the ones I have experience with. Obviously the more money you spend, typically the better product you&#8217;re going to get. If you&#8217;re gonna cheap out on anything in your lab, don&#8217;t cheap out on your multimeter, it is the single most important tool in your lab. Remember to get one that&#8217;s auto-ranging and don&#8217;t bother with ones that aren&#8217;t auto ranging or have those transistor testers on them. Transistor testers are the mark of a shitty multimeter.</p>
<h3>The Power Supply</h3>
<p>Whenever you do electronics work you need some source of power. This can range from using the USB port on your computer (like with an Arduino) to getting fully programmable supplies.</p>
<div id="attachment_1024" class="wp-caption aligncenter" style="width: 430px"><a href="http://smackaay.com/wp-content/uploads/2011/12/ATX-to-Lab-PSU-8.jpg"><img class="size-full wp-image-1024" title="ATX-to-Lab-PSU-8" src="http://smackaay.com/wp-content/uploads/2011/12/ATX-to-Lab-PSU-8.jpg" alt="From diy site" width="420" height="280" /></a><p class="wp-caption-text">From a diy site on a refitted computer power supply</p></div>
<p>Some people try to save a few bucks and use a <a title="computer power supply" href="http://www.wikihow.com/Convert-a-Computer-ATX-Power-Supply-to-a-Lab-Power-Supply" target="_blank">computer power supply</a> for their projects. This isn&#8217;t bad since it outputs a whole lot of different voltages (3.3v, 5v, 12v, -12v) and can usually supply a whole lot of current. Only problem I have with them is the fact that they don&#8217;t tell you much about how much juice you&#8217;re using and you can&#8217;t limit the current.</p>
<p>Some people are really cheap and use wall-warts (like I did) for power. This is almost universally a bad idea because wall warts can fail spectacularly when shorted out or exposed to weird power loads. If you value your time and parts, don&#8217;t experiment this way.</p>
<div id="attachment_1025" class="wp-caption aligncenter" style="width: 310px"><a href="http://smackaay.com/wp-content/uploads/2011/12/DC-regulated-Power-Supply-hy3003.jpg"><img class="size-full wp-image-1025" title="DC regulated Power Supply hy3003" src="http://smackaay.com/wp-content/uploads/2011/12/DC-regulated-Power-Supply-hy3003.jpg" alt="" width="300" height="275" /></a><p class="wp-caption-text">A regulated DC power supply. This is basically the standard model made in china and is marketed under like 30 different brand names.</p></div>
<p>The best way that&#8217;s cheap is simply an analog adjustable power supply. They go for about 110 to 140 bucks and will last you a long time under normal use. You can adjust both maximum voltage AND maximum current so you can perform various tasks with it and save yourself headaches sometimes by limiting current. Trust me on this, for most things this is the best option.</p>
<h3>Oscilloscope</h3>
<p>Everyone wants to be able to diagnose problems with their circuits, see if there is actually changes going on over data lines, or see if there&#8217;s noise on your power supply or something. Also it just looks cool to have a 50&#8242;s mad scientist&#8217;s lab for when people come over.</p>
<p>This is one item that I see people cheaping out on all the time, and frankly myself as well. While I don&#8217;t have top end equipment at the moment, I have second hand equipment that is pretty good.</p>
<div id="attachment_1027" class="wp-caption aligncenter" style="width: 490px"><a href="http://smackaay.com/wp-content/uploads/2011/12/Analog-Oscilloscope-AT7340-.jpg"><img class="size-medium wp-image-1027" title="Analog-Oscilloscope-AT7340-" src="http://smackaay.com/wp-content/uploads/2011/12/Analog-Oscilloscope-AT7340--480x300.jpg" alt="" width="480" height="300" /></a><p class="wp-caption-text">Your basic analog scope</p></div>
<p>Above is your general, all purpose analog scope. For most things this guy will serve you well. Buying a new one is often almost as expensive as buying a digital storage scope so buying one like this should be second hand. You can get an analog scope for a song on EBay sometimes and even around town at universities and college, they have extras kicking around. Using an analog scope correctly is a good skill to have and will serve you well with your digital storage scope, if you decide to get one.</p>
<div id="attachment_1030" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/IMG_1033.jpg"><img class="size-medium wp-image-1030" title="IMG_1033" src="http://smackaay.com/wp-content/uploads/2011/12/IMG_1033-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">a Digital Storage osciloscope</p></div>
<p>These may be your ticket to have in your lab. Some companies like <a href="http://www.tequipment.net/">tequipment</a> sell GW Instek oscilloscopes for $300 or so. While it can be a bit of an investment, this may be your ticket to having decent equipment for your hobbyist lair. The one shown above is obviously an older one and similar to my tektronix 100mhz scope. I got mine second hand for $400 and it&#8217;s been a great investment. To be fair, there are other economy brands such as OWON, Rigol and others but I only have experience with the instek ones.</p>
<div id="attachment_1029" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/DSCN3567.jpg"><img class="size-medium wp-image-1029" title="DSCN3567" src="http://smackaay.com/wp-content/uploads/2011/12/DSCN3567-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">An example of the DSO Nano</p></div>
<p>The DSO Nano. They are cheap and tempting but they are not worth the money. From what I can tell, they have very low bandwidth and aren&#8217;t that great. There is a new model out for about 180 bucks, I may buy one to see what it&#8217;s all about. There are other portable DSOs out there but anything that&#8217;s any good is a fair amount of money such as the Fluke 123 and various others. OWON makes one for about $500 I believe.</p>
<div id="attachment_1028" class="wp-caption aligncenter" style="width: 410px"><a href="http://smackaay.com/wp-content/uploads/2011/12/scope_lights.jpg"><img class="size-medium wp-image-1028" title="scope_lights" src="http://smackaay.com/wp-content/uploads/2011/12/scope_lights-400x300.jpg" alt="" width="400" height="300" /></a><p class="wp-caption-text">An example of a usb oscilloscope</p></div>
<p>Well, some people like Dave from EEVBlog warn people away from these USB oscilloscopes but I wonder why sometimes. The only difference really is that the display is now standard hardware instead of the company having to engineer a whole interface on custom hardware. It should be noted though to stay away from the cheap ones on EBay. The ones for about 60 bucks have a bandwidth in the low KHz, yes, not MHz and they suck. Stay away from cheap USB oscilloscopes. somebody who appears to make good ones is <a href="http://www.picotech.com/picoscope-usb-oscilloscope.html">Picotech</a>, but that said they are the only company I have experience in that regard.</p>
<p>Anyways, You can get away with $300 oscilloscopes for hobby work, don&#8217;t cheap out if you can help it. It&#8217;ll make your life easier.</p>
<p>The Rest</p>
<p>Well, I don&#8217;t know if I can say &#8220;The rest&#8221;. there are so many things you can buy to accompany your lab that it&#8217;d take many tens of pages of writing to cover even in a very cursory fashion.</p>
<p>I&#8217;ll list a few things in point form you could need in your lab to make it both workable  and useful.</p>
<ul>
<li>Breadboards &#8211; Cheap and effective, get at least 2. You can get them for 5 bucks each on EBay</li>
<li>Soldering iron &#8211; Spend 100 dollars and get a temperature controlled one. Weller or Hakko. Those cheap 20 watt soldering irons suck and you&#8217;ll waste more time than anything with them.</li>
<li>Side nips, you can get these for like 3 dollars.</li>
<li>Wire strippers &#8211; Again, EBay, Cheap. Get the lower gage ones 20-30 gage unless you do a lot of speaker wire and power stuff.</li>
<li>Wire &#8211; get some rolls of solid core wire in both 22 and 24 gage. get different colors. red, black, green and white are recommended. more colors the better.</li>
<li>Resistors &#8211; you can get sets of resistors off EBay or from Jameco for cheap. Get 1/4 watt ones, that&#8217;s standard.</li>
<li>Diodes &#8211; a pack of diodes off ebay might cost you upwards of 2 dollars. yes. cheap</li>
<li>component packs &#8211; These carry a whole slew of random parts you might need. Everything from switches and caps to potentiometers and other goodies.</li>
<li>Alligator Clips &#8211; Get some alligator clip wires, very handy for everything.</li>
<li>A good light &#8211; Get yourself some adequate lighting, only costs a few bucks but makes working much more pleasant.</li>
<li>Arduino &#8211; Personally, I hate arduinos but if you&#8217;re new to things, get one. It introduces things in a much more pleasant way and allows results quicker.</li>
</ul>
<h4>The DON&#8217;T List</h4>
<div>
<ul>
<li><span style="font-size: small;">Don&#8217;t get random resistors in a bag, waste of time and money. the standard set is fine</span></li>
<li><span style="font-size: small;">Don&#8217;t get bags of transistors, you&#8217;ll never use them. You&#8217;ll never really know what they are. You&#8217;ll never really know if they&#8217;re any good.</span></li>
<li><span style="font-size: small;">Don&#8217;t get IC grab bags. You will very rarely get anything good. Trust me, I&#8217;ve bought them before.</span></li>
<li><span style="font-size: small;">Don&#8217;t buy Stick Irons for soldering, they suck!</span></li>
</ul>
<p><span style="font-size: small;"><span class="Apple-style-span" style="line-height: 24px;">Anyways, that&#8217;s what I have to say. I&#8217;m sure I&#8217;ll get comments telling me how painfully incorrect I am and that I&#8217;m a subhuman monster for saying such things. If I&#8217;m terribly wrong, tell me, perhaps I&#8217;ll change it.</span></span></p>
</div>
<p>It should be said that I started out with damn near nothing but a bench and a $10 multimeter. I struggled and struggled and bought nothing but cheap crap because I&#8217;m a cheapskate. I didn&#8217;t buy a compiler and there was no such thing as an Arduino (At least not to my knowledge) so I wrote all my programs in assembly which is extremely time consuming.</p>
<p>Anyways, I suppose what I&#8217;m trying to say is that if I can learn it, anyone can. even on a limited budget. If you&#8217;re serious about it though, spend the extra few bucks and get something decent.</p>
]]></content:encoded>
			<wfw:commentRss>http://smackaay.com/2011/12/11/electronics-lab-on-the-cheap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

