Maker Pro
Maker Pro

Analog digital read

turbogt16v

Mar 27, 2015
176
Joined
Mar 27, 2015
Messages
176
Hy, simple question.adruino
Analogread is return value of 1025,byte.
Digital read is what,0 and I?
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
AnalogRead returns a digital representation of the voltage at the analog input. For a 10 bit ADC this maps the input voltage 0 V ... 5 V to a number between 0...1023.
DigitalRead returns the state of a digital input pin, either 1 (logic high) or 0 (logic low).
 

turbogt16v

Mar 27, 2015
176
Joined
Mar 27, 2015
Messages
176
can someone recommend some ebook that has in depth basic tutorials for arduino coding
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
I don't know a book, but there are tons of coding examples and tutorials on the web. Either on the arduino homepage or somewhere else. Search "arduino tutorial" for general information or use more specific search terms for special topics.
 

Bluejets

Oct 5, 2014
6,901
Joined
Oct 5, 2014
Messages
6,901
Don't know of books but on youtube, Jeremy Blum has a series ( about 15) tutorials which go for around 10 minutes each and are reasonably good. Start at No. 1 of course.
It usually helps to actually try each lesson and modify a little on your own just to see the effect. Learn a lot more that way I believe.
As with many of these, it tends to get more involved as one progresses .
 
Last edited:
Top