Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 19th August 2005, 02:53 AM   (permalink)
Default counting microseconds

How would you go about counting the duration of a very small pulse in precision of microseconds ?
digital is offline  
Old 19th August 2005, 03:56 AM   (permalink)
Default

http://www.electro-tech-online.com/viewtopic.php?t=240

Take a gander at this article.
__________________
I'm no electronics god, i just talk too much.
zachtheterrible is offline  
Old 19th August 2005, 04:13 AM   (permalink)
Default

Are you wanting to measure the pulse repetition rate? or the pulse width?
__________________
The great thing about electronics is unlimited ways to do the job. The only limit is one\'s imagination. I generally think my way is best.
Show me a different way. I have an open mind.
k7elp60 is online now  
Old 19th August 2005, 04:16 AM   (permalink)
Default

Quote:
k7elp60 wrote: Are you wanting to measure the pulse repetition rate? or the pulse width?
Im looking to measure the pulse width


What about without using an oscilloscope, considering they are costly, are there any other reliable methods :?:
digital is offline  
Old 19th August 2005, 04:18 AM   (permalink)
Default Re: counting microseconds

Quote:
Originally Posted by digital
How would you go about counting the duration of a very small pulse in precision of microseconds ?
How wide is the pulse, and what resolution do you need?
__________________
Ron (aka Rube)

Roff is online now  
Old 19th August 2005, 04:25 AM   (permalink)
Default

Quote:
Ron H wrote: How wide is the pulse, and what resolution do you need?
0.5 to 2 miliseconds, im going to need to measure several different pulses within that range so it needs to be relatively precise.
digital is offline  
Old 19th August 2005, 09:11 AM   (permalink)
Default

Quote:
Originally Posted by digital
Quote:
Ron H wrote: How wide is the pulse, and what resolution do you need?
0.5 to 2 miliseconds, im going to need to measure several different pulses within that range so it needs to be relatively precise.
Would these be radio control servo pulses?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 19th August 2005, 11:54 AM   (permalink)
Default

An oscilloscope is the first and most obvious tool to use, but it sounds as though you have not got one.
My next choice would be a universal counter/timer. They are expensive and I am guessing that you dont have one of those either.

You could try building a counter/timer if you need to measure the pulse width, a simple one for the times you want is not too difficult. An oscilloscope would be usefull when you are checking the timer.....
OOPS, no oscilloscope! I guess you are stuck.

JimB
__________________
Experience is directly proportional to the value of the equipment ruined.
JimB is offline  
Old 19th August 2005, 01:49 PM   (permalink)
Default

Conect an LED to it an try to count realy fast.
__________________
Il give you shocking experience.
Someone Electro is offline  
Old 19th August 2005, 03:57 PM   (permalink)
Default

Quote:
Originally Posted by digital
Quote:
Ron H wrote: How wide is the pulse, and what resolution do you need?
0.5 to 2 miliseconds, im going to need to measure several different pulses within that range so it needs to be relatively precise.
Relatively precise means nothing. How you do this depends on a real answer.
__________________
Ron (aka Rube)

Roff is online now  
Old 19th August 2005, 04:10 PM   (permalink)
Default

I think a microcontroller in a counter would work fine. The MCU are known to be faster than most of the fast occuring events, just set to MCU to the desired (sweep) rate and have the result stored in your memory.
Electrix is offline  
Old 19th August 2005, 04:12 PM   (permalink)
Default

Quote:
Originally Posted by digital
Quote:
Ron H wrote: How wide is the pulse, and what resolution do you need?
0.5 to 2 miliseconds, im going to need to measure several different pulses within that range so it needs to be relatively precise.
As Ron pointed out, you need to provide some quantity since the implementation method may depend on that.

For example, what is the _smallest_ width within 0.5ms to 2ms that you anticipate needing to measure? That answer will determine what minimum resolution you will need. And for all your measurments, how close to actual do you really need to be (accuracy)? a +/-1% accuracy for example would mean that if your pulse was 0.5ms long, your design would tell you it was something between 495us and 505us. Assuming you have this kind of resolution of course.
Optikon is offline  
Old 20th August 2005, 02:18 AM   (permalink)
Default

Quote:
Nigel Goodwin wrote:
Would these be radio control servo pulses?.
eventually radio control but for now Im only treating it as a serial data communicator using PWM between one wire

Quote:
Optikon wrote:
what is the _smallest_ width within 0.5ms to 2ms that you anticipate needing to measure?
The smallest pulse width will be 0.5ms, but will be in 0.5ms incriments, 15 times for 15 commands at most. Its hard to predict exactly how much resolution is actually going to be really used in the circuit but I would like an accuracy of atleast 1%

0.5ms * 1% = 0.005ms, isn't that a resolution of 5us ?

so for a value of lets say 1ms I could be off by 1.005ms to 0.995ms
digital is offline  
Old 21st August 2005, 08:49 PM   (permalink)
Default

Whats the 1st and most accurate method for measuring pulse width ?

Whats the 2nd ?

Any other reliable methods/ideas ?

What about constructing a syncronous 7 segment display clock(probably using 4029's) but clocking it faster than 60Hz, starting with values 1 sec and smaller, and connecting it with a stop/start interface to display how long a specific pulse was, do you think that this method would work :?:
__________________
Thanks for helping me out.
digital is offline  
Old 21st August 2005, 09:00 PM   (permalink)
Default

I would suggest you use a PIC at both ends, and send digitally encoded data over the link, preferably using Manchester coding (or similar), you can buy licence free radio modules which accept standard RS232 and do the Manchester coding onboard.

Your pulse width scheme looks rather crude and unreliable?, you might like to look at my SIRC's IR tutorial, which uses various pulse widths for IR remore control. You will notice that it doesn't use specific widths, but uses a wide range of widths to represent either START, ZERO or ONE - this gives high reliability.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:26 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker