<?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[Topics tagged with ultrasonic]]></title><description><![CDATA[A list of topics that have been tagged with ultrasonic]]></description><link>http://community.onion.io/tags/ultrasonic</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 21:26:58 GMT</lastBuildDate><atom:link href="http://community.onion.io/tags/ultrasonic.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 24 Jul 2022 22:04:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[jsn-sr04t v2 ultrasonic sensor working on omega2 via node red]]></title><description><![CDATA[Hi, could you help me to install the serial port on node-red?
I'm trying to install it using Node-Red 1.29 from the palette and I have an error.
Error:
2022-07-24T22:01:28.311Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-node-serialport@1.0.1
2022-07-24T22:02:22.730Z [out]
2022-07-24T22:02:22.730Z [out] &gt; @serialport/bindings-cpp@10.7.0 install /root/.node-red/node_modules/@serialport/bindings-cpp
2022-07-24T22:02:22.730Z [out] &gt; node-gyp-build
2022-07-24T22:02:22.730Z [out]
2022-07-24T22:03:08.526Z [err] gyp
2022-07-24T22:03:08.540Z [err] ERR! UNCAUGHT EXCEPTION
2022-07-24T22:03:08.542Z [err] gyp
2022-07-24T22:03:08.544Z [err]
2022-07-24T22:03:08.546Z [err] ERR!
2022-07-24T22:03:08.550Z [err]  stack TypeError: Object.fromEntries is not a function
2022-07-24T22:03:08.552Z [err] gyp
2022-07-24T22:03:08.556Z [err]  ERR! stack     at Object.&lt;anonymous&gt; (/usr/lib/node_modules/node-gyp/node_modules/@npmcli/fs/lib/fs.js:6:23)
2022-07-24T22:03:08.556Z [err] gyp
2022-07-24T22:03:08.558Z [err]
2022-07-24T22:03:08.560Z [err] ERR!
2022-07-24T22:03:08.570Z [err]  stack     at Module._compile (module.js:652:30)
2022-07-24T22:03:08.570Z [err] gyp ERR! stack     at Object.Module._extensions..js (module.js:663:10)
2022-07-24T22:03:08.570Z [err] gyp ERR! stack     at Module.load (module.js:565:32)
2022-07-24T22:03:08.570Z [err] gyp
2022-07-24T22:03:08.572Z [err]
2022-07-24T22:03:08.574Z [err] ERR!
2022-07-24T22:03:08.576Z [err]
2022-07-24T22:03:08.591Z [err] stack     at tryModuleLoad (module.js:505:12)
2022-07-24T22:03:08.591Z [err] gyp ERR! stack     at Function.Module._load (module.js:497:3)
2022-07-24T22:03:08.591Z [err] gyp ERR! stack     at Module.require (module.js:596:17)
2022-07-24T22:03:08.591Z [err] gyp ERR! stack     at require (internal/module.js:11:18)
2022-07-24T22:03:08.593Z [err] gyp
2022-07-24T22:03:08.595Z [err]
2022-07-24T22:03:08.598Z [err] ERR!
2022-07-24T22:03:08.601Z [err]  stack
2022-07-24T22:03:08.610Z [err]      at Object.&lt;anonymous&gt; (/usr/lib/node_modules/node-gyp/node_modules/@npmcli/fs/lib/index.js:2:6)
2022-07-24T22:03:08.610Z [err] gyp ERR! stack     at Module._compile (module.js:652:30)
2022-07-24T22:03:08.610Z [err] gyp
2022-07-24T22:03:08.612Z [err] ERR!
2022-07-24T22:03:08.614Z [err]
2022-07-24T22:03:08.616Z [err] System
2022-07-24T22:03:08.630Z [err]  Linux 4.14.81
2022-07-24T22:03:08.630Z [err] gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2022-07-24T22:03:08.630Z [err] gyp ERR! cwd /root/.node-red/node_modules/@serialport/bindings-cpp
2022-07-24T22:03:08.630Z [err] gyp ERR! node -v v8.10.0
2022-07-24T22:03:08.630Z [err] gyp
2022-07-24T22:03:08.632Z [err]
2022-07-24T22:03:08.634Z [err] ERR!
2022-07-24T22:03:08.636Z [err]
2022-07-24T22:03:08.646Z [err] node-gyp -v v9.1.0
2022-07-24T22:03:08.646Z [err] gyp ERR! Node-gyp failed to build your package.
2022-07-24T22:03:08.646Z [err] gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.
2022-07-24T22:03:10.401Z [err] npm
2022-07-24T22:03:10.403Z [err]
2022-07-24T22:03:10.406Z [err] ERR!
2022-07-24T22:03:10.410Z [err]  code ELIFECYCLE
2022-07-24T22:03:10.415Z [err] npm
2022-07-24T22:03:10.417Z [err]
2022-07-24T22:03:10.420Z [err] ERR!
2022-07-24T22:03:10.422Z [err]
2022-07-24T22:03:10.430Z [err] errno 7
2022-07-24T22:03:10.446Z [err] npm
2022-07-24T22:03:10.449Z [err]
2022-07-24T22:03:10.451Z [err] ERR!
2022-07-24T22:03:10.460Z [err]  @serialport/bindings-cpp@10.7.0 install: node-gyp-build
2022-07-24T22:03:10.460Z [err] npm ERR! Exit status 7
2022-07-24T22:03:10.470Z [err] npm ERR!
2022-07-24T22:03:10.470Z [err] npm ERR! Failed at the @serialport/bindings-cpp@10.7.0 install script.
2022-07-24T22:03:10.470Z [err] npm ERR!
2022-07-24T22:03:10.472Z [err]  This is probably not a problem with npm. There is likely additional logging output above.
2022-07-24T22:03:10.593Z [err]
2022-07-24T22:03:10.597Z [err] npm
2022-07-24T22:03:10.602Z [err]  ERR! A complete log of this run can be found in:
2022-07-24T22:03:10.602Z [err] npm ERR!     /.npm/_logs/2022-07-24T22_03_10_537Z-debug.log
2022-07-24T22:03:10.644Z rc=7
]]></description><link>http://community.onion.io/topic/3863/jsn-sr04t-v2-ultrasonic-sensor-working-on-omega2-via-node-red</link><guid isPermaLink="true">http://community.onion.io/topic/3863/jsn-sr04t-v2-ultrasonic-sensor-working-on-omega2-via-node-red</guid><dc:creator><![CDATA[haysar]]></dc:creator><pubDate>Sun, 24 Jul 2022 22:04:12 GMT</pubDate></item><item><title><![CDATA[Ultrasonic sensor on omega2 via node red]]></title><description><![CDATA[@Nate hello, I'm working these days to end my project, could you check my work?
please help me!!
https://discourse.nodered.org/t/jsn-sr04t-serial-on-node-red-help/18272
]]></description><link>http://community.onion.io/topic/3859/ultrasonic-sensor-on-omega2-via-node-red</link><guid isPermaLink="true">http://community.onion.io/topic/3859/ultrasonic-sensor-on-omega2-via-node-red</guid><dc:creator><![CDATA[David Ivan Azcarate]]></dc:creator><pubDate>Fri, 22 Nov 2019 07:48:38 GMT</pubDate></item><item><title><![CDATA[connect Ultrasonic Sensor HC-SR04 using r-pi-usonic package]]></title><description><![CDATA[@Allison-K Unfortunately Arduino and similar microcontroller approaches really aren't portable to a multitasking platform like the Omega, Pi, C.H.I.P or similar.
This is because the task scheduler introduces substantially latency in the running of ordinary programs, often up to 20 ms or so.
Sound moves at approximately 344 meters per second, so it covers 344 mm in one millisecond.  Given the roundtrip timing, a 1 ms timing error woud be half that: 172 mm or about 6 3/4 inches, and the timing uncertainty may well be more than this.
Viable approaches would need to do one of

Use a hardware timer
Use kernel mode code
Use an interrupt (GPIO interrupts to userspace are not currently enabled)
Use some continous streaming data interface, for example the I2S audio which can capture at a regular rate and have it capture both the trigger and echo, then measure the elapsed time as the number of samples recorded between these events
Use a helper MCU like an ATtiny or a full Arduino to take the measurement and report the result

]]></description><link>http://community.onion.io/topic/2427/connect-ultrasonic-sensor-hc-sr04-using-r-pi-usonic-package</link><guid isPermaLink="true">http://community.onion.io/topic/2427/connect-ultrasonic-sensor-hc-sr04-using-r-pi-usonic-package</guid><dc:creator><![CDATA[Chris Stratton]]></dc:creator><pubDate>Wed, 18 Oct 2017 02:56:14 GMT</pubDate></item><item><title><![CDATA[How to connect Ultrasonic Sensor HC-SR04]]></title><description><![CDATA[Probably late answer but if somebody is searching like I was 
One of the solution is to use HC-SR04+ version (support 3.3v)
I have tested it on my Omega2+ and it works fine. Or if you already have 5v version just use resistors (plenty examples on net). I played little bit with c++ using Patryk27 Omega2-GPIO library. You can check my code and compiled app at github:. I'm still playing with this script.
]]></description><link>http://community.onion.io/topic/2167/how-to-connect-ultrasonic-sensor-hc-sr04</link><guid isPermaLink="true">http://community.onion.io/topic/2167/how-to-connect-ultrasonic-sensor-hc-sr04</guid><dc:creator><![CDATA[Kresimir Kokanovic]]></dc:creator><pubDate>Tue, 12 Dec 2017 13:14:17 GMT</pubDate></item><item><title><![CDATA[Ultrasonic Sensor]]></title><description><![CDATA[<p dir="auto">Anyone knows what is a good ultrasonic sensor for the Omega Onion?</p>
]]></description><link>http://community.onion.io/topic/1305/ultrasonic-sensor</link><guid isPermaLink="true">http://community.onion.io/topic/1305/ultrasonic-sensor</guid><dc:creator><![CDATA[B T]]></dc:creator><pubDate>Sun, 15 Jan 2017 07:22:57 GMT</pubDate></item></channel></rss>