Home Blog  





12 Jun 2012

icolas asks:

I’d really like to know how to “”convert”” an analog value to a digital one. In a word : I have an Arduino, a photoresistor, with a pull-down resistor. I want to know if the light is above or below a given threshold.

I know how to read the value with analogRead(photoResPin), and compare it to my threshold (in code), but I’d like to do that without software (only using digitalRead), handling that threshold in hardware.

Can you help me ?

I guess I can use a transistor, but don’t know how to “”precisely”” set the threshold (by changing the pull-down resistor value ?).

How can I convert an analog value to a digital one? - [Link]

One Response to “How can I convert an analog value to a digital one?”

  1. Digital scales Says:

    Helpful guidance!! I really enjoyed learning this tricky process of digital convert. Thanks :)

Leave a Reply

You must be logged in to post a comment.



 
 
 

 

 

 

Search Site | Advertising | Contact Us
Elektrotekno.com | Free Schematics Search Engine | Electronic Kits