Looking for ATTiny85 Ideas

I accidentally ordered 60 ATTinys. Somehow I though they were sold one at a time so I ordered 6, but it was 10 at a time :). They came from China, so I'm not bothering to send them back. So far I've made - Christmas card that beeps a song and flashes an LED - RGB LED strip control - sound effects experiments by clicking multiple pins together - high voltage fuse setter so I can use all the pins

I plan on making - digital clock with 7-segment digits and a couple shift registers - pretty patterns with a tiny RGB LED ring

But that leaves about 50+ more :) I got a bunch of 24MHz ceramic resonators because I know the ATTIny can safely be overclocked to that speed, so I may try and port some synth code and make better sounding Christmas cards than just beeps.

Any other ideas?

The downside of using a resonator/crystal is you lose 2x pins. With the PLL of the tiny85 you can get 16MHz (and maybe 20MHz?). Depending on where you live you could maybe sell some of the tiny85's on to locals?

Doncha just love China? When the prices are so stupid low that you can accidentally order 60 instead of 6, and not realize it until they arrive.

I second Riva on using the PLL (in the event that you even CARE about the speed - you usually don't need it though...).

Remote controls for home automation? Don't be satisfied with one RGB LED strip controller, put a bunch of them around your room, and neopixel controllers too. Control em all over RF with those cheap 433mhz RF modules...

Riva: With the PLL of the tiny85 you can get 16MHz (and maybe 20MHz?).

How do you do this? I've only finding info on setting the fuses for 8Mhz internal or more with a crystal. Thanks.

Most (all?) ATtiny cores have that as a board option. Pick the board. Burn the bootloader. Enjoy.

To get past 16 MHz you adjust OSCCAL.

Accurate 1-second blinker

Delta-temp tracker

IR dedicated decoder

Trinket clone

Fun uC

Ray

shawnlg:
I accidentally ordered 60 ATTinys. Somehow I though they were sold one at a time so I ordered 6, but it was 10 at a time :). They came from China, so I’m not bothering to send them back. So far I’ve made

  • Christmas card that beeps a song and flashes an LED
  • RGB LED strip control
  • sound effects experiments by clicking multiple pins together
  • high voltage fuse setter so I can use all the pins

I plan on making

  • digital clock with 7-segment digits and a couple shift registers
  • pretty patterns with a tiny RGB LED ring

But that leaves about 50+ more :slight_smile: I got a bunch of 24MHz ceramic resonators because I know the ATTIny can safely be overclocked to that speed, so I may try and port some synth code and make better sounding Christmas cards than just beeps.

Any other ideas?

Clock-speed wise, you can run on the internal oscillator and max out OSCCAL and get over 25 mhz. Be warned though, the EEPROM and FLASH writes are timed with the R/C oscillator and might fail or be unreliable at anything other than the normal setting (or slower).

If you use the EEPROM, you could set OSCCAL to normal, do your writes, then set it back to 0xFF for max speed.

(oops missed Coding Badly’s post said the same thing). Sorry.

shawnlg: I accidentally ordered 60 ATTinys. Somehow I though they were sold one at a time so I ordered 6, but it was 10 at a time

Eh? Where?

I’ve never seen a board definition with 16Mhz internal oscillator. I’m now using the ones supplied by Atmel with the board manager url.

with some t85 packages (ie digispark) 16mhz and 16.5mhz are available under boards menu. i now understand the 16.5mhz number is required to allow io bits talk directly to a pc usb port without needing a usb/serial dongle (vusb). in some cases even 20mhz-25mhz system clock can be achieved.

technically speaking you cannot do this with osccal but must also select pll as system clock by way of cksel bits.

shawnlg: I've never seen a board definition with 16Mhz internal oscillator.

http://www.lmgtfy.com/?q=attiny85+pll+arduino+core

https://github.com/SpenceKonde/ATTinyCore/ https://github.com/SpenceKonde/ATTinyCore/blob/master/avr/boards.txt#L34-L37

https://github.com/Coding-Badly/arduino-tiny https://github.com/Coding-Badly/arduino-tiny/blob/master/Prospective%20Boards.txt#L233-L263

Thank you. I'll see if I can combine that fuse setting with the one that disables the reset pin to give me 6 io pins.

I want to port some synthesizer code from the nano and make my nephew a 4 voice musical birthday card with a few addressable RGB LEDs.

BTW I also have a few atmega328 chips that I've run stand alone at 8Mhz. Would a similar fuse setting let them run at 16mhz internal? Thanks.

shawnlg: BTW I also have a few atmega328 chips that I've run stand alone at 8Mhz. Would a similar fuse setting let them run at 16mhz internal? Thanks.

Alas no, the 328 does not have a PLL

Riva: Alas no, the 328 does not have a PLL

What's the difference between the internal 8Mhz oscillator and the 16mhz PLL?