current position:Home>Measure the distance with sound wave, and then send the result to the serial port. Do you want to interrupt twice, language interrupt, and ask for an idea

Measure the distance with sound wave, and then send the result to the serial port. Do you want to interrupt twice, language interrupt, and ask for an idea

2022-02-03 00:38:32 CSDN Q & A

After the interruption, measure the distance with sound wave , Then send the result to the serial port , Do you want to use two interrupts , Language interruption , Seek a way of thinking




Refer to the answer 1:

use TIM Give a time benchmark , Periodically call acoustic ranging ( such as 10ms Once ), The serial port can interrupt the reception , Processing data




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030038307717.html

Random recommended