This is the final AVRDUDE flash of the Lunchbeat by Buranelectrix. Weโ€™ve got everything connected, with the Lunchbeat getting its power from the PICkit 2 rather than a battery. Hopefully itโ€™s all going to behave!

We also reminisce about how good SuperNick (Nick) is at holding down buttons while flashing things. Whether thatโ€™s entirely necessary throughout the flashโ€ฆ I canโ€™t remember. Still, the PICkit 2 is doing its thing, and after a little waiting weโ€™re all done!

As it turns out, I was doing it wrong before. I hadnโ€™t set the fuses to use the external 16 MHz crystal, so the ATmega328P was still running from its internal clock. That lovely crystal sitting on the board was effectively just decoration! Whoops!

With the clock settings sorted out, the sound playback is much better. Iโ€™ve made a little tune to demonstrate it, and the Lunchbeat is finally doing something a bit closer to what itโ€™s supposed to do. Just sit back and listen. They sure can be catchy!

Weโ€™ve actually got three of these machines assembled, and this particular Lunchbeat belongs to SuperNick (Nick). There are still a couple of little things to tidy up, including the battery holder and the on/off switch arrangement, but the important part is working.

You can even connect multiple Lunchbeats together if youโ€™ve got two or more. Just think of the possibilities! Thatโ€™s what happens when I hack about with things beyond my understanding. Quite a fun little project, and one more video to come.

Sources