Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

help me to identify this microcontroller. please :(

Status
Not open for further replies.
You haven't stated the range of distances you're attempting to measure. The speed of light table below is from Wikipedia and will help put things in perspective.

Light will travel 1 meter in ~3.3 nano-seconds – 3.3 x 10^-9 seconds. So to measure 1 meter, you must transmit a pulse, respond to the pulse with the receiving end to transmit a return pulse in some fixed, known time, sense the received pulse and measure Δt with nano-second resolution.

A microprocessor running at 20 MHz has a clock cycle of 5 x 10^-8 seconds....

Looks like a problem.

The speed of sound in air is 343 meters/second, roughly a million times slower than the speed of light. A bit more practical to measure I should think.

image.jpg
 
Yes, it is going to be one of those LONG threads...:(
 
First quantify what you're trying to measure then worry about the hardware.

What distance are you trying to measure?

What is the needed resolution?

Will the proposed method work for this? What resolution do you need on the time measurement? Is this practical to measure using whatever skills you have?

Only after the above questions are answered, start to select the hardware.


I think you're going to find that this approach isn't entirely practical. Maybe it is, but you need to understand the theory first.
 
Rafael, you're trying to use a microcontroller and you don't know what "resolution" means?

I think you have some major catching up to do before you can even begin to think about how to make this project work....
 
i want to measure the time when the receiver received the signal
The device you need is called a clock ;)
 
Rafael143 , one thread is enough. I have merged your two threads together.
 
To put things in perspective, the round-trip time for an RF signal to/from a target at 100m is ~600nS. To measure that sort of distance to the nearest metre would require a time resolution of ~6nS; i.e. you would need to be able to distinguish between two events only 6nS apart.
 
To put things in perspective, the round-trip time for an RF signal to/from a target at 100m is ~600nS. To measure that sort of distance to the nearest metre would require a time resolution of ~6nS; i.e. you would need to be able to distinguish between two events only 6nS apart.

I thought I said this already.....
 
I must have missed that, Jonsea. Which post? AFAIK it wasn't until post #26 that 100m was mentioned.
 
I'm still trying to figure out why that post was "funny".... :p
 
Alec, I mentioned that an RF signal will travel 1m in ~3.3 nano-seconds in post #21. You spelled it out more directly.

I'm afraid a subtle answer isn't going far in this conversation.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top