How can I measure black line width using a robot and QRB1134 sensor?

  • Thread starter Thread starter brad sue
  • Start date Start date
  • Tags Tags
    Line Width
Click For Summary
SUMMARY

This discussion focuses on measuring the width of a black line (0.5 inch) using a robot equipped with a QRB1134 sensor and a Freescale MC9S1C32 microcontroller with an integrated ADC. The user seeks guidance on whether to calculate the robot's speed or rely on PWM for accurate measurements. Suggestions include correlating PWM percentage with speed and using an additional opto sensor on the wheel rim for precise tracking. The conversation highlights the importance of understanding the robot's capabilities and the necessary circuitry for effective measurement.

PREREQUISITES
  • Understanding of QRB1134 sensor functionality
  • Familiarity with Freescale MC9S1C32 microcontroller and its ADC
  • Knowledge of pulse width modulation (PWM) for motor control
  • Basic principles of robotics and sensor integration
NEXT STEPS
  • Research methods to correlate PWM percentage with robot speed
  • Learn about integrating additional sensors for enhanced measurement accuracy
  • Explore techniques for calculating speed using time and distance
  • Investigate the use of opto sensors for precise tracking on moving parts
USEFUL FOR

Robotics enthusiasts, engineers working with sensor integration, and developers involved in line-following robot projects will benefit from this discussion.

brad sue
Messages
270
Reaction score
0
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 on the procedure for this please?
C.
 
Engineering news on Phys.org
brad sue said:
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 on the procedure for this please?
C.

Your question is kind of vague. You mention a robot -- what are its capabilities? You mention a sensor -- what kind of sensor is it? You mention an ADC, but no mention of a microcontroller (uC) or any other circuitry for operating the ADC and getting results out of it. What is your level of expertise with these things (robots, ADCs, uCs)? Are you actually building this, or just doing a paper design? What course is this for (what year)?
 
berkeman said:
Your question is kind of vague. You mention a robot -- what are its capabilities? You mention a sensor -- what kind of sensor is it? You mention an ADC, but no mention of a microcontroller (uC) or any other circuitry for operating the ADC and getting results out of it. What is your level of expertise with these things (robots, ADCs, uCs)? Are you actually building this, or just doing a paper design? What course is this for (what year)?

Sorry about that!
So far the robot is just running according certain command : turn left , right etc.. The motor speeds are controlled via the pulse width modulation (PWM).
The sensor is the QRB1134. It is a photo transistor.

The MCU I used is the freescale MC9S1C32 and it has a ADC integrated. so I have no more circuitry to add but connecting the line sensor and a pull up resistor. I have worked with the ADC before but not much.

To measure the width of a black line , I think I need to compute the speed of the robot and the time the robot runs 0.5 inch. Do you think I must calculate the speed or just use the PWM?
If not how to have a precise value of the speed?

Thank you
 
You can do some experiments to see if you can correlate the PWM percentage with robot speed to within whatever your target accuracy is. Be sure that the robot is up to speed before running over the line, however.

Alternately, you could put another opto sensor on a wheel rim, and put little lines on the rim that you can count at the same time you are running over the black line...
 

Similar threads

Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 37 ·
2
Replies
37
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K