Maker Pro
Maker Pro

Analog digital read

Harald Kapp

Moderator
Moderator
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).
 

Harald Kapp

Moderator
Moderator
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.
 
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