Pages: [1]   Go Down
Author Topic: first attiny84 project  (Read 174 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 1
Posts: 97
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello world.

i have 8 photoresistors and i would like to connect them to an attiny84 so when ever one of them is out of light, i would like it to send to my arduino uno a message that "photoresistor 1" .... "photoresistor 8" is out of light, so i can send it to my serial screen.

the thing is i'v never worked with attiny at all and i don't know even where to begin with.

any one has any idea?

help

thank you very much for your time
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 633
Posts: 50187
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You might want to consider that to do what you want to do you need 8 analog pins or a multiplexer. I don't think any ATTINY chips have 8 analog pins.
Logged

Offline Offline
Jr. Member
**
Karma: 1
Posts: 97
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://highlowtech.org/wp-content/uploads/2011/10/ATtiny44-84.png

analog pin 0 ..... analog pin 7 !

do i miss something here ?
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 80
Posts: 1729
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yup, the ATTiny84's have 8 Analog Inputs.
Logged

~Tom~

Offline Offline
Jr. Member
**
Karma: 1
Posts: 97
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok ! witch pin should i use for output 10, 9 or 8 ?

and ofcourse how should i start the hole programming ?

do i just start to declare the pins ( input output ) ?

void setup {

}


void loop {

}

like i would in normal arduino ?

is there something else that i should do as well ?
Logged

Pages: [1]   Go Up
Jump to: