Author Topic: Idea Wanted - fun things to do to put some ATTINY13a to use.  (Read 6250 times)

0 Members and 1 Guest are viewing this topic.

Offline Rick LawTopic starter

  • Super Contributor
  • ***
  • Posts: 3442
  • Country: us
I have a few ATTiny13a that has been sitting in my parts drawer for a while.  I have been wanting to do something with them, but I have been unsuccessful in coming up with some hobbyist/fun stuff that could fit into this smallish MCU..

Anyone with some idea for something fun with this MCU?  Just 1K flash, 64 bytes ram and 64 bytes eeprom.  No serial, no I2C...

Datasheet here:http://www.atmel.com/images/doc8126.pdf

Thanks
Rick
 

Offline Messtechniker

  • Frequent Contributor
  • **
  • Posts: 782
  • Country: de
  • Old analog audio hand - No voodoo.
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #1 on: July 30, 2016, 05:29:42 am »
Have a look here:
http://www.elektronik-labor.de/AVR/T13Elektor12.html
Sorry that it is in German. Maybe there is an English version
on the English Elektor homepage

Yours Messtechniker
Agilent 34465A, Siglent SDG 2042X, Hameg HMO1022, R&S HMC 8043, Peaktech 2025A, Voltcraft VC 940, M-Audio Audiophile 192, R&S Psophometer UPGR, 3 Transistor Testers, DL4JAL Transistor Curve Tracer, UT622E LCR meter
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3024
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #2 on: July 30, 2016, 10:50:23 am »
You can fit plenty of stuff in an ATTiny13, even using the Arduino IDE using my ATTinyCore fork distribution

Idea off the top of my head - minimal line-follower, or light-follower robot could be an interesting project, how much sensory input can be made to fit in the constraints.

My distro, above, also includes a tone() implementation for the 13, of course there's not a great deal of flash space for note data, but you could make a musical instrument of sorts, a DIY Otamatone.
« Last Edit: July 30, 2016, 10:54:03 am by sleemanj »
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline obiwanjacobi

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #3 on: July 30, 2016, 12:06:39 pm »
Class D amp? 



:popcorn:
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline Rick LawTopic starter

  • Super Contributor
  • ***
  • Posts: 3442
  • Country: us
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #4 on: July 31, 2016, 07:28:08 pm »
Thanks everyone!  :-+

I didn't even know ATTinyCore fork distribution exists.  I will indeed check it out and thanks sleemanj!
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8275
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #5 on: July 31, 2016, 10:17:38 pm »
This is what some guy did with half the RAM... http://www.linusakesson.net/scene/bitbanger/
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 1989
  • Country: dk
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #6 on: August 03, 2016, 09:08:07 am »
Pushing it to the limit ....

http://www.ullasmann.eu/Tiny13.htm

 

Offline Rick LawTopic starter

  • Super Contributor
  • ***
  • Posts: 3442
  • Country: us
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #7 on: August 03, 2016, 04:46:44 pm »
Awesome ideas and examples.

I think I had been corrupted (by bloated codes) and forgot how much one could do with 1K.  These examples encouraged me.

Thanks to all!
Rick
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #8 on: August 04, 2016, 11:09:14 pm »
A "typical" application for tiny CPUs like this is to take some "must be bit-banged" (and perhaps repetitive) function and translate it into a more "larger system friendly" device.
Examples:
1) Async Serial to 4x5 LED array (charlieplexed)
2) Async Serial to several servos
3) IR RC to Async Serial (or servos/actuators.  One place such small controllers have appeared is in micro-RC aircraft.  IR receiver, PWM-controller with MOSFET for propeller, a couple other outputs for actuators...  Very cool stuff, especially when they start shaving away the packaging to save weight!  http://www7b.biglobe.ne.jp/~toko0131/pic/0066/irxa302bm2.jpg )
4) Ascii/Serial to semi-smart LED display (hcms2904/etc)
5) PS/2 keyboard to ascii/async serial
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #9 on: August 05, 2016, 08:01:25 am »
You can make annoy-a-trons or tv-b-gones?
 

Offline Psi

  • Super Contributor
  • ***
  • Posts: 9951
  • Country: nz
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #10 on: August 05, 2016, 09:01:00 am »
see if you can shrink this down from attiny85 to attiny13. I dont think you have enough flash, but maybe you could overclock the attiny and optimise the raw bitbanging a little

BitBanging Ethernet!!
http://hackaday.com/2014/08/29/bit-banging-ethernet-on-an-attiny85/


« Last Edit: August 05, 2016, 09:06:35 am by Psi »
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline Rick LawTopic starter

  • Super Contributor
  • ***
  • Posts: 3442
  • Country: us
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #11 on: August 10, 2016, 08:13:34 pm »
Thanks to all your input!  Very enlightening.

I have decided on my next project.  5-keys keypad using I2C.  Right now, when needed, I plug in a 5-digital-pins keypad into the key-less Arduino(s) - I have two such 5-key keypads, but not all my keyless Arduinos have 5 free digital-pins.  I can convert all of these to use I2C-based keypad.

But first, since the tiny13a is USI-less, getting a pure-bit-bang I2C to work inside the tiny13a may not be feasible.

I will start with a Tiny85.  After I get it working on a Tiny85, I will attempt to shrink it to fit into the tiny13a.

Thanks folks!  I appreciate the ideas.
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3024
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #12 on: August 12, 2016, 09:09:00 am »
Excuse the horrendous ghostly clown face paint job which is what my artistic ability is, but this is a just completed ATTiny13 Arduino powered... thing. 

( Gran is turning 91 )

https://youtu.be/3lPSeLBODgY

There is about 50 bytes to spare in flash (the tune is in eeprom), using my ATTinyCore distribution with a couple extra mods to carve out a little more flash space.
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline Rick LawTopic starter

  • Super Contributor
  • ***
  • Posts: 3442
  • Country: us
Re: Idea Wanted - fun things to do to put some ATTINY13a to use.
« Reply #13 on: August 12, 2016, 06:44:33 pm »
Excuse the horrendous ghostly clown face paint job which is what my artistic ability is, but this is a just completed ATTiny13 Arduino powered... thing. 

( Gran is turning 91 )

https://youtu.be/3lPSeLBODgY

There is about 50 bytes to spare in flash (the tune is in eeprom), using my ATTinyCore distribution with a couple extra mods to carve out a little more flash space.

Hey, great job!  And congrats to your Granny @ 91.

I am encouraged from all these examples in the replies here.  I now am eager to get started with my I2C keypad, of course I have to get I2C (slave) running on the Tiny13a first.  Once I tidy up my last project (changing my library to support non digitally hardwired keypad, and then changing other "deployed codes" to use the new library)...  Once I tidy up, those Tiny13a will come out of the draw.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf