2124 views|6 replies

29

Posts

0

Resources
The OP
 

Please advise [Copy link]

Experts, please take a look at my program, multi-channel ultrasonic distance measurement. But the measurement is incorrect, and the returned value is random. I don't know why

QQ截图20180423204634.jpg (30.24 KB, downloads: 0)

QQ截图20180423204634.jpg

QQ截图20180423204610.jpg (38.75 KB, downloads: 0)

QQ截图20180423204610.jpg

QQ截图20180423204544.jpg (28.91 KB, downloads: 0)

QQ截图20180423204544.jpg
This post is from Analog electronics

Latest reply

Only test one channel and check if the data is normal.  Details Published on 2018-4-26 21:57

4005

Posts

0

Resources
2
 
You can use an oscilloscope to see if the signal is coming in.
This post is from Analog electronics

Comments

The signal must have come in, because if the signal does not come in, the TBCCR1 register will have no value  Details Published on 2018-4-24 18:52
 
 

29

Posts

0

Resources
3
 
The signal must have come in, because if the signal did not come in, the TBCCR1 register would have no value.
This post is from Analog electronics
 
 
 
 

29

Posts

0

Resources
4
 
huo_hu posted on 2018-4-24 08:21 First use an oscilloscope to see if the signal is coming in.
The signal must be coming in, because if the signal does not come in, the TBCCR1 register will have no value.
This post is from Analog electronics
 
 
 
 

4005

Posts

0

Resources
5
 
OK, then open a buffer to temporarily store count0 1 data and see what happens.
This post is from Analog electronics
 
 
 
 

4005

Posts

0

Resources
6
 
Are you using an ultrasonic module? I remember there was a trigger input signal that needed to be operated.
This post is from Analog electronics
 
 
 
 

26

Posts

0

Resources
7
 
Only test one channel and check if the data is normal.
This post is from Analog electronics
 
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

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