Help on programming ultrasonic sensor via raspberry pi

I tried to interfac ultrasonic sensor with raspberry pi…but don’t knoiw how to compute it on processing …can anyone help

@reedoh There are various models of ultrasonic sensors out there - some communicate via serial communication (UART), as long as they are 3.3V-compatible they would be a good match. Others output an analog voltage, for which one would have to use a separate analog-to-digital converter (ADC), since the Pi is lacking one. (The examples of Processing’s Hardware I/O library contain code to interface two popular ADC chips. This could be leveraged for your project.)

2 Likes