Go Down

Topic: 8 pin arduino chip? (Read 2 times) previous topic - next topic

budabob07

I was wondering if there was an 8 pin arduino chip available.  I already have an arduino board to program it with, but what is the smallest chip available?  I only need one digital output (making a camera take a picture every 10 seconds).  Would you be able to burn the arduino bootloader onto an attiny13?

spycatcher2k

There is not a bootloader for the tiny 13(its only got 1k total flash), but it can be programmed with an isp programmer (worth having one even as a backup) - I use a usbtinyisp (Chinese Clone), as well as a homemade programmer. I have a load of ATtiny 13's, 45's and 85's. All I have programmed with the usbtinyisp, as well as bootloading arduinos (168 & 328 models).

Sorry to dissapoint.



Drew.
Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

Coding Badly

I was wondering if there was an 8 pin arduino chip available


It depends on your needs.  Examples: It is very unlikely any given Arduino library will work on a ATtiny processor.  If you need a basic core (digitalRead, digitalWrite, etcetera) then you're in luck.

Quote
I already have an arduino board to program it with, but what is the smallest chip available?


I like the ATtiny85 processor.  It has enough SRAM and Flash to build fairly complex applications but is physically small (8 pin chip).

Quote
I only need one digital output (making a camera take a picture every 10 seconds)


An ATtiny13 would certainly be capable of doing something like that.  You may have to directly manipulate registers to keep the code and data size small enough to fit.

Quote
Would you be able to burn the arduino bootloader onto an attiny13?


No.

budabob07

soooo...  Would I be able to use digitalwrite, pinmode, and delay on an attiny85 in arduino language (no complex register finding needed), or am I out of luck.  If the answer is yes, than how would I go about burning the Arduino bootloader/library onto the chip?

Coding Badly

#4
Apr 08, 2011, 09:59 pm Last Edit: Apr 08, 2011, 10:01 pm by Coding Badly Reason: 1
Would I be able to use digitalwrite, pinmode, and delay on an attiny85 in arduino language


Yes.  I'm doing that right now.

Quote
If the answer is yes, than how would I go about burning the Arduino bootloader/library onto the chip?


You don't.  You have to use an "in-circuit serial programmer" (aka ICSP aka ISP).  An Arduino can be made to act as one...
http://hlt.media.mit.edu/wiki/pmwiki.php?n=Main.ArduinoATtiny4585

Other than an ICSP, you only need a "core".  There's one available from the site above.  There is a list of cores (and a core) available from here...
http://code.google.com/p/arduino-tiny/

I recommend using the Arduino Tiny core...
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1285218245/all
http://code.google.com/p/arduino-tiny/

budabob07

#5
Apr 08, 2011, 10:34 pm Last Edit: Apr 08, 2011, 10:38 pm by budabob07 Reason: 1
The link you posted was a core for the attiny84, not the 85.  Would it still work with the 85?  Its much easier to find the attiny85 to buy online

Coding Badly

The link you posted was a core for the attiny84, not the 85


I assume you are referring to this link...
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1285218245/all

You may want to try searching that webpage / topic for "attiny85".

Quote
Would it still work with the 85?


That core supports ATtiny85, ATtiny84, and ATtiny2313.

Senso

So, it will just sit there doing a 10s pulse?
Use an 555 timer.

budabob07

A microcontroller would be more accurate and easier to change the timing precisely, and I would like to experiment with using the attiny chip

Senso

It will be more acurate only if you program it correctly, milis as some errors...

budabob07

By "more accurate" I mean that I could change the pulse easily without calculating resistors or capacitors.  Also, I could make the shape of the pulse different.  Anyway, I'm going to use the attiny and not a 555 as I would like to experiment with them using the Arduino software

Coding Badly

It will be more acurate only if you program it correctly


If @budabob07 has difficulty fixing a timing bug in his Sketch, I suspect he will be able to find help here.

Quote
milis as some errors...


Such as?

Go Up