Shaun Shue

Prototype-to-Production with ATtiny0/1 series + Arduino libraries: How to

The ATtiny 0/1-series is an amazing microcontroller. For less than the cost of a candy bar, it’s faster, has better control, communication and power management than any 8-bit MCUs that came before. I find myself phasing them into the specs of every project, because even in more complex systems, smarter components make better assemblies.

A nice bonus is that the expansive Arduino libraries for all manner of lighting, sensors, displays, mechatronics, etc. are available, thanks to the work of Spence Konde. But when you’re ready to move from prototype-to-production and want to verify in Microchip’s ecosystem, Atmel Studio’s ‘Arduino import’ won’t work because of the new architecture. If you have a UPDI programmer that works in Atmel Studio, I found a workaround:

1) Export the binary files from Arduino IDE Placeholder

2) Open Atmel Studio Placeholder

3) Bring up the chip programmer dialog Placeholder

4) From ‘Memories’ import the binary file. Placeholder

5) From ‘Fuses’ copy the fuse settings to the relevant Excel file on Microchip Direct’s programming services page. Placeholder Placeholder

6) Program the chip to verify everything behaves as it should.

7) If everything is good, use these binary and Excel files with Microchip Direct for pre-programmed production units.

As with any library you use, verify the EULA allows for your intended application.