Micro Processor project making a Gun Chronograph

Click For Summary

Discussion Overview

The discussion revolves around a lab project for a Micro Processor class, specifically focused on creating a gun chronograph using QRB1134 reflective sensors. Participants explore the technical requirements for measuring the velocity of projectiles, programming the MEGA16 microprocessor, and the setup of the sensors.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant outlines the project requirements, including the use of four QRB1134 sensors to detect an object and the need to calculate velocity using a MEGA16 microprocessor.
  • Another participant emphasizes the importance of knowing the distance between the sensors and the required accuracy for speed measurement, suggesting a timing clock frequency based on the distance and speed of the projectile.
  • A participant clarifies that they will use a rubber band as the projectile and considers a distance of about one foot between the sensor pairs.
  • Further elaboration on the timing calculations indicates that for a projectile moving at 100 feet per second, specific timing requirements for the clock are necessary to achieve a desired measurement accuracy.
  • Another participant suggests using interrupts and the microprocessor's internal timer/counter for timing tasks, recommending the setup of interrupts for each sensor to manage timing and calculations effectively.

Areas of Agreement / Disagreement

Participants generally agree on the technical aspects of using sensors and the MEGA16 microprocessor for the project, but there are varying opinions on the specific distance between sensors and the timing requirements for accurate velocity measurement. The discussion remains unresolved regarding the optimal setup and programming approach.

Contextual Notes

Limitations include unspecified assumptions about the projectile's speed and the accuracy of measurements, as well as the lack of consensus on the ideal sensor spacing and timing clock frequency.

ajaustin12
Messages
3
Reaction score
0
I need a little help with a lab project that I am making for my Micro Processor class. My instructor gave me the idea of making a gun chronograph.

He wants me to use 4 qrb1134 reflective sensors to detect an object. The qrb1134's will be in two pairs set at a certain distance apart. The purpose for these sensors are to start and stop an internal clock of a MEGA16 micro processor trainer board.

I am also supposed to write a program for the MEGA16 to perform that function and to calculate the velocity of the object that passed through the two pairs of QRB1134. The program is also supposed to display the velocity on the CRT.

I am very new at programing and really don't know where to begin. Any help will be appreciative.
 
Engineering news on Phys.org
First, you need to know how far apart the sensors are, and how accurately you need to measure the speed. For example, if the sensors are 10 meters apart, the bullet speed is 1000 meters per second, and you need to measure the speed to 1 m/s, then you will need a timing clock ~ 200 kHz or better.
Bob S
 
I guess I should have been a little more specific. Sorry about that.

Since this is a class assignment i will be using a rubber band or some type of projectile with a rubber band.

I haven't decided the distance between the two pairs of sensors, but thought about putting them about a foot apart.
 
ajaustin12 said:
I guess I should have been a little more specific. Sorry about that.

Since this is a class assignment i will be using a rubber band or some type of projectile with a rubber band.

I haven't decided the distance between the two pairs of sensors, but thought about putting them about a foot apart.
If the projectile is moving at 100 feet per second, the time delay between sensors spaced one foot apart is 10 milliseconds. If you want a 1% measurement of its speed, then your clock should be roughly 0.5 x 0.01 x 10 milliseconds = 1/50-microseconds, or 20 KHz.

Bob S
 
ajaustin12 said:
I need a little help with a lab project that I am making for my Micro Processor class. My instructor gave me the idea of making a gun chronograph.

He wants me to use 4 qrb1134 reflective sensors to detect an object. The qrb1134's will be in two pairs set at a certain distance apart. The purpose for these sensors are to start and stop an internal clock of a MEGA16 micro processor trainer board.

I am also supposed to write a program for the MEGA16 to perform that function and to calculate the velocity of the object that passed through the two pairs of QRB1134. The program is also supposed to display the velocity on the CRT.

I am very new at programing and really don't know where to begin. Any help will be appreciative.

To use a uP for a timing task like this, you should probably use interrupts and the uP's internal timer/counter. I'd use two IOs (one for each sensor), and set up an interrupt on each line. The first interrupt would clear and start a timer, and the second interrupt would stop the timer, do the calculation, and send it to the display.

So I'd suggest reading some about interrupts and timer/counter use in your uP as a place to start.
 

Similar threads

Replies
7
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
3
Views
3K
Replies
2
Views
6K
Replies
4
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 1 ·
Replies
1
Views
6K