Pages: 1 2 [3]   Go Down
Author Topic: ATTiny 25/45/85/2313 Pin numbers  (Read 8687 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 0
Posts: 132
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I  guess the analog is the PB0/AIN0/D9

That is one of the two inputs to the analog comparator. 

Code:
sensVal = analogRead(sensPin); // READS sensor, 

If you are using this core...
http://code.google.com/p/arduino-tiny/
...zero is always returned.




Thank you.

yes  I am using  this cores

http://code.google.com/p/arduino-tiny/


you mean that analog input does not work?

on the   core pin s file
seems like there is analog port  as  PIN_A0  (3)
been trying to read a sensor and turn an led but doe snot work
any help is really apreciated ,  how can I read a sensor   from this  2313 chip.

thanks
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
you mean that analog input does not work?

The processor does not have an analog-to-digital converter (ADC).  So, yes, analog input does not work.

Quote
how can I read a sensor   from this  2313 chip.

Two things come to mind...

1. Add an external ADC.

2. Atmel has a whitepaper describing how to mimic an ADC using the analog comparator.  It requires some external components (I think two).  If you're interested, I'll try to find a link.
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 132
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

THANK  you.

I been  editing the  core pins
but now that you are saying that analog input is not supported 

yea I will be interested in find out how to add a sensor
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


http://arduino.cc/forum/index.php/topic,92864.msg700430.html#msg700430
Logged

Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

buuuummmppp
Logged

Accelerate to 88 miles per hour.

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Why are you bumping this topic?
Logged

Pages: 1 2 [3]   Go Up
Jump to: