ladyada’s ranting afowejfaiwuehfakjnfa

Archive for the 'EE' Category

Thursday, May 18th, 2006


I finally got off my butt and finished documentation for MIDIsense, a simple and inexpensive MIDI/sensor system for artists, musicians and experimenters. I did a workshop with these in March and they worked great so I’m happy that they’re finally available.
The only board I’ve released so far is for log resistive sensors. These are pretty common: photocells, bend/flex sensor, force sensors. My example right now is a laser harp using $3 laser pointers and $0.50 photocells. I’ll probably do an example with a bend-sensor glove or tapping a force sensor next. I’m also, of course, hoping people decide to buy the kits and come up with neat new interfaces.

I’ll release the Analog/Digital I/O board next, which will be much simpler, in a sense…but will allow 5 buttons/switches and 6 analog inputs, such as distance sensors and linear potentiometers.

More importantly, I need to hack on the windows python code because the windows MIDI subsystem seems quite slow in comparison to even a 3 year old iMac!

Thanks to EYEBEAM Openlab for supporting this project as part of my fellowship!

Sunday, April 16th, 2006

An email from the inimitable Michael Baker reminded me that I have a blog. “Hello blog! I apologize for locking you in a closet and forgetting to feed you.”

Today we will look at what happens when electronics companies have bad web-designers. To wit, I am currently designing more cellphone jammers and I was visiting my favorite source of high frequency VCOs, MiniCircuits, to spec some parts. Click on that link. Now lets start with the main image.

OK, now, what exactly is going on here? There are 10 guiding principles, some sort of dodgeball game going on, and only ‘SPEED’ is in all caps. Why is passion getting attacked? What exactly is a “Quality Culture”?

For bonus points, please explain why the “Dynamic Product Search Engine” (which works pretty well) is named with a synonym for “vagina”:

To quote my friend, the German, “i think design by committee is to blame, no one person could fuck up that bad”
Thursday, March 9th, 2006

I miss the awesome PCB etching setup I had back in the media lab so I decided to put together one here at home.

So far so good, it took 3 tries to get anything decent out of the toner transfer system. I highly suggest the “dowel roll” method for high pressure. All in all, I dont like toner transfer. Photoresist is way superior. However, if you have a laminator apparently everything works a lot better so I’ll be looking into that.

I have some more photos on flickr and a more detailed tutorial later. The etching system is the hardcore MG 7liter. One thing I can say for certain: its more than 7 liters and, secondly, its very hardcore. The regulated heater, thermometer and sparger are awesome and saved me the effort of building a similar system. I etched my 3″x5″ single sided 1oz copper board in about 5 minutes. With a high quality image transfer system (like a simple photoresist) one could definately go down to 10/10mil rule.

I think its way too big though, who the hell etches 8″x12″ boards? I can rarely get consistant exposure over 6″x8″. I may get a different sized tank and keep the nice heater and sparger/manifold/thermometer.

Drilling is performed with a Dremel “multi pro” 3-15krpm in the Dremel “workstation/press” fitted with carbide wire-size drills.

Anyways, thumbs up for the MG “pro etch system” and a no-so-thumbs up for the Pulsar toner transfer system.

Wednesday, March 8th, 2006

animated pacman spokepov

This is the first animated gif i’ve made…its pretty simple yet took a bit of tweaking in photoshop to make the two images line up correctly despite using a tripod.

The technology here is ‘persistence of vision‘…when LEDs move fast enough they can ‘draw’ an image onto the retina when the wheel spins. That’s the basis behind both the MiniPOV and SpokePOV (shown here) toys that I designed last year.

I rode this design around last Burning Man. Of course, I’ve adjusted the pictures so they’re ‘upside down’ here for better photographing!

If you’d like to build your own, check out the full instructions on Instructables, hosted by the niftypeople at SquidLabs

pakpakpakpak

Monday, March 6th, 2006

I’m behind schedule, so this week we will have 3 chips (from the same family). Instead of reviewing some fancy shmancy ASIC, we’re going to get back to basics with a nice, cheap opamp set.

Cause sometimes you just want an opamp. Nothin’ crazy, just want to add some voltages, maybe amplify something a bit. Possibly do some filtering, or interface to a sensor, or some audio stuff.

Well, my friend, the TL08x’s are your bread & butter.

Some specs:

  • 4 MHz gain bandwidth (internally compensated)
  • Not rail-to-rail so 8V rail is minimal, a split +-15 is great but even +- 5 is good to go
  • Input offset voltage is <15mV
  • Input bias current <8nA
  • JFET input stage so you’ve got a ridiculous 10^12 (1 Mega-Mega ohm!) input resistance
  • <2.8mA/opamp quiescent current
  • 13V/us slew rate
  • noise figure: 25nVrtHz

Lets compare it to the ye olde favorite, the LM741:

  • 1 MHz bandwidth
  • Not rail-to-rail
  • Input offset voltage: <5mV
  • Input bias current: <800nA
  • Transistor input stage, >300Kohm input resistance
  • <2.8 mA quiescent
  • 0.5V/us slew rate
  • noise figure: 30 nVrtHz

So the worst case offset voltage is better on the ‘741, but the gainbandwidth, the input resistance, input bias current and the slew rate sucks in comparison to the ‘081. And the 081 is a little less noisy too.
The dual in 8DIP is a mere $0.64 from digikey, mouser has them from STMicro for $0.37. Thats cheaper than a cup of coffee!

So, when you want to have a stash of opamps for prototyping, these are your best bet. I especially like just having the duals and quads around, and then swapping out a better specified opamp later on in the project if it’s called for.
The offset voltage usually isn’t so horrid, of course, although I still suggets coupling AC if you’re cascading gain stages.
Congratulations, TL082, you are the Chip of the Week!

Thursday, March 2nd, 2006

A nice fellow came by the lab today and gave me his business card.

When I asked what the grid of holes were about, he replied “that’s the prototyping area.”
How f’ing hardcore is that?

He was also wearing a binary LED watch he built, cast in a chunk of solid acrylic, with capacitive touch sensors for the UI.
Thanks to the internet, I have found visual proof of this device (ripped from www.chicagoreader.com/pdf/050722/050722_ot_srilanka.pdf)

I hereby resolve to put more magic crystals and rainbows in my projects. Thanks, Todd!

Tuesday, February 28th, 2006

So you need an op amp…and you can’t use just any generic op amp because of certain requirements. For example, a low supply voltage (<10V), high frequency, low noise, low power requirements etc.

Finding the right op amp isn't hard, here is an example of how to go about your search. For this example, I will specify the op amp to be used for the circuit from last week, a tape-head preamplifier. The schematic used an OP37. However, this op amp requires a 8V powersupply, and I'm going to be using only a 3V battery. Also, its good to see if there are any cheaper alternatives.

Specifically, the op amp is going to amplify a 10uV peak-to-peak signal by 1000 (up to 10mVpp). The op amp should work from 20Hz to 20KHz (optimal audio range), & be not too tough to solder.
First, write down what the constraints are:

  • Has to run on a 3V “single supply” and we’ll have our DC offset at 1.5V
  • Input offset voltage (Vos) must be < 1mV. At worst, at x1000 thats a +-1V offset at the output: as low as .5V or as high as 2.5V.
  • Since we need to handle such a large swing, it should be rail-to-rail to within .2V of the rails to give us space.
  • 1000 gain at 20KHz means the gain bandwidth (GBW) must be > 20MHz (in reality it can be much lower because the tape probably isnt good enough to record past 12KHz)
  • Since our input signal is 10uV then (at worst) we want to have less than 5% noise (which isn’t so good but we’re willing to have poor quality audio). 5% of 10uV = 500nV. 500nV/sqrt(20000) = 3.5nVrtHz noise figure.
  • Package should be SOIC for easy soldering
  • Low power is nice but not -that- necessary, maybe < 10mA
  • Low price! Must be under $2 at quantity 100, the lower the better

Stuff we don’t care about:

  • Operating temperature
  • Slew rate (at 10mV and 20KHz, it can be really slow)

The OP37, for comparison, has 12MHz GBW, requires 8V power supply, not rail-to-rail, Vos = 0.03mV, and noise figure of 3.2nVrtHz. So: great offset, great noise, so-so bandwidth and incompatible power requirements.

Lets go to TI and see what they have to offer. Select >=16MHz GBW, rail-to-rail and 8-SOIC package. The only chip they’ve got is the OPA350.

Now lets try National. Their system is a little tougher to use: click on 1mA offset first, which will pare down the options to 5 items, none of which are SOIC. You’ll notice national doesnt have a very good selection of low noise, ~20MHz op amps.

Next, we go to Analog Devices. Enter in package = SOIC, Vcc-Vee = 3V, noise <= 5nVrtHz, Vos <= 1mV then sort by price. The AD8655 looks good, a little noiser but nearly half the price.

Checking STMicro (click on “low noise”) they don’t have anything that runs on 3V.

Linear Technologies has a bunch of incredibly low noise op amps, at extraordinary bandwidths, but they’re rather expensive, at least $3 which is outside of our budget.

Maxim has a few good options (sort by noise, then compare all of the ones <5nVrtHz, then select out the ones that cost more than $2, then select only the ones that work from a single 2.7V supply & single package & > 20MHz GBW, that leaves the MAX4488.

Part Noise (nVrtHz) GBW (MHz) Vos (mV) Iq (mA) $/qty 100
OP37 3.2 12 0.03 5.5 $1.07
OPA350 5 38 0.5 7.5 $1.73
AD8655 4 29 0.05 4.5 $0.88
MAX4488 4.5 42 0.75 2.5 $0.72

There are a couple other manufacturers but we’ve covered the most common. So let’s stop here. The OPA350 is clearly not a good choice, it’s the most expensive, noisiest and most power-hungry. So we’ll just ignore that, leaving the AD8655 and MAX4488. Now its just a comparison between price, power and noise. Since our noise figure is already higher than we’d like, I’ll place priority on that: the price difference is pretty small and power isn’t a huge priority.

Finally, we have chosen the AD8655. Yay Analog Devices!

Friday, February 24th, 2006

Congratuations MAX2606, you are the Chip of the Week!

This week’s CotW is the MAX2606, a little IC I’ve used in a bunch of projects. This chip is part of a family of FM modulator ICs, produced by Maxim. The MAX2606 in particular has a range of 80-100MHz, right in the audio FM band. Basically, If you’ve ever wanted to stick an FM (audio) transmitter in something, this is a cheap/small/simple solution. Theres even a great app. note with a working schematic.

  • Pros: Super cheap, super small, works great, 3V
  • Cons: SOT-23: a bit too small, can’t buy it from traditional outlets (but you can sample nearly as many as you want from Maxim), a bit quiet

Notes:

  • Don’t forget to put 1% resistors in the tuning: the drift will kill you!
  • Attenuate the input to like 50mVpp (?)

Tune in next week for another Chip of the Week!

Thursday, February 23rd, 2006

so my lovely roommate showed me The Daily WTF, a blog dedicated to code that makes most good software engineers go, well, “wtf?” and its pretty funny.
In honor of that blog, I present a snippet from the op27/op37 datasheet:

(Which, of course I was referring to because I’m building a tape head preamplifier and its always better to just do what the datasheet says than think for oneself)

After a few hours of staring at the circuit and debugging and wondering “man why the hell is this railing?” I finally look back at the datasheet and realize: oh its in positive feedback, of course its railing.

Someone swapped the “+” and “-” pins in the example schematic.

Just goes to show, you can’t even trust the definative source of information.