Embedded C/C++

Moderators: Lundin
Number of threads: 209
Number of posts: 392

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
measuring black line width Posted by brad sue on 16 Oct 2008 at 8:01 PM
Hi,
I would like to measure black line width (width of 0.5 inch)with a robot.
I don't know how to do it. I use a QRB1134 sensor and the Analog/digital converter.
please can someone guide me for this please?
C.
Report
Re: measuring black line width Posted by Lundin on 16 Oct 2008 at 11:32 PM
Out of curiousity I looked at the data sheet for that device. It has a simple phototransistor output, so it is digital, not analog. Where do you get the analog part from?

Do you intend to have some sort of robot arm carrying the device over a line? In that case you have the speed of the robot arm and the time between transistor off and on. The time multiplied with the speed gives you the width of the line. I imagine you need a quite accurate speed for this, as well as a precise CPU clock.
Report
Re: measuring black line width Posted by brad sue on 17 Oct 2008 at 4:56 PM
: Out of curiousity I looked at the data sheet for that device. It has
: a simple phototransistor output, so it is digital, not analog.
: Where do you get the analog part from?
:
: Do you intend to have some sort of robot arm carrying the device
: over a line? In that case you have the speed of the robot arm and
: the time between transistor off and on. The time multiplied with the
: speed gives you the width of the line. I imagine you need a quite
: accurate speed for this, as well as a precise CPU clock.

I don't know about the analog part. For the moment we are just trying to recognize line width. As you suggested I need to have a precise value of the robot speed. I guess I will have to compute the speed using the pulse with modulation. I just need to figure out how! I will search for it but if I dont find it maybe I will need further help.
Thank you



 

Recent Jobs