# Help on programming ultrasonic sensor via raspberry pi

**URL:** <https://discourse.processing.org/t/help-on-programming-ultrasonic-sensor-via-raspberry-pi/3609>\
**Category:** Processing for Pi\
**Created:** [September 17, 2018, 6:49pm UTC](https://discourse.processing.org/t/help-on-programming-ultrasonic-sensor-via-raspberry-pi/3609 "2018-09-17T18:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reedoh](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@reedoh](https://discourse.processing.org/u/reedoh)\
**Post date:** [September 17, 2018, 6:49pm UTC](https://discourse.processing.org/t/help-on-programming-ultrasonic-sensor-via-raspberry-pi/3609/1 "2018-09-17T18:49:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gohai](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gohai/32/25_2.png) [@gohai](https://discourse.processing.org/u/gohai)\
**Post date:** [September 17, 2018, 9:43pm UTC](https://discourse.processing.org/t/help-on-programming-ultrasonic-sensor-via-raspberry-pi/3609/2 "2018-09-17T21:43:41Z")

</div>

@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.)
