<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HC-SR04 Ultrasonic Sensor with Pd (How long does a bang last?)]]></title><description><![CDATA[<p>Hi,</p>
<p>I'm trying to use an HC-SR04 Ultrasonic sensor through arduino with Pure Data using Pduino and Standard Firmata. Pduino works perfectly and I am able to get data from many other sensors. This particular sensor is slightly different because it needs me to send a pulse of length 30 micro seconds at a time interval of more than 60 milliseconds to the trigger pin of the sensor, which triggers the ultrasonic waves from the transmitter. The receiver of the sensor measures the ultrasonic waves as they bounce back after reflecting from an external object to measure the distance.<br />
My problem is that I am trying to figure out how to give a 30 microsecond pulse as an output from Pd, which leads me to ask, how long does a 'Bang' last? Is there another way to set up a pulsing mechanism where I can control the time interval of the pulse? Something like the pulseIn() function in Arduino IDE?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11182/hc-sr04-ultrasonic-sensor-with-pd-how-long-does-a-bang-last</link><generator>RSS for Node</generator><lastBuildDate>Sun, 10 May 2026 08:11:21 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11182.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Dec 2017 15:16:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HC-SR04 Ultrasonic Sensor with Pd (How long does a bang last?) on Sat, 23 Dec 2017 15:16:16 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>I'm trying to use an HC-SR04 Ultrasonic sensor through arduino with Pure Data using Pduino and Standard Firmata. Pduino works perfectly and I am able to get data from many other sensors. This particular sensor is slightly different because it needs me to send a pulse of length 30 micro seconds at a time interval of more than 60 milliseconds to the trigger pin of the sensor, which triggers the ultrasonic waves from the transmitter. The receiver of the sensor measures the ultrasonic waves as they bounce back after reflecting from an external object to measure the distance.<br />
My problem is that I am trying to figure out how to give a 30 microsecond pulse as an output from Pd, which leads me to ask, how long does a 'Bang' last? Is there another way to set up a pulsing mechanism where I can control the time interval of the pulse? Something like the pulseIn() function in Arduino IDE?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11182/hc-sr04-ultrasonic-sensor-with-pd-how-long-does-a-bang-last</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11182/hc-sr04-ultrasonic-sensor-with-pd-how-long-does-a-bang-last</guid><dc:creator><![CDATA[Polygraphovich]]></dc:creator><pubDate>Sat, 23 Dec 2017 15:16:16 GMT</pubDate></item><item><title><![CDATA[Reply to HC-SR04 Ultrasonic Sensor with Pd (How long does a bang last?) on Sat, 23 Dec 2017 22:03:19 GMT]]></title><description><![CDATA[<p>Replying here as well. I think you're trying to re-invent the wheel here. Why not go with the [serial_print] abstraction both the ultra-sound sensor but also all your other stuff (you don't have to really write code for the Arduino), instead of trying to make something that has already been done?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11182/hc-sr04-ultrasonic-sensor-with-pd-how-long-does-a-bang-last/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11182/hc-sr04-ultrasonic-sensor-with-pd-how-long-does-a-bang-last/2</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Sat, 23 Dec 2017 22:03:19 GMT</pubDate></item></channel></rss>