Pages: [1]   Go Down
Author Topic: 8 pin arduino chip?  (Read 2137 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

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

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
« Last Edit: April 08, 2011, 03:01:26 pm by Coding Badly » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: April 08, 2011, 03:38:54 pm by budabob07 » Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Portugal
Offline Offline
God Member
*****
Karma: 5
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Portugal
Offline Offline
God Member
*****
Karma: 5
Posts: 962
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Newbie
*
Karma: 0
Posts: 14
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
Dallas
Online Online
Shannon Member
*****
Karma: 178
Posts: 12288
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Pages: [1]   Go Up
Jump to: