<?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>Bret Kuhns &#187; electronics</title>
	<atom:link href="http://www.bretkuhns.com/blog/tag/electronics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bretkuhns.com/blog</link>
	<description>Programming, Cars, and Life</description>
	<lastBuildDate>Sun, 19 Dec 2010 19:05:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hyperterminal Replacement For Linux</title>
		<link>http://www.bretkuhns.com/blog/2010/03/hyperterminal-replacement-for-linux/</link>
		<comments>http://www.bretkuhns.com/blog/2010/03/hyperterminal-replacement-for-linux/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 18:17:21 +0000</pubDate>
		<dc:creator>Bret Kuhns</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenLog]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.bretkuhns.com/blog/?p=108</guid>
		<description><![CDATA[This is a little gem I found recently when I needed to communicate with my OpenLog board. A lot of tutorials want you to pull up HyperTerminal in Windows to talk to OpenLog over the USB-&#62;UART bridge. My biggest problem with this is that I&#8217;m primarily a Linux user, where HyperTerminal is unavailable. That&#8217;s all [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little gem I found recently when I needed to communicate with my <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9530">OpenLog</a> board. A lot of tutorials want you to pull up HyperTerminal in Windows to talk to OpenLog over the <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=8772">USB-&gt;UART bridge</a>. My biggest problem with this is that I&#8217;m primarily a Linux user, where HyperTerminal is unavailable. That&#8217;s all well and good, however, I&#8217;ll just boot into my Windows 7 install and do it, right? Wrong. Windows 7 no longer ships with HyperTerminal. I jumped back to my Ubuntu Linux install and started hunting for a HyperTerminal replacement. The best solution I ended up finding was a command-line application called <a href="http://en.wikipedia.org/wiki/Minicom">minicom</a>. This handy little app is a bit to get the hang of, but once you&#8217;re using it, it works like a charm. Here&#8217;s a quick rundown of connecting to a serial device over USB using Minicom.<span id="more-108"></span></p>
<p>First, let&#8217;s figure out the path to our serial device. Ubuntu typically places these devices at /dev/ttyUSB#. Use the following command to determine the appropriate number of your device.</p>
<pre class="brush: plain; gutter: false;">$ ls /dev/ttyUSB*</pre>
<p>Now we&#8217;ll install Minicom to get started.</p>
<pre class="brush: plain; gutter: false;">$ sudo apt-get install minicom</pre>
<p>Once that&#8217;s complete, we&#8217;ll need to configure Minicom so that it&#8217;s using the correct port. To do this, run the command below.</p>
<pre class="brush: plain; gutter: false;">$ minicom -s</pre>
<p>You&#8217;ll be prompted with a configuration menu. Arrow down to &#8220;Serial port setup&#8221; and press enter.</p>
<div id="_mcePaste">
<pre class="brush: plain; gutter: false;">+--------------------------------------------------------+
| A -    Serial Device      : /dev/ttyUSB0               |
| B - Lockfile Location     : /var/lock                  |
| C -   Callin Program      :                            |
| D -  Callout Program      :                            |
| E -    Bps/Par/Bits       : 115200 8N1                 |
| F - Hardware Flow Control : Yes                        |
| G - Software Flow Control : No                         |
|                                                        |
|    Change which setting?                               |
+--------------------------------------------------------+</pre>
</div>
<p>The first line will give you the path to the serial port Minicom is going to talk to. If this doesn&#8217;t match the /dev/ttyUSB# path you found above, hit &#8220;A&#8221; on your keyboard and enter in the correct path and press enter. Now double check your Bps/Par/Bits settings. The default 9600 8N1 is pretty standard, but you may need to hit &#8220;E&#8221; and provide a different Speed setting depending on the device you&#8217;re talking to. In my case, OpenLog is running at 115200bps, so I went through and made the appropriate changes. Hit enter again to exit the serial port settings menu. The other settings can usually be left to their default values, so arrow down to &#8220;Save setup as dfl&#8221; to save this configuration as default. This way you don&#8217;t have to configure Minicom every time you use it. Now arrow down to &#8220;Exit&#8221; and hit enter. Minicom will now start up using the settings you specified. If all goes well, you should now be connected to your device and ready to send/receive. From now on, you can start minicom without the -s switch.</p>
<pre class="brush: plain; gutter: false;">$ minicom</pre>
<p>Got a better HyperTerminal replacement that you use in Linux? Let me know about it in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bretkuhns.com/blog/2010/03/hyperterminal-replacement-for-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>8-bits of Processing Goodness</title>
		<link>http://www.bretkuhns.com/blog/2010/01/8-bits-of-processing-goodness/</link>
		<comments>http://www.bretkuhns.com/blog/2010/01/8-bits-of-processing-goodness/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 18:49:43 +0000</pubDate>
		<dc:creator>Bret Kuhns</dc:creator>
				<category><![CDATA[Cars]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[arduino]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[senior design]]></category>

		<guid isPermaLink="false">http://www.bretkuhns.com/blog/?p=30</guid>
		<description><![CDATA[The last semester of my undergrad program in CSE is finally here! This semester I have a Senior Design course where students form their own groups and come up with an idea related to the curriculum and implement it. Now if only I had an idea of what to design&#8230;
I&#8217;ve been participating in autocross events [...]]]></description>
			<content:encoded><![CDATA[<p>The last semester of my undergrad program in <a href="http://www.eng.utoledo.edu/eecs/">CSE </a>is finally here! This semester I have a Senior Design course where students form their own groups and come up with an idea related to the curriculum and implement it. Now if only I had an idea of what to design&#8230;</p>
<p>I&#8217;ve been participating in <a href="http://en.wikipedia.org/wiki/Autocross">autocross </a>events for years and have always wished I could afford a data acquisition system like those you see used in Formula 1, Indy, Le Mans, and/or NASCAR. With a <a href="http://en.wikipedia.org/wiki/Data_acquisition">DAQ</a>, I&#8217;d be able to see exactly what my car is doing at an event and use that information to help me drive the course faster on my next run. Hopefully.</p>
<p>That got me thinking. Surely I&#8217;m not the only amateur autocrosser wishing for an affordable data acquisition system made for the weekend warrior. In fact, LOTS of people across the nation, and across the globe would probably love such a system. I didn&#8217;t know of any that existed on a college student budget, so I figured why not make one? It just so happens this senior design semester is the perfect time to get started. But where to begin?<span id="more-30"></span></p>
<p>I began looking at professional systems to see what they were doing so I could get an idea where to start. After looking at a few of the products out there, most of them seemed to be doing some sort of GPS tracking as well as logging all the sensor data the user needs (or can afford). I started looking into using a USB GPS plugged into a laptop and use software to track and log the position data so the user could review it later. In the midst of looking for a GPS, I discovered most of the professional units were boasting GPS units with 5-20Hz refresh rates, but the units I found were all 1Hz. Hmm, I know I want to go cheap, but it also needs to do it&#8217;s job well. I had to find something better. I eventually stumbled upon a <a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9060">10Hz GPS chip</a> that sounded like it would do the trick, but how in the world was I going to get data off a lone circuit chip? I also want to use an accelerometer to measure precise movements of the car, but USB versions were expensive. Chip-only models were vastly cheaper, but how do I connect one to a computer? Time for some more research.</p>
<p>That&#8217;s when I met the <a href="http://www.arduino.cc/">Arduino</a>.</p>
<div id="attachment_78" class="wp-caption aligncenter" style="width: 310px"><a rel="lightbox" href="http://www.bretkuhns.com/blog/wp-content/uploads/2010/01/arduino.jpg"><img class="size-medium wp-image-78 " title="Arduino Duemilanove" src="http://www.bretkuhns.com/blog/wp-content/uploads/2010/01/arduino-300x225.jpg" alt="Arduino Duemilanove" width="300" height="225" /></a><p class="wp-caption-text">So many possibilities in such a tiny package.</p></div>
<p>I think the Nintendo was the last time I used an 8-bit processor, but I have a feeling I&#8217;m going to have so much more fun with this thing! Could your Nintendo convert an analog voltage into a 10-bit digital value? I didn&#8217;t think so.</p>
<p>The <a href="http://www.arduino.cc/en/Main/ArduinoBoardDuemilanove">Arduino Duemilanove</a> is the latest board to come from the open hardware Arduino project. The beauty of Arduino is it&#8217;s openess and ease of use. The design schematics are openly available; ready for people to adapt and improve, or to integrate directly into their own projects. The microcontrollers used also come pre-programmed with the Arduino <a href="http://arduino.cc/en/Hacking/Bootloader?from=Main.Bootloader">bootloader</a> which makes it a piece of cake to write some code, plug the board in via USB, click a button to upload the code and make it run. The Arduino drastically lowers the learning curve necessary to start using a microcontroller.</p>
<p>With my Arduino, the possibilities are endless. This little board has opened the door wide open to this project and should be able to handle everything a motorsport data acquisition system should need. Now it&#8217;s time to fire this thing up and see what it can do! Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bretkuhns.com/blog/2010/01/8-bits-of-processing-goodness/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Free Day For All!</title>
		<link>http://www.bretkuhns.com/blog/2010/01/free-day-for-all/</link>
		<comments>http://www.bretkuhns.com/blog/2010/01/free-day-for-all/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 14:13:07 +0000</pubDate>
		<dc:creator>Bret Kuhns</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[freeday]]></category>
		<category><![CDATA[sparkfun]]></category>

		<guid isPermaLink="false">http://www.bretkuhns.com/blog/?p=34</guid>
		<description><![CDATA[SparkFun Electronics held their Free Day event on January 7th, 2010 at 11am EST. I had a few parts that I wanted to order for my senior design project this semester (more coming on that in another post) and was really excited to be able to get those parts for free during the event!
Or maybe [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sparkfun.com/">SparkFun Electronics</a> held their <a href="http://www.sparkfun.com/commerce/news.php?id=321">Free Day</a> event on January 7th, 2010 at 11am EST. I had a few parts that I wanted to order for my senior design project this semester (more coming on that in another post) and was really excited to be able to get those parts for free during the event!</p>
<p>Or maybe not. I hopped into the #Sparkfun chatroom on irc.freenode.net the morning of Free Day to check out what people were chatting about. To my dismay, hours before the event started, there were already almost 700 people in the chatroom. According to Sparkfun&#8217;s limitations on the event, only 1,000 $100 orders would be awarded. The numbers were already daunting. I pulled up the Sparkfun website to find their recently updated web servers were already buckling under the load of people preparing their shopping carts. Uh oh. As time neared 11am, the chatroom hit the 1,400 user mark and my hopes of free electronics started to dwindle.<span id="more-34"></span></p>
<p>Minutes before the event, I went to my shopping cart, and prepared to click the Checkout button on the hour. 11am struck, my finger punctually tapped the mouse button, and my order request was on it&#8217;s way across the &#8216;tubes to Sparkfun&#8217;s datacenter in Colorado&#8230; Minutes later, the page timed out and I sent the request again, and again. As the minutes went by, so did the time outs and blank white pages across my screen. Scanning the chatroom, I saw reports of people successfully reaching the shipping page, ready to submit their Free Day order; still nothing on my screen. After an hour of failed attempts, I finally reached the log-in screen. Gah, I logged in just before the event started to avoid this! After providing my account info, I waited another 10 minutes and reached the shipping page. The taste of success was on my tongue as many before me reported their completed orders shortly after reaching the shipping page. I gleefully submitted my shipping information.</p>
<p style="text-align: center;"><a rel="lightbox" href="http://www.bretkuhns.com/blog/wp-content/uploads/2010/01/sparkfun_free_day.png"><img class="size-medium wp-image-36 aligncenter" title="SparkFun Free Day" src="http://www.bretkuhns.com/blog/wp-content/uploads/2010/01/sparkfun_free_day-300x229.png" alt="" width="300" height="229" /></a></p>
<p>And that was the last I saw of Sparkfun.com. As I watched the Firefox throbber spin away, my heart dropped as people reported the giveaway totals nearing dangerously to the $100,000 limit. Before I could reach the billing page, SparkFun <a href="http://twitter.com/sparkfun/status/7486293215">announced on Twitter</a> that Free Day was officially over. And so were lost my dreams of free electronics. Sulked, I returned to the chatroom to read the flurry of exuberant posts from those who had successfully received their Free Day orders.</p>
<p>This story ends happily, however. Once the rush of traffic to Sparkfun&#8217;s site died down after the event, I was able to trim my bloated cart of electronic goodies to only that which I needed for my project, and proudly submitted my non-free order.</p>
<p>Thanks for the experience, Sparkfun.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bretkuhns.com/blog/2010/01/free-day-for-all/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

