AVR HV Rescue Shield Code Update 1.2

August 18th, 2010 by Jeff

Version 1.2 of the Arduino sketch that powers the AVR HV Rescue Shield is now available for download.

The revised sketch now displays the target AVR’s existing fuse settings before asking you for new ones.

I also cleaned up and reworked the code in a couple places, but these changes shouldn’t affect the existing functionality.

If you have any issues or questions about the new code, post them in the support forum or contact me directly.

Measuring network performance with iperf

August 16th, 2010 by Jeff

My new place in Austin came with a huge perk for a tech geek like me – it came pre-wired for ethernet in every room.  (Well, technically not every room is wired.  The laundry room, bathrooms, and garage are not, an understandable oversight.)

After installing a new D-Link Gigabit Ethernet Switch, I wanted to check the throughput to see if I was actually getting gigabit speeds – particularly because the house is wired with CAT-5e cable (and not the recommended CAT-6).

There are many ways to measure network throughput.  In the past I have usually copied a file across the network and used a stopwatch to get a relative sense of speed.  However, due to file sharing protocol overhead I always got disappointing results and never knew maximum capability of my network.

This time, based on the advice of a more network-savvy friend, I decided to use a command-line tool called iperf.

iperf is a command-line tool to measure network performance.  It is very powerful, but also easy to use for simple tests.  For a more complete overview of what iperf is and what it can be used for, check out this tutorial or the iperf page on Wikipedia.  iperf has a lot of options, and I won’t cover the majority of them here.  For more usage information, consult the iperf manual.

If you run Debian or Ubuntu (Linux), iperf can be installed by executing

sudo apt-get install iperf

I did these tests with OS X on the Mac since both of my Macs have gigabit ethernet ports and my older PCs don’t.  A package for iperf is conveniently available from Macports.  It can be installed via the graphical package manager Porticus or opening a Terminal window and typing

sudo port install iperf

In my case, all I wanted was a quick test of TCP/IP network performance.  This is easy to do, but it requires two computers, a client and a server, both connected to the network under test.  Ideally, there should be no other network traffic during the test, as this will affect the results.

On the first computer, launch the iperf server by executing

iperf -s

You should see something like this:

------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------

On the 2nd computer (the client), open a Terminal window and run

iperf -c <IP address or hostname of server> -i 1

Within a few seconds, you should start to see reports coming in on both the client and server terminal windows:

------------------------------------------------------------
Client connecting to mini.home, TCP port 5001
TCP window size:   129 KByte (default)
------------------------------------------------------------
[  3] local 192.168.24.135 port 65142 connected with 192.168.24.77 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec    110 MBytes    924 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  1.0- 2.0 sec    101 MBytes    850 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  2.0- 3.0 sec    109 MBytes    914 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  3.0- 4.0 sec    100 MBytes    841 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  4.0- 5.0 sec    111 MBytes    927 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  5.0- 6.0 sec    102 MBytes    853 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  6.0- 7.0 sec    110 MBytes    923 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  7.0- 8.0 sec    102 MBytes    858 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  8.0- 9.0 sec  79.4 MBytes    666 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  9.0-10.0 sec  93.6 MBytes    785 Mbits/sec
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1018 MBytes    854 Mbits/sec

The last report (for the interval 0.0-10.0 sec) is the average throughput for the entire test.  I’m more than happy with 854 Mbits (927 Mbits/sec peak!) given my fairly long runs of CAT-5e cable and other machines using the network.   Contrast this with my results over 802.11g wireless:

[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  24.9 MBytes  20.9 Mbits/sec
Ouch.

Bluetooth Headset inside a [toy] Handgun

August 3rd, 2010 by Jeff

MayorMike, inspired by the article I wrote for Make vol. 20 (Retro Wireless Handset), stuck a bluetooth headset in a plastic toy gun to create his Handgun Bluetooth Earpiece Project.  The best part – the earphone is located at the end of the barrel, so to answer a call, you stick it up to your ear.  Genius.

The innards are shown below.

Nice work, MayorMike!  May I suggest that you pair this with a Hand Grenade MP3 Player?

via BoingBoing

Getting settled in Austin

August 2nd, 2010 by Jeff

Welcome to Texas

We made it!  Driving a moving truck almost 2000 miles across America was no picnic (it gets HOT in Arizona) but ~4 days of travel were relatively uneventful (only one flat tire!). Pretty much everything made it intact, including a few hundred pounds of lab benches and equipment.  (Note to self, next time get twice as many moving pads as seems necessary!)

My wife and I have been getting acquainted with our new city.  One of the interesting/unique things about Austin is the local trailer food scene.  One example, shown below, is odd duck, where you can purchase local, sustainable, gourmet wood fired food out of a trailer in South Austin.  Yum.

odd duck

The biggest downside to Austin I have found so far (aside from the lack of In-n-Out and Trader Joe’s) has been the pitiful upstream bandwidth that Time Warner provides with their Roadrunner internet service.   Check out these Speedtest results:

Time Warner Austin 8/2/10

Holy asymmetric internet access, Batman!

Compare those results with this test I ran before I packed up my computer in San Francisco:

Comcast San Francisco 6/30/10

Over 4 megabits!  If only I knew how lucky I was on Comcast when I could upload entire Flickr albums and HD videos in minutes!

Time Warner – 512K?  Really?

Ok, that’s enough for now – time to unpack the power supplies and oscilloscope.

PS. I almost forgot.  There are a few pictures of the move on Flickr.

MightyOhm is moving!

June 30th, 2010 by Jeff

Austin, here we come!

I apologize for the slow updates as of late, but I have some big news that I would like to share with you:

MightyOhm is moving to Austin, Texas!

While the move should be pretty much transparent to anyone reading the blog, there will be a lot going on behind the scenes in the next few weeks.  Most significantly, orders placed after July 9th will not be shipped before August 1st. The move will continue to take time away from the blog as I figure out how to move an electronics lab across three states.  Don’t expect too many posts in the next few weeks!

I am sad to be leaving San Francisco (and the many friends I have made in this wonderful city), but I’m eager to explore a new city, meet new friends, and make Austin my home.  Once I get settled, I would really like to meet some other electronics geeks in the area.  If anyone who reads the blog lives in or near Austin, please send me an e-mail or comment below to say hello!

That reminds me: Does anyone know where to find surplus electronic parts in Austin?  If you do, please post a comment here or add it to the wiki.  As soon as I unpack, I’ll be looking for local substitutes for Silicon Valley’s HSC and Weird Stuff.

That’s all for now.  Time to pack up my soldering iron and oscilloscope!


www.flickr.com
mightyohm More of mightyohm