element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Embedded Forum Thought Experiment; Detecting Distance
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 37 replies
  • Answers 5 answers
  • Subscribers 483 subscribers
  • Views 3020 views
  • Users 0 members are here
  • embedded
  • development
  • mcu
  • puzzle
Related

Thought Experiment; Detecting Distance

Catwell
Catwell over 15 years ago
We have two blocks, A & B shown below, moving away from each other. How can one detect that the separation has reached a certain point, distance X in this case?
 
The most obvious solution is two rods, one on each block, that make contact when the distance is X. But this is a crude and cumbersome option. It's 2010, how about a high tech solution?

image

 
 
There is no right or wrong, just an excellent chance to work out the prefrontal cortex and showing off some creativity.
  • Sign in to reply
  • Cancel

Top Replies

  • DAB
    DAB over 14 years ago +1
    Hi Cabe, A very simple approach is to set up two laser pointers set up to hit the same spot at only the correct distance. As you move one box towards the other, the two laser spots will converge. If you…
  • Catwell
    0 Catwell over 15 years ago in reply to albertosombri

    Alberto,

     

    Ultrasonic? I never thought of that. Do you have any experience with such devices?

     

    Cabe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Catwell
    0 Catwell over 15 years ago in reply to Former Member

    What are the dimensions of the  blocks? Let's say 3 inch cubes.

     

    What  are the max/min distances between the blocks? 4 inches.

     

    What accuracy do you require? I would like it to be accurate to 0.01 inches. Or 10 thousandths.

     

    Are you  trying to detect a fixed or variable distance? I would like to detect fixed distances.

     

    Can wires be attached to both  blocks, and/or between the blocks? Yes.

     

    How fast are the blocks moving? 50 inches per minute.

     

    describe the  environment that this is to work in -- temp, humidity, air quality,  etc. Think light industrial but sheltered.

     

    How  much money do you want to spend? I would like it to be around $20 US dollars or less.

     

    Thanks, NoSho.

     

    Cabe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • albertosombri
    0 albertosombri over 15 years ago

    Hi Cabe,

    yes I have experience in developing US system.

    some years ago I developed an Electronic Parking System, it works just like a bat sense.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • albertosombri
    0 albertosombri over 15 years ago

    Hi Cabe,

    Do you think RF transformer with low coupling could be a solution?

    Just like RFID system, the power received, is proportional to the coils coupling.

     

     

    What do you think about this!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Catwell
    0 Catwell over 15 years ago in reply to albertosombri

    In an ideal situation Ultrasonic might be perfect. However, what if it is in a noisy industrial environment? Is there a way to isolate the signal?

     

    Also, please post some links to the Ultrasonic emitter/detectors you've used.

     

    Thanks.

     

    Cabe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Catwell
    0 Catwell over 15 years ago in reply to albertosombri

    Alberto,

     

    I often don't get my RFID tollway device detected when I pass through the booths. So, I worry about the accuracy of such a device in measuring distance. But I like where your head is at.

     

    I will have to research this a little more.

     

    Cabe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • albertosombri
    0 albertosombri over 15 years ago in reply to Catwell

    Hi Cabe,

    I know, RFID system got some troubles when the distance is more than a meter.

    This is depending by the great difference between the coil of the reader (usually a big coil), and the coil of the transponder (usually tiny coils).

    But if we try to think to put coils on the two blocks, and we will consider the system just like a power transformer, I believe that after some test and measurement, we can have a real proportionality

    between received power and the distance of the two coils.

     

    Alberto.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • albertosombri
    0 albertosombri over 15 years ago in reply to Catwell

    Something about US system.

     

    In the 1994 we developed a US system for FIAT car alarm system, the goal was to detect any movments inside the car, when the car was parked.

    So we built up a small 44KHz transmitter, using analog components, and also an analog receiver able to detect signal phase variations.

     

    In the 2004 I worked in another company and we developed an electronic parking system with US technology. We always used discrete devices for TX and Rx, then a uP able to measure the delay between the transmitted signal and the received signal.

     

    Alberto.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 15 years ago

    Beem breaker perhaps

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 15 years ago

    It would take some doing to get .25% accuracy with ultrasound.  You have to fight 3 different problems:

    1. Speed of sound changes with temperature (very roughly .1% every degree F), you could correct for that with a temperature sensor, so it's not too bad.

    2. Speed of sound changes with humidity (bone dry to saturated might be about .5% difference (again very roughly) in a warm environment, again, humidity sensor could take care of that.

    3. Speed of sound changes with gas composition, measuring that would be tricky, but it's not a huge factor, but can be noticable.

     

    Also note if your environment is windy you'll have to go with two transducers instead of reflections to correct for it.

     

    Ultrasound is great for getting a good idea of distance, but getting serious accuracy out of it takes some work.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube