Connect with us

Analog digital read

Discussion in 'Microcontrollers, Programming and IoT' started by turbogt16v, Mar 13, 2018.

  1. turbogt16v

    turbogt16v

    169
    4
    Mar 27, 2015
    Hy, simple question.adruino
    Analogread is return value of 1025,byte.
    Digital read is what,0 and I?
     
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    8,692
    1,692
    Nov 17, 2011
    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 likes this.
  3. turbogt16v

    turbogt16v

    169
    4
    Mar 27, 2015
    can someone recommend some ebook that has in depth basic tutorials for arduino coding
     
  4. Harald Kapp

    Harald Kapp Moderator Moderator

    8,692
    1,692
    Nov 17, 2011
    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.
     
  5. Bluejets

    Bluejets

    2,979
    578
    Oct 5, 2014
    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: Mar 14, 2018
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.