ScrapSort / ScrapSort_MAX78000-SDK

Other
1 stars 0 forks source link

implement ultrasonic sensors #3

Open v-benenati opened 2 years ago

geffencooper commented 2 years ago

Proposed solution, use the sys_tick global counter to keep track of rising edge and falling edge. If the time between edges is less than the timeout, then there is an object in front of the ultrasonic sensor.