Arduino Forum
>
General Category
>
General Discussion
(Moderators:
mbanzi
,
DojoDave
,
mellis
)
>
[pro mini] Can you use a DIGITAL pin to read analog input? voltage**
Print
Go Down
Pages:
[1]
Topic: [pro mini] Can you use a DIGITAL pin to read analog input? voltage**
(Read 1 time)
previous topic
-
next topic
TobiasRipper
Full Member
Posts: 221
Karma: 24
[add]
[pro mini] Can you use a DIGITAL pin to read analog input? voltage**
Apr 09, 2014, 06:28 am
As opposed to a contrary question here of (can analog pin read digital) I am wondering the opposite, while building an all analog module, Can the Digital Pins of an Arduino Pro Mini read analog values (voltage)?
thank you.
Game Development, Web Development, Music Hardware Development, Web Platform Management, Educational Content, Entertainment Content, Music Writing.
Current project: Fly Zapper Shocker that tazes us when our characters die in our game.
CrossRoads
Global Moderator
Unlimited Eagle board sizes available.
Brattain Member
Posts: 45,734
Karma: 2063
[add]
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
http://www.crossroadsfencing.com/BobuinoRev17/
Re: [pro mini] Can you use a DIGITAL pin to read analog input? voltage**
#1
Apr 09, 2014, 06:33 am
Sure, sort of - will only get a 0 or 1 back tho. If level is in the 'middle', reading may be indeterminate.
Depending on the Promini model purchased, A6 & A7 may be available as analog inputs only as well.
Designing & building electrical circuits for over 25 years. Screw Shield for Mega/Due/Uno, Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at my website.
TobiasRipper
Full Member
Posts: 221
Karma: 24
[add]
Re: [pro mini] Can you use a DIGITAL pin to read analog input? voltage**
#2
Apr 09, 2014, 06:36 am
Well its actually related to the potentiometer question I had - the voltage off the potentiometer is not binary,
Game Development, Web Development, Music Hardware Development, Web Platform Management, Educational Content, Entertainment Content, Music Writing.
Current project: Fly Zapper Shocker that tazes us when our characters die in our game.
CrossRoads
Global Moderator
Unlimited Eagle board sizes available.
Brattain Member
Posts: 45,734
Karma: 2063
[add]
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
http://www.crossroadsfencing.com/BobuinoRev17/
Re: [pro mini] Can you use a DIGITAL pin to read analog input? voltage**
#3
Apr 09, 2014, 06:42 am
With Vcc = 5V:
voltages up to 0.3 x Vcc (1.5V) will return a 0
voltages above 0.6Vcc (3V) will return a 1.
voltage in between - anybody's guess.
Designing & building electrical circuits for over 25 years. Screw Shield for Mega/Due/Uno, Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at my website.
TobiasRipper
Full Member
Posts: 221
Karma: 24
[add]
Re: [pro mini] Can you use a DIGITAL pin to read analog input? voltage**
#4
Apr 09, 2014, 06:50 am
Ah and theres no way of telling it to read it like an analog within code?
Game Development, Web Development, Music Hardware Development, Web Platform Management, Educational Content, Entertainment Content, Music Writing.
Current project: Fly Zapper Shocker that tazes us when our characters die in our game.
CrossRoads
Global Moderator
Unlimited Eagle board sizes available.
Brattain Member
Posts: 45,734
Karma: 2063
[add]
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
http://www.crossroadsfencing.com/BobuinoRev17/
Re: [pro mini] Can you use a DIGITAL pin to read analog input? voltage**
#5
Apr 09, 2014, 06:54 am
Not unless you go in thru an analog input pin to go the ADC converter.
Or use an external ADC.
http://www.digikey.com/product-detail/en/MCP3201-CI%2FP/MCP3201-CI%2FP-ND/305922
Designing & building electrical circuits for over 25 years. Screw Shield for Mega/Due/Uno, Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at my website.
TobiasRipper
Full Member
Posts: 221
Karma: 24
[add]
Re: [pro mini] Can you use a DIGITAL pin to read analog input? voltage**
#6
Apr 09, 2014, 07:04 am
I see.. well thank you
Game Development, Web Development, Music Hardware Development, Web Platform Management, Educational Content, Entertainment Content, Music Writing.
Current project: Fly Zapper Shocker that tazes us when our characters die in our game.
Print
Go Up
Pages:
[1]
Loading...