Analog digital read

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

  1. turbogt16v

    turbogt16v

    Joined:
    Mar 27, 2015
    Messages:
    153
    Likes Received:
    4
    Hy, simple question.adruino
    Analogread is return value of 1025,byte.
    Digital read is what,0 and I?
     
    turbogt16v, Mar 13, 2018
    #1
    1. Advertisements

  2. turbogt16v

    Harald Kapp Moderator Moderator

    Joined:
    Nov 17, 2011
    Messages:
    8,287
    Likes Received:
    1,560
    Location:
    Germany-Europe-Earth-Sol System-Milky Way-Laniakea
    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, Mar 13, 2018
    #2
    turbogt16v likes this.
    1. Advertisements

  3. turbogt16v

    turbogt16v

    Joined:
    Mar 27, 2015
    Messages:
    153
    Likes Received:
    4
    can someone recommend some ebook that has in depth basic tutorials for arduino coding
     
    turbogt16v, Mar 14, 2018
    #3
  4. turbogt16v

    Harald Kapp Moderator Moderator

    Joined:
    Nov 17, 2011
    Messages:
    8,287
    Likes Received:
    1,560
    Location:
    Germany-Europe-Earth-Sol System-Milky Way-Laniakea
    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.
     
    Harald Kapp, Mar 14, 2018
    #4
  5. turbogt16v

    Bluejets

    Joined:
    Oct 5, 2014
    Messages:
    2,464
    Likes Received:
    480
    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
    Bluejets, Mar 14, 2018
    #5
    1. Advertisements

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.