Micro Processor project making a Gun Chronograph

AI Thread Summary
The project involves creating a gun chronograph using four QRB1134 reflective sensors to measure the velocity of a projectile, with the sensors set in pairs at a specified distance. The MEGA16 microprocessor will control the timing and calculations, displaying the results on a CRT. For accurate speed measurements, the timing clock frequency must be sufficient based on the distance between sensors and the speed of the projectile. It is recommended to utilize interrupts and the microprocessor's internal timer for effective timing management. Starting with research on interrupts and timer/counter functions will help in programming the device.
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.
 
Very basic question. Consider a 3-terminal device with terminals say A,B,C. Kirchhoff Current Law (KCL) and Kirchhoff Voltage Law (KVL) establish two relationships between the 3 currents entering the terminals and the 3 terminal's voltage pairs respectively. So we have 2 equations in 6 unknowns. To proceed further we need two more (independent) equations in order to solve the circuit the 3-terminal device is connected to (basically one treats such a device as an unbalanced two-port...
suppose you have two capacitors with a 0.1 Farad value and 12 VDC rating. label these as A and B. label the terminals of each as 1 and 2. you also have a voltmeter with a 40 volt linear range for DC. you also have a 9 volt DC power supply fed by mains. you charge each capacitor to 9 volts with terminal 1 being - (negative) and terminal 2 being + (positive). you connect the voltmeter to terminal A2 and to terminal B1. does it read any voltage? can - of one capacitor discharge + of the...
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Back
Top