# Lidar data reading from Node-Red

**URL:** <https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175>\
**Category:** General\
**Created:** [24 February 2020 09:19 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175 "2020-02-24T09:19:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Post date:** [24 February 2020 09:19 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/1 "2020-02-24T09:19:32Z")

</div>

Is there any Node-red palette to **decode** and **read**  **Lidar sensor data** directly?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [24 February 2020 09:24 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/2 "2020-02-24T09:24:39Z")

</div>

Have you searched on [flows.nodered.org](http://flows.nodered.org)?

I suspect it will depend on the specific device you are using and what interfaces it provides.

---

<div class="post-metadata">

**Author:** ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Post date:** [24 February 2020 09:29 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/3 "2020-02-24T09:29:01Z")

</div>

thanks tor the reply. yes but didnt find anything yet.  
I need some palette to decode those huge **hex** data to simple distance values.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 February 2020 12:35 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/4 "2020-02-24T12:35:46Z")

</div>

Is there a node.js package that you could use to get started?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [24 February 2020 13:31 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/5 "2020-02-24T13:31:39Z")

</div>

you might look at using a WeMos with the Lidar connected to it and something like espeasy to communicate between the WeMos and NR

---

<div class="post-metadata">

**Author:** ![Jude.Robise](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jude.robise/32/13970_2.png) [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Post date:** [25 February 2020 06:23 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/6 "2020-02-25T06:23:59Z")

</div>

Thanks for the replies. I will consider each solutions. Seems like no direct palette for this job to be done.

---

<div class="post-metadata">

**Author:** ![i8beef](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/i8beef/32/3161_2.png) [@i8beef](https://discourse.nodered.org/u/i8beef)\
**Post date:** [25 February 2020 17:56 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/7 "2020-02-25T17:56:16Z")

</div>

I did this with my Botvac once, but it just dumped basically an array of 365 distance values. Then I just built an SVG that plotted all of those distances out from a central point to get a basic shape... but it didn't really work well. To get a good map, you really needed positioning information in addition to the LIDAR to orient the points, as well as do elimination of sensor errors or you just get sort of a spikey ball shape...

i.e., actual interpreting the LIDAR data can give you a basic image, but the real work of getting a good map out of that is a lot more involved.

---

<div class="post-metadata">

**Author:** ![lenny1972](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lenny1972/32/13210_2.png) [@lenny1972](https://discourse.nodered.org/u/lenny1972)\
**Post date:** [25 February 2020 20:33 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/8 "2020-02-25T20:33:48Z")

</div>

I'm using this python library [https://github.com/pimoroni/VL53L0X-python](https://github.com/pimoroni/VL53L0X-python) invoked by an `EXEC` node.

I personally use a VL53L0X2 chip with really good results.

---

<div class="post-metadata">

**Author:** ![Mike7833](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@Mike7833](https://discourse.nodered.org/u/Mike7833)\
**Post date:** [25 February 2020 23:48 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/9 "2020-02-25T23:48:35Z")

</div>

I've used the TCP IN node once to get Lidar data and it quickly made NodeRed unresponsive. You'll have to use Thread Workers to do the number crunching separately and design a way to report the results to a NodeRed node.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 April 2020 23:48 UTC](https://discourse.nodered.org/t/lidar-data-reading-from-node-red/22175/10 "2020-04-25T23:48:43Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
