image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Engineering > Electrical Engineering


Reply

image Micro Processor project making a Gun Chronograph Share It Thread Tools Search this Thread image
Old Nov16-09, 11:39 AM                  #1
ajaustin12

ajaustin12 is Offline:
Posts: 2
Micro Processor project making a Gun Chronograph

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.
  Reply With Quote
Old Nov16-09, 12:19 PM                  #2
Bob S

Bob S is Offline:
Posts: 2,271
Recognitions:
PF Contributor PF Contributor
Re: Micro Processor project making a Gun Chronograph

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
  Reply With Quote
Old Nov17-09, 01:48 PM                  #3
ajaustin12

ajaustin12 is Offline:
Posts: 2
Re: Micro Processor project making a Gun Chronograph

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.
  Reply With Quote
Old Nov17-09, 04:36 PM                  #4
Bob S

Bob S is Offline:
Posts: 2,271
Recognitions:
PF Contributor PF Contributor
Re: Micro Processor project making a Gun Chronograph

Originally Posted by ajaustin12 View Post
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
  Reply With Quote
Old Nov17-09, 05:27 PM                  #5
berkeman

PF Mentor
 
berkeman's Avatar

berkeman is Offline:
Posts: 14,558
Re: Micro Processor project making a Gun Chronograph

Originally Posted by ajaustin12 View Post
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.
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Micro Processor project making a Gun Chronograph
Thread Thread Starter Forum Replies Last Post
Processor speed Ed Aboud Computing & Technology 5 May11-08 05:15 PM
Chronograph Freetempo General Physics 2 May2-06 08:52 PM
Soap Making - Chemistry Project IntellectIsStrength Chemistry 2 Mar25-06 05:56 PM
Quantom processor? yetar Quantum Physics 13 Sep12-05 11:15 AM
which processor sid_galt Computing & Technology 11 Jun9-05 11:26 AM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image