AVR programming trick: Sharing target boards

2313-25 (plain socket)

This week, Brad wrote in with an interesting question: Can you program the ATtiny25 on one of our ‘tiny2313 target boards? And the answer is yes: you can, with just a trivial modification.

Okay, back up– a little context here. The ATtiny25 and the ATtiny2313 are examples of AVR microcontrollers, the little brains that power many of our projects.
To program these chips, we use a usbtinyisp programmer, hooked up to a minimalist target board.

USBtinyISP & simple target

The target board basically provides a programming header that’s hooked up to the right pins of the chip, plus some way to power the chip– often through the programmer itself.

After hand-wiring up one too many minimalist ‘2313 boards like that, we also made a printed circuit board version of the ‘2313 target board. Normally, it looks something like this, with an ATtiny2313 in a ZIF socket:
2313Card - 4

But, back to the question. The ATtiny25, ATtiny45, and ATtiny85 are a family of 8-pin AVR microcontrollers that are not pin compatible with the ‘2313. However, at only 8 pins instead of 20 pins, they’ll definitely fit in the socket… somewhere.

Looking at the datasheets and pinouts for the the ’45, ‘2313 (and the ‘168 that we also have a target board for), we can identify the lines used for programming: MISO, MOSI, SCK, and RESET:


 
The chips also need power and ground connections to be programmed, of course. Now if you notice, the connections for the ‘2313 and ’45 are very similar– in fact, almost identical if you line the chip up so that pin 1 goes where pin 1 of the ‘2313 normally would. The one remaining difference is that there’s no ground connection to pin 4 of the ‘2313.

2313-25 (fixed up)

So, adding a wire from ground– pin 10 of the ‘2313 –to pin 4 of the smaller chip (an ATtiny25 in our photo), and lining up pin 1 to pin 1, we’re ready to go. And yes, it works like a charm.
If you do use this method, there are a few (possibly obvious) things worth noting:

 

  • You need to be careful to line up pin 1 of the chip to pin 1 of the socket.
  • Be careful if or when you put a ‘2313 chip back in the socket. It will draw a lot of current if you set pin 4’s to a high output level– it’s shorted to ground. (Better: If you want to go back and forth, use a switch, not a wire.)
  • Keep in mind that the pin labels on the target board are for the ‘2313, not the ’85.

Going one step further, you could also potentially program the ’25/’45/’85 from the ‘168 target board: it only takes a couple more wires. To do so, line up pin 1 of the ’25 to pin 9 of the ‘168. Add two wires this time, from board-reset to chip-reset, and from board-ground to chip-ground. You’ll also need to connect AVCC (analog power supply) to VCC. A little more work, yes, but still a good hack.

A funny batch of LEDs

10 mm LEDs

A few weeks ago we got a batch of LEDs– a sample order from a new vendor. These are 10 mm diffused white LEDs, much like the ones that we use on the Peggy 2 or in the LED Ghosties.

On the surface, they look okay. But after lighting them up, we noticed something funny in a few of them that led us to discover their deep dark– or really, shallow and clear –secret. Continue reading A funny batch of LEDs

The 2010 Open Hardware Summit

Picture 9

We are helping to sponsor the 2010 Open Hardware Summit, which is happening next month, Thursday September 23, at the New York Hall of Science. That’s two days before, and at the same location as, Maker Faire NY.

The summit agenda has just been posted: it’s a full day of talks and discussions about open source hardware, its meaning and its implications. I’ll be part of the panel discussing open hardware licenses and norms which will also be taking questions online– so you can participate even if you can’t make it to the event.

Tickets for the event are on sale now and include a 1-day pass to Maker Faire. We’ll hope to see you there!

Interactive Game of Life Exhibit

Interaction

Recently we put together this interactive Game of Life display as an educational adjunct for a new exhibit by the San Jose Museum of Art on the works of Leo Villareal. Leo primarily works with light sculptures, and we’re very excited to see (and participate in) the exhibit, which opens this Friday.


We put together a video showing off the project, embedded here:

(If you can’t see the video here, click here to visit the youtube page.)

Continue reading Interactive Game of Life Exhibit

Linkdump: August 2010

Electronics Flea Market, 8/2010

Fleamarket_2010_08_14 - 08

We’ve just posted a few pictures from last weekend’s fantastic Electronics Flea Market at De Anza College in Cupertino.

Fleamarket_2010_08_14 - 15

One interesting thing that we came across: a set of leadframes not so different from those that might be made from that photomask that we wrote about a couple of weeks ago.

Fleamarket_2010_08_14 - 01

Only one two more flea markets left this year, September 11 is the next one; mark your calendars and we’ll hope to see you there!

(For a few more, check out photos from another electronics flea market a couple of years ago here.)

Corrected 8/16/10: two more flea markets left for 2010– Sept. 11 and Oct. 9.

Cooking for Geeks

Cooking for Geeks cover


Woo-hoo! We just got Cooking for Geeks in the mail. You can view it as a cookbook that takes time to delve into the science of the recipes or a food science book with demonstrative recipes. Or maybe an introduction to everything that food geeks know about, but everyone else wishes they did. It also has a series of interviews with geeks, chefs and scientists– including us, but I’m not sure which of those categories we fit into. Regardless, we enjoyed talking with Jeff about the book and are happy to see it out in print!

The cover design with splatter marks and stains means less worry when it gets spilled on in the process of cooking (not that I’ve ever worried about that with any of my other cookbooks).

Cooking for Geeks inside


Most pages have ample room for margin notes, which is something I’m fond of for recipe alterations. It flops open on the counter well, too.

We got a nice shoutout from Jeff on NPR’s Science Friday last week for the laser cut pie crust from our Apple pie, which is featured in the book along with our electrocuted hot dogs. Thanks, Jeff, and congrats on getting the book out there!

On the design of the Bulbdial Clock

bulbdial-details - 12

bulbdial-details - 20

One of our favorite projects of the last year is our Bulbdial Clock, an LED shadow clock based on an idea from Ironic Sans. And, while we have written a fair bit about it, we haven’t yet taken the time to describe some of the interesting technical details.
So in what follows here, we discuss some of those details, with an emphasis on a few in particular that we’ve been asked about. First, the process of designing and prototyping “funny shaped” circuit boards, but also charlieplexing LEDs in a mixed array, and (finally) getting that rear-projection scheme to work.
Continue reading On the design of the Bulbdial Clock

Maker Faire Detroit Pictures and Highlights

Maker Faire Detroit

Maker Faire Detroit was a blast! It was held at The Henry Ford, which is a museum worth visiting in its own right. It is an amazing place we didn’t get to see nearly enough of and would love to go back and visit again.


Maker Faire Detroit


In addition to providing a history of American manufacturing and a showcase of amazing vehicles, they have Mold-A-Rama machines!

Maker Faire Detroit


As usual, one of the most exciting things about Maker Faire for us was meeting and talking with other makers. We got to talk to the participants in an aluminum casting demonstration, who were using foam that was carved onsite with a CNC router.

We also really enjoyed our neighbors at the faire with the Note Grinder, a machine that read player piano rolls optically and used door lock actuators to press the keys on a synth keyboard. We were impressed with how pleasant it was to listen to (even for two days straight!) especially with the rhythm accompaniment provided by the actuator motors.


Maker Faire Detroit


The fine folks at Context Furniture were passionate about the renaissance of craftsmanship in Detroit and had great stories of reclaimed buildings.


Maker Faire Detroit


We were tickled to see several Evil Mad Science kits integrated into Maker Faire projects: a Peggy 2 being used as a readerboard, Wes and Don‘s 3D POV display with a Peggy 2LE, and Matt Mets’ Meggy Jr Sr.


Maker Faire Detroit


Our Eggbots performed like champs, and we even tried out engraving on glass holiday ornaments during the faire. The engraver scratched away the paint on the surface, and as you can see in the top picture, they were beautiful when lit from within by an LED.

We didn’t come close to seeing everything, but we’ve put pictures of some of what we saw in a set on flickr.

We hope to see you at Maker Faire New York!