2862 views|12 replies

10

Posts

0

Resources
The OP
 

8051 single chip ultrasonic transceiver split ruler (GPS / BDS chip PPS signal as time synchronization, synchronization error is about ten... [Copy link]

 

Ultrasonic transmitter and receiver split ruler (GPS/BDS chip PPS signal is used as time synchronization, the synchronization error is about ten microseconds)

This is a self-made project that I have published on Weibo, Bilibili (https://www.bilibili.com/video/BV1g54y187NT) and blog.csdn.net (https://blog.csdn.net/garfield0424/article/details/114960031).

*** Welcome to give me some comments on this production!! ***

Ultrasonic transmitter and receiver split ruler (GPS/BDS chip PPS signal is used as time synchronization, the synchronization error is about ten microseconds)

The PPS output of the Beidou chip is used to provide the time synchronization function of the ultrasonic ruler transmitter and receiver. Generally, ultrasonic rulers rely on the ultrasonic wave reflected from the target object to obtain the time the ultrasonic wave travels in the air, and then multiply it by the speed of the ultrasonic wave in the air to get the distance, and then divide it by 2 to know how far the object is from the ultrasonic ruler instrument. However, the object must be able to reflect enough ultrasonic energy back to the instrument, exceeding the minimum energy measurement requirement of the ultrasonic receiver to measure it. The PPS signal of the Beidou chip is 1Hz. At the beginning of each second, a square wave signal with a time shorter than one second is generated by the PPS signal. The rise time position of this square wave signal received by all devices and instruments will be extremely accurate time synchronization. The PPS signal output of the Beidou chip that can be purchased generally has a rise time position accuracy of less than 100ns in the square wave signal received by different devices and instruments. 1ns (1 nanosecond) = 0.000000001 seconds. My ultrasonic ruler cannot reach this level of accuracy, mainly because the clock time signals of the two microprocessors are not synchronized, and the frequency of the clock crystal is not necessarily accurate. There are also some Beidou chip models produced specifically for time synchronization, and the PPS time synchronization accuracy of the chip output can be far better than 100ns.

The general ultrasonic distance measurement is not difficult. As long as you buy a transceiver component, you can calculate the distance by the time required for the component to emit and receive the ultrasonic wave, plus the speed of the ultrasonic wave in the air. In the above project, only two normal ultrasonic transceivers are needed. The Beidou chip PPS output is used as time synchronization to make two identical transceivers perform normal distance measurement at the same time. The two components will send out ultrasonic distance measurement signals at the same time, but they will first receive the ultrasonic signal emitted by the other party, rather than their own ultrasonic signal reflected back. Therefore, both parties will measure the distance between them, rather than the distance twice the distance after the ultrasonic wave is reflected back to themselves. Generally, the Beidou satellite signal at home is very weak, so you must buy a Beidou satellite signal amplifier. The receiving antenna must be placed outdoors to receive and amplify the Beidou satellite signal, and then use the output antenna of the amplifier to send the Beidou satellite signal indoors. In addition, the Beidou chip PPS output must be the output after successful positioning, which will be a real real-time Beidou PPS signal. When setting the Beidou chip parameters, you must select FIXED in the positioning parameter option. Otherwise, the Beidou chip may output some estimated PPS signals at some times because it cannot receive real-time Beidou satellite signals. At this time, the time error of the PPS signal output by the Beidou chip when received by different devices and instruments will be far more than 100ns.

The system operation principle diagram is as follows. T transmit (transmitter-receiver integrated ultrasonic component [transmitter role] ranging start time) = T receiver timer (transmitter-receiver integrated ultrasonic component [receiver role] ranging start time)

The distance calculation results of the two ultrasonic transceiver components of my ultrasonic ruler can be confirmed to be the distance calculation results obtained after receiving the ultrasonic signal sent by the other party. Because there is a GPS/BDS PPS signal and there is no signal, the two components will obtain different distance calculation results. If a solid plate is placed between the two transceiver components during normal operation, and then moved left and right, the distance calculation results on both sides and the measured distance that should be obtained after the ultrasonic wave is reflected from the solid plate and returns to each component are completely consistent. In this case, the sum of the distance values obtained by the two components divided by 2 will be approximately equal to the normal distance display value without a solid plate placed in the middle.

This post is from 51mcu

Latest reply

This is a demonstration video, which also requires an introduction to the principles, experimental process, precautions, actual photos, schematics, wiring diagrams, sample codes, precautions, a bill of materials, and error analysis, so that people who are interested can reproduce the effects you described. This is considered a completed project.   Details Published on 2021-8-2 15:30

赞赏

1

查看全部赞赏

 

7462

Posts

2

Resources
2
 

The host is awesome

This post is from 51mcu
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

1w

Posts

204

Resources
3
 
Awesome~~ Thumbs up
This post is from 51mcu
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle
 
Personal signature

玩板看这里:

https://bbs.eeworld.com.cn/elecplay.html

EEWorld测评频道众多好板等你来玩,还可以来频道许愿树许愿说说你想要玩的板子,我们都在努力为大家实现!

 
 

1w

Posts

25

Resources
4
 

It looks good, but how does it actually work? How accurate can it be?

This post is from 51mcu
 
 
 

2w

Posts

341

Resources
5
 

How far can the test distance be using two normal ultrasonic transceiver components?

In addition, what are the advantages of test accuracy compared with a transceiver component?

This post is from 51mcu
 
 
 

10

Posts

0

Resources
6
 
qwqwqw2088 posted on 2021-3-26 15:26 How far can the test distance be with two normal ultrasonic transceiver components? In addition, what are the advantages of test accuracy compared with a transceiver component?

This is a cheap ultrasonic transceiver integrated distance measuring component, so the distance measuring accuracy is not high. Some high-precision ultrasonic transceiver integrated distance measuring components (priced at more than RMB100) can do relatively long distance measurement work while maintaining an accuracy of about 1mm. I have used this cheap part to measure a distance of more than two meters, and the accuracy is still acceptable. In fact, the focus of this production is cheapness. Because there is no need to reflect back to measure the distance, if the transceiver integrated component itself can measure a distance of 4.5m, then theoretically my production can measure a distance of 9m. The advantage of this distance measuring production is that it can measure the distance between any two points without the need for a large area object that can reflect ultrasonic waves.

This post is from 51mcu

Comments

Yes, the accuracy is open source, the advantage of measuring the distance between any two points is relatively large, the use value is great, improve and optimize the entire product, selling point  Details Published on 2021-3-26 16:17
 
 
 

6593

Posts

0

Resources
7
 

If the Beidou signal is not good, the PPS signal will also be poor.

The error will be far more than 100ns.

This post is from 51mcu
 
 
 

2w

Posts

341

Resources
8
 
anthony0424 posted on 2021-3-26 15:57 This is an inexpensive ultrasonic transceiver integrated distance measuring component, so the distance measuring accuracy is not high. There are some high-precision ultrasonic transceiver integrated distance measuring components (priced in...

Yes, the accuracy is good. This method has a great advantage in measuring the distance between any two points.

Great use value, improve and optimize the entire product, selling point

This post is from 51mcu
 
 
 

9720

Posts

24

Resources
9
 

Which is more advantageous, using satellite to synchronize time or using a pair of RF modules to synchronize time?

This post is from 51mcu

Comments

Satellite synchronization time is much better than a pair of RF modules, because if many people use the same product at the same location, because the satellite signal is a public signal, even if there are hundreds or thousands of the same products in use nearby, there will be no problem of products sending signals interfering with each other.  Details Published on 2021-3-26 16:28
 
 
 

10

Posts

0

Resources
10
 
Jacktang posted on 2021-3-26 16:02 If the Beidou signal is not good, the PPS signal will be worse and the error will be far more than 100ns

Because the positioning mode that outputs PPS only after successful positioning is selected, if the chip can output PPS signal, it is a reliable PPS signal. If the Beidou signal cannot be received, the PPS signal will stop outputting and the measurement data output will also stop when the "FIXED" option is selected for positioning. Therefore, this production will not output unreliable measurement data. In addition, some electronic instruments can record GPS/BDS satellite signals and then replay them at any place and at any time. My production should be able to work normally by replaying satellite signals. Because my production is only related to time, the recorded satellite signal positioning is basically wrong, but the PPS output should not have any effect, because the PPS signal is only related to the time interval between seconds.

This post is from 51mcu
 
 
 

10

Posts

0

Resources
11
 
littleshrimp posted on 2021-3-26 16:19 Which is more advantageous, using satellite to synchronize time or using a pair of RF modules to synchronize?

Satellite synchronization time is much better than a pair of RF modules, because if many people use the same product at the same location, because the satellite signal is a public signal, even if there are hundreds or thousands of the same products in use nearby, there will be no problem of products sending signals interfering with each other.

This post is from 51mcu

Comments

Indeed, does 1-to-1 radio frequency also have its advantages in places with few people and poor satellite signals?  Details Published on 2021-3-26 20:56
 
 
 

9720

Posts

24

Resources
12
 
anthony0424 posted on 2021-3-26 16:28 The satellite synchronization time is much better than a pair of RF modules, because if many people use the same product at the same location, the satellite signal is public...

Indeed, does 1-to-1 radio frequency also have its advantages in places with few people and poor satellite signals?

This post is from 51mcu
 
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

305

Posts

0

Resources
13
 

This is a demonstration video, which also requires an introduction to the principles, experimental process, precautions, actual photos, schematics, wiring diagrams, sample codes, precautions, a bill of materials, and error analysis, so that people who are interested can reproduce the effects you described. This is considered a completed project.

This post is from 51mcu
 
Personal signature

“Everyone wants the project to be good, fast, and cheap... pick two.”

- Unknown

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list