Thanks a lot for your time and your expertise.
I have tried to read the code you sent me.
I got the feeling that for the distance they use the gps data (Vector3f) and not Rangefinder value.
I need help for sure to be abble to get the distance above the water value and to be abble to control thruttle. If you have some time Im ready to offer you good wine or a dinner…
That’s awesome! I think i will try to buy one of these lidars and try it myself, because i think the VL53L1X lidars i bought earlier are most likely not working correctly .just wondering where to put all the antennas so they won’t intercept the laser signal…
Hi francis, I wanted to say thanks to you.
I tried taken example of your code and yes using “rangefinder:distance_cm_orient(25)”
gave me the distance ! I’m so glad.
Please what means the param “(25)” and more likely where can i discover all the definition of this kind of functions. I will try to start a new post. Regards Sam Sam_1.lua (284 Bytes)
Tried to build the sketch for the rp2040zero, using a clean install ArduinoIDE 2.2.1, and Raspberry Pi Pico/2040 by E.F.Philhower 3.4.1.
But the first got stuck on the mavlink library… ‘could not find mavlink.h’, but the install of the rest of the lib’s were ok… ended up unziping it in the .ino folder for the XV_Lidar app and got past that.
But then got stuck on analogWriteFrequency not declared in this scope in the xv11lidar.cpp, and hacking past that one i got trouble with the UART Serial2 call in the XV_Lidar app…
So i guess that i have f…d up some where on the way…
Are you using the pico/RP2040 board manager or the Mbed OS RP2040? (Saw some references about that regarding the uart issue )
Will any other xiaomi lidar work? I mean they are designed for different vacuum cleaners, but are their pinout different? Or will they work just fine? Just looking for something in my country with faster delivery.
The neato XV vacuum cleaner is the first version of the lidar that most of the software is wrote for but are getting expensive and hard to find. The xiaomi lidar is just the cheapest version I could find that was compatible going off of what I could find online.
There is the delta 2a, It needs totally different software but the one I ordered arrived faulty, so I have not had a chance to get one working.
I have no idea if other versions are compatible, unless you can find documentation online of its protocol there is no way of knowing other than testing.
it’s not a published protocol, I just spent a lot of time on google looking for any documentation on using vacuum lidars with Arduino and I found mention that this was compatible with the XV lidar code ibraries.
hmm… trying and trying… cleaned the install… reinstalled Arduino IDE environment again… installed “Arduino Mbed OS RP2040 Boards” v4.0.6, but still get “xv11lidar.cpp:34:3: error: ‘analogWriteFrequency’ was not declared in this scope
analogWriteFrequency(m_pwm_pin, 100);” From what i can tell the mbed librarys has a function ‘analogWriteFreq’ but not the requested function. I guess that indicates I stil have failed at something.
Where is analogWriteFrequency declared? (In what lib?)