How do I read the data from Line Sensor Breakout - QRE1113 (Digital)?

Thread Starter

John A Bonilla

Joined Mar 11, 2017
92
Hello everyone,

I bought this off of sparkfun by mistake, I meant to buy the analog version, however I don't have time to return it and wait to get the other version so I need to learn how to get the data out of it. When I run the digitalRead program on the arduino I only get ones and zeros. This is the sparkfun link:

https://www.sparkfun.com/products/9454

There isn't much helpful information online about this product, so any help would be great. I did find the page linked below, however when I tried to plug the digital code into the arduino it gave me all different types of errors. I appreciate everyone for taking their time in advance, and hopefully we can figure this out.

http://bildr.org/2011/06/qre1113-arduino/

-John B
 

MaxHeadRoom

Joined Jul 18, 2013
28,688
I use the analogue version for Digital input, instead of the digital, it is easy to change anyway.
The schematics for both are out there.
Max.
 

MaxHeadRoom

Joined Jul 18, 2013
28,688
Oh Oh, Thread closed, now it's open again!:rolleyes:

If you replace the cap with a 10k resistor it will convert it.
See the schematics in the link for both.
Max.
 
Last edited:
Top