0x416c6578 / 0x416c6578.github.io

0x416c6578.github.io
1 stars 0 forks source link

I have the motor start and stop codes #2

Open beehphy opened 2 years ago

beehphy commented 2 years ago

I got hold of a deebot 900, which uses the LDS-006. I have a Saleae and snooped the bus. connected at 115200, the signal to start and stop the built in motor are: start: "startlds$" stop: "stoplds$" send the string between the quotes, no line ending is needed. I'll be working on an Arduino library implementation, but I gained insight from your project and thought I'd return the favor. cheers!

beehphy commented 2 years ago

I created an Arduino sketch starting from the premise of 22byte packets starting with FA, I tried to do some simple packet alignment and outputting to the serial terminal. Occasionally noise will cause sync to be lost. Couple take away's; I feel like the timing of bytes seen in the scans contradicts this assumed packet structure. You can see the packet structure change once the sensor gets up to speed, leading me to think each packet has 4 distance measurements. Attached are some output text capture of the Arduino and Saelee scan captures taken at the same time. You can grab Saleae SW and analyze the recordings free. https://www.saleae.com/downloads/ 3 scans: 1-constant distance target arm ~150mm, 2-in a box surrounded by 4 strait walls, 3-blinded by electrical tape, effectively seeing infinity I also attached the capture of the sensor operating in the deebot900 in my living room, from power on to beginning a cleaning operation. I'm going to be distracted a moment, please enjoy my findings. LDS-006_Lidar_scans.zip

0x416c6578 commented 2 years ago

wow that looks awesome! i had a feeling the motor start stuff was very simple, but i didn't have access to a vacuum to probe. when i have some time over the summer ill definitely restart this project and update it with all the info people have sent over the past few months. cheers for the help!

rdrunner69 commented 1 year ago

I got a few LDS-006 also from a recent Ali Express tour.

Do you have any more progress on this? I would love to use these devices in my tinkering also...

0x416c6578 commented 1 year ago

hey, other commitments mean I haven't really worked on this. I am sure that the binary format is shared across most of these distance sensors, so other projects should work for interfacing. In terms of a custom software, assuming the format of data coming from the rotating head is the same as is sent out via serial, it wouldn't be too hard to copy over the parsing code to that microcontroller (I think there are two hardware serial ports, if not soft serial should suffice). I do have another variant of this LDS sensor (from a xiaomi vacuum I think), so in the future I may start this project up again.