Pages: [1]   Go Down
Author Topic: Number of I/O pins on the mini Pro?  (Read 1562 times)
0 Members and 1 Guest are viewing this topic.
Nova Scotia
Offline Offline
Full Member
***
Karma: 4
Posts: 187
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I need as many I/O pins on the Arduiuno Mini Pro as possible. The info for this Arduino says it only has 14 Digital I/O but looking at the schemtic I see that PC0- PC5 = 6 , PD0-PD7 = 8 and PB0-PB6 = 6 I/O. This adds up to be 20 I/O. One of these has an LED on it and two are for the Rx/Tx for programming. Why does the doc say on 14 are available?
Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 2280
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

6 of the pins are analog and thus not described as "digital". They can still be used as digital I/O, so yes it does essentially have 20 I/O pins. Just a matter of how they're described is all.
Logged

Austin, TX
Offline Offline
Faraday Member
**
Karma: 64
Posts: 6055
Baldengineer
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

FYI... often overlooked, A4 and A5 on the Pro Mini are actually right above A3 and A2.
Logged

Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 444
Posts: 23861
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you're reeeeeally careful, you can get 2 more Analog inouts (only!), A6/A7, by adding wires to  ATMega328  pins 19 & 22.

"In the TQFP and QFN/MLF package, ADC7:6 serve as analog inputs to the A/D converter.
These pins are powered from the analog supply and serve as 10-bit ADC channels."

Not sure what you'd have to do software wise to access those.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

0
Offline Offline
Shannon Member
****
Karma: 162
Posts: 10523
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And while you're at it connect to AREF (chip pin 20) too...
Logged

[ I won't respond to messages, use the forum please ]

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 444
Posts: 23861
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

But Aref is not any good for an analog or digital IO pin?
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 332
Posts: 16566
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

And while you're at it connect to AREF (chip pin 20) too...

That's wrong. Unless you can show us in the datasheet where that is made possible, I can't.


Lefty
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 444
Posts: 23861
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Whatcha mean Lefty? Pin 20 on the TQFP is Aref, on the promini just has a cap to ground.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 332
Posts: 16566
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Whatcha mean Lefty? Pin 20 on the TQFP is Aref, on the promini just has a cap to ground.

I thought I  was agreeing with your prior statement, Aref pin (on whatever package) can not be used as a general purpose I/O pin to the best of my knowlege and I did quickly check the datasheet but could be wrong. However the reset pin can be reused to use as I/O but that brings lots of arduino IDE compatiblity problems along with it.

Or maybe I'm just not paying close enough attention to the post/question (again!) ???

Lefty
Logged

0
Offline Offline
Shannon Member
****
Karma: 162
Posts: 10523
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No it can't, however the AREF pin can be useful - and the Mini Pro annoyingly doesn't bring it out to a pad...
Logged

[ I won't respond to messages, use the forum please ]

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 444
Posts: 23861
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay, I think we're all in sync - OP recognizes the 20 I/O lines, there is a way to add 2 more Analog Input lines, and Aref if connected also could be useful (as part of analog reads).
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: