# Photon PulseIn Function

**URL:** <https://community.particle.io/t/photon-pulsein-function/13638>\
**Category:** Troubleshooting\
**Created:** [July 23, 2015, 2:30am UTC](https://community.particle.io/t/photon-pulsein-function/13638 "2015-07-23T02:30:49Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![BDub](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bdub/32/5137_2.png) [@BDub](https://community.particle.io/u/BDub)\
**Post date:** [October 25, 2015, 5:35pm UTC](https://community.particle.io/t/photon-pulsein-function/13638/21 "2015-10-25T17:35:30Z")

</div>

@tcb2 Yep, confirmed working 😄

> [@Simple Photon Ping Sensor (HC-SR04)](https://community.particle.io/t/simple-photon-ping-sensor-hc-sr04/16737):
>
> Simple Ping Sensor (HC-SR04) [image] Uses new pulseIn() function available in v0.4.7 firmware [https://docs.particle.io/reference/firmware/photon/#pulsein-](https://docs.particle.io/reference/firmware/photon/#pulsein-) Code (Photon/Core/P1/Electron Compatible) (see below) Connections Particle ~ HC-SR04 GND - GND VIN - VCC D2 - TRIG D6 - ECHO Visual Output 2:## 3:### 3:### 3:### 3:### 4:#### 5:##### 5:##### 6:###### 7:####### 8:######## 8:######## 10:########## 10:########## 11:########### 12:############ 12:###########…

---

_[View the full topic](https://community.particle.io/t/photon-pulsein-function/13638)._
