Tuesday, April 23, 2013

Embedded Systems Conference 2013

Errr... I mean... DesignWEST?

I took a break from the grind of grad school down in SLO today to come up to San Jose for the first day of what people still call ESC. It was, like always, a very interesting day spent catching up with old friends, making new ones, learning about new services and technologies, and swapping the scuttle-bug about who is now working for who and who left which company.


One of the most interesting talks I had was with my friend Clint from CircuitCo (which you may remember I toured their facility in Texas back during the summer). CircuitCo invariably has quite a few interesting things in the pipe, including their new MinnowBoard based on the Intel Atom processor.
While almost all of the contemporary embedded Linux boards that everyone is getting excited about are ARM-based, there are still some advantages to having an x86-based board. There are applications which only ship as x86 binaries which I can't run on any of my ARM boards, and the Atom enjoys slightly higher end peripherals than most of the ARM boards (SATA, 1000bT Ethernet, etc.). Distributors are musing upon a $199 price-point, which isn't bad for a first-out-the-gate x86 board, and I like seeing anyone put pressure on Intel about refreshing their aging Atom line.


I never snagged a personal picture of the new BeagleBone Black, even though I think I saw them in at least a dozen booths. I'm certainly excited to see how this iteration plays out against the Raspbery Pi; TI has come within striking distance of their price point with enough extra features to make people take notice.

To be fair, I always have been and will be in the Beagle camp, since the $35 price point of the RPi makes no difference to me; CircuitCo and TI give me Beagle kit for free whenever I ask. I love love love all the I/O options the BeagleBone gives me vs the Pi, so I don't even feel bad. Of course, the BBoneBlack is yet another dev kit reminding me how silly it is that I have no way to view HDMI in my TV-(and sub-five-year-old monitor)-free apartment.


While having dinner with Philip Freidin and gang last night, the new Nordic nRF51822 RF SoC came up in conversation (we are so much fun at parties). This chip consists of a 2.4GHz radio transceiver and an M0 ARM processor with 16kB RAM/ 256kB FLASH, and just happens to the the perfect part for a project I've been trying to part out for a few months. This SoC is going to easily replace three or four ICs on my napkin BOMs, so I was pretty excited to start playing with it.  Unlike all the yahoos roaming around in herds trying to get the free stuff listed in the program, I just asked Nordic for one of their nRF51822 eval kits. They make a big ado about sneakily pulling one out from under the counter for me, but considering that I don't really need any more cheap ballpoint pens, I appreciated it. Thanks Nordic!


Samtec is a connectors manufacturer who I have gotten good recommendations for. They were nice enough to give me one of their connector kits, which is a little SMD heavy for my taste, but certainly useful.


I always feel a little silly doing it, but I make a point of picking out a relevant stack of the conference trade journals when I'm at conferences like this one. It gives me some interesting, if annoyingly marketing-hyped, reading for when I'm laying in bed.

Other than that, I had an overall good time today at ESC. Catching up with old friends was nice, and it put plenty of new exciting things either on my radar or in my pipeline. Both myself, and a few companies where I have friends, look to be announcing some exciting news this year. Stay tuned. ;-)

Wednesday, April 17, 2013

Canon Vixia External Battery Pack

Last year, when I got serious about blogging and producing videos for this site, I got a Canon Vixia HF R21 HD camcorder. It's a great little camera, with 32GB of internal storage plus two (!) SD slots for future-proof expansion.

My one complaint with it is that the battery life isn't very exciting. At the time, it seemed that almost all the small HD camcorders suffered from the same plight, which is a 45 minute battery life. It's rare that I don't need to shoot at least that much video, even for a short video, and I'm regularly recording 2 hour lectures with it. This means that I've been tied to a 120V outlet, which is rather annoying.
To solve this annoyance, I built myself a 2.1mm barrel to Canon adapter, using little more than one of the LM2596 switching regulator boards that you can get on eBay for $2 a piece*. I was never able to figure out what the power connector on the Vixia really is, so I broke down and bought one of the $10 knock-off wall chargers and cut off the wall wart. Now I'm able to plug in as big or as little of a battery as I like, and no longer need to be near an outlet when shooting video.

* - I've found that these cheap voltage regulators often come with one or two cold solder joints, which can make for flaky performance. I've made it standard protocol to reflow all the solder joints and add more solder before building one of these into any project.

Calibrating a Vector Network Analyzer



A quick video I shot last night explaining how to calibrate an MS4622B VNA for the Microwaves lab I'm teaching this quarter (which is part of why things are so quiet on here).

Monday, February 18, 2013

DIY USB Power Strip

Somewhat predictably, I happen to own quite a few pieces of personal electronics that I need to keep charged. Fortunately, the vast majority of devices have moved towards the standard of being charged via USB. Until recently, I made do with charging my devices from a spread of computer ports, wall USB chargers, and the convenient USB port on the back of my Chumby. This worked acceptably well until one of my friends was visiting and went to charge his iPhone from my Chumby, which burnt out the Chumby's 5V 2A wall adapter.  Incredibly ironic, when you consider how many other ways the iPhone has already killed Chumby.

In any case, now I'm down  my most-used USB charging port, and a Chumby. I considered simply replacing the power supply and carrying on, but having a few more bed-side USB ports would be handy. I therefore opted to build myself a USB power strip.
 It's shown with the top cover removed. On the right is a 2.1mm barrel jack to accept standard 12V wall warts (which I've made a standard of as many of my projects as possible), and on the left is 5 "dumb" USB ports for charging devices.  Originally, USB wasn't at all designed to be a charging port, and required quite a bit of intelligence on both ends of the connection to negotiate how much power the client device can consume.  Manufacturers had no interest in spending the extra cost to make a phone charger that intelligent, so each manufacturer came up with its own bastardization of the USB spec (usually via random resistors between various pins).

This was little-to-no-fun, so the USB spec eventually caught up with reality and defined "dedicated charging ports," which are dumb USB ports where the two data pins are simply shorted together to indicate to the client that they do nothing except provide power.  Manufacturers like this because they no longer need to add a 15 cent IC to their chargers, and us hobbyists like it because shorting the two data pins together is a much easier way to build USB chargers than trying to reverse-engineer every manufacturer's creativity on the issue (see Lady Ada's work on the subject).
This was a quick one-evening project out of my junk box, but I've found it rather handy. The 12V input is regulated down to 5V 3A with an LM2596 switching regulator module, which can be had on eBay for less than $2 shipped. At $2, these modules are a great deal, and I've found them handy to have laying around for projects like this, but you do need to appreciate what you get for $2. When received, this board had several cold solder joints, which made for frustrating intermittent operation.  A quick going-over with a soldering iron solved this issue, and it has been running fine ever since.

The one point of interest that I added to this was 600mA polyfuses to four of the ports. These are solid-state fuses that don't permanently blow, but will reset themselves after the load is removed. I left the fifth port un-fused, since I'm using it to power my Chumby via a hacked-together male-USB-to-whatever-tiny-barrel-connector the Chumby uses. The Chumby typically only draws 0.5-0.7A, but will momentarily draw in the >1A range (particularly while booting).

  • 2.1mm female barrel jack to mate with standard 12V 1.5A router wall wart
  • Red LED + panel mount fitting + 4.6k current-limiting resistor
  • LM2596 switching regulator (<$2 complete module on eBay + repair)
  • 4x 600mA trip-current polyfuses (Digikey)
  • 5x Panel-mount female USB sockets

In hindsight, the fuses were a good idea that work out great, except that Apple seems to hate every spec they didn't invent themselves.  Dedicated charging ports are unable to digitally tell client devices how much power they can deliver (500mA? 1A? 2.5A?), and instead simply shut down the port when this limit is exceeded. It is then the client's job to figure out where this limit is and to do the best it can to stay below it.  It appears that in the case of my 4G iPod Touch, when it sees the USB port's voltage start to droop below 5V, instead of reducing its current load like it should, it simply displays a notification "Charging is not supported with this accessory" and gives up.  This means that when my iPod happens to be discharged far enough to draw >600mA when I plug it in, instead of waking up to a charged iPod, I get the pleasure of discovering that it instead gave up after a minute and sat there doing nothing all night.

I haven't had any issues with any other devices plugged into these DCP USB ports, and hopefully future devices will tend to be more standards compliant. Shown in the first picture of this post is this power supply charging my iPod 4G, my EnV3 dumb phone, my BaoFeng Amateur radio, my Kindle (on the bottom shelf out of view), and running the Chumby, all at once. This was certainly one of those DIY projects where I have the satisfaction of using this every day, and with the exception of Apple being a bunch of jerks, has made my life better. Having 5 USB ports next to my bed is nice, and has the added advantage that if I ever lose power (due to natural disaster, etc), re-purposing this to run off of any 12-35V DC power source is trivial.

Monday, February 11, 2013

Radio Club Talk on Lead Acid Batteries

Video:


Quick follow-up to my previous post on my lead-acid battery charger.  I've finally uploaded the recording of the CPARC meeting where I talked about lead-acid battery chemistry and general charger design.  Here is the slides I'm giving this presentation from. (Appreciate that this is hosted from my apartment, so if the link is dead, try coming back later and trying again.)