XV11 LIDAR

Tell us about your projects. Update us regularly.
Post Reply
User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

XV11 LIDAR

Post by seaton » Sun Apr 19, 2015 1:11 pm

A couple of meetings ago I bought in some LIDAR units I purchased off eBay from the XV11 Vacuum bots, these units are a low cost full 360Deg range scanner using laser with a reported range of 3-5 Meters, update rate is 5Hz

I now have one hooked up to an Arduino ProMicro which will be my dedicated LIDAR controller for my up coming bot. The ProMicro is a cheap Chinese clone( $6 ) of the spark fun model (http://www.sparkfun.com/products/12640 )of the same name, works well once you work out how the drivers go. These are different from the standard Arduino as they're based on the ATmega32U4 chip which has USB on chip which = custom USB HID's not just the stock serial that Arduino normally comes with. Also has an additional Serial port on board.

I can't seem to attach a photo of the setup as forum attachment limit is not letting me grr btw what is our limit for attachments, from what I can gather seems to be about 150K I think this would be better if its raised a bit.

Speed of motor is PID controlled, however I'm still having issues with this and should be driving at 300RPM, possibly tuning and will be looking at this next, however is still proving data, but will not be accurate.
Screen Shot 2015-04-19 at 12.24.38 pm.png
Screen Shot 2015-04-19 at 12.24.38 pm.png (151.41 KiB) Viewed 12625 times


Full 360Deg Scan @1Deg Resolution Readings are Angle (Degrees), Distance (mm) and Reading Quality as reported back from the unit. I have no idea how this is used, from the looks of it the hight the number the better, in the screen shot below you can see some readings at 0, this because my hands are too close while I was taking screen shot on there keyboard.
Screen Shot 2015-04-19 at 12.25.05 pm.png
Screen Shot 2015-04-19 at 12.25.05 pm.png (154.17 KiB) Viewed 12625 times


Angle Range Data Showing Just 0 Deg, same goes here, my hand was right up close so is invalid reading. unit minimum range is a about 5-10cm out
Screen Shot 2015-04-19 at 12.29.20 pm.png
Screen Shot 2015-04-19 at 12.29.20 pm.png (154.2 KiB) Viewed 12625 times



Next steps, get PID working properly and design a housing for it.

...Stay tuned More to follow
Last edited by seaton on Tue Apr 28, 2015 3:38 pm, edited 6 times in total.

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Sun Apr 19, 2015 2:20 pm

Just a note that manually controlling the motor down to 300RPM from initial measurements seem reasonably accurate. I do some more tests once I get it mounted properly

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Sun Apr 19, 2015 6:26 pm

And here is its view of the corner of my room where my computer using a python test script I found.

Nice readings from the wall, and to top Left and bottom right you can see where the curtains are :)

Motor PID Speed control is working, look like I was on a bum steer with the values reporting back on the terminal screen are incorrect. The raw data values as seen on the screen below are correct and fluctuates between 300 and 290rpm, so some tuning is in order

Screen Shot 2015-04-19 at 6.23.43 pm.png
Screen Shot 2015-04-19 at 6.23.43 pm.png (18.29 KiB) Viewed 12619 times

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Sun Apr 19, 2015 7:00 pm

Motor Speed now fixed. was stupid mistake.....I had the motor going in the wrong direction Doh!. Now is pretty spot on at 300RPM and readings are actually better, which makes sense as need to be scanning in the right order, I'm surprised it works in both directions, I'm guessing the data will have more errors.

Sitting on my desk looking through my 3D printer to the corner of the wall

Screen Shot 2015-04-19 at 6.50.56 pm.png
Screen Shot 2015-04-19 at 6.50.56 pm.png (20.73 KiB) Viewed 12617 times
Last edited by seaton on Fri Apr 24, 2015 3:50 pm, edited 2 times in total.

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Sun Apr 19, 2015 7:09 pm

Ok have been getting a handle on the data quality field thats one of the fields transmitted by the unit

From the screen shots you can get an idea how it works. The higher the value the more power is received i.e. the stronger the Laser bounce

The Quality is represented by the yellow dots, while the Green dots are the measured distance, Red Ones I'm assuming are errors/bad readings

As a side note, you can see the window on the right side of the screen where I have the curtains partially open and where the window is setback, but as the blind is down its giving a strong reflection, while the glass itself would probably not be seen.

In this screen you see the wall I'm closest to so power returned is greater compared to the other wall where I'm further away.

Screen Shot 2015-04-19 at 6.58.12 pm.png
Screen Shot 2015-04-19 at 6.58.12 pm.png (19.41 KiB) Viewed 12617 times


And as I get closer, very strong.

Screen Shot 2015-04-19 at 6.58.24 pm.png
Screen Shot 2015-04-19 at 6.58.24 pm.png (20.33 KiB) Viewed 12617 times


And along the wall a bit near the curtains, laser gets absorbed/not reflecting as well and is all over the place

Screen Shot 2015-04-19 at 6.59.03 pm.png
Screen Shot 2015-04-19 at 6.59.03 pm.png (18.23 KiB) Viewed 12617 times


So this Data Quality field is more like a SNR.

Now everything seems to be doing as it should it's time to design a housing for it and print it up and get it connected to my RPi

parkview
Guru Maker
Posts: 603
Joined: Tue Jun 24, 2014 8:25 pm
Location: Busselton
Contact:

Re: XV11 LIDAR Working

Post by parkview » Mon Apr 20, 2015 4:47 pm

Nice one Stephen. I love the visual representation of the data. I guess the rest of the room is out side of the 2-5m range of the unit? What is the current draw of the Lidar unit?

-Paul

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Tue Apr 21, 2015 6:30 pm

parkview wrote:Nice one Stephen. I love the visual representation of the data. I guess the rest of the room is out side of the 2-5m range of the unit? What is the current draw of the Lidar unit?

-Paul


I'm up close to one of the walls and others are out of range.

Haven't measured the current draw as yet
Last edited by seaton on Tue Apr 28, 2015 8:11 am, edited 1 time in total.

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Mon Apr 27, 2015 11:35 pm

I've now designed a stand for it while I play around on the desk

Just waiting for it to print

Screen Shot 2015-04-27 at 11.33.20 pm.png
Screen Shot 2015-04-27 at 11.33.20 pm.png (126.16 KiB) Viewed 12605 times


With the LIDAR unit mounted.
Screen Shot 2015-04-27 at 11.33.07 pm.png
Screen Shot 2015-04-27 at 11.33.07 pm.png (138.28 KiB) Viewed 12605 times

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Tue Apr 28, 2015 10:47 am

Version 2

Screen Shot 2015-04-28 at 10.50.46 am.png
Screen Shot 2015-04-28 at 10.50.46 am.png (123.09 KiB) Viewed 12600 times

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Tue Apr 28, 2015 11:21 am

V3 With Lid with wiring exits, not shown is the DX H-Bridge Board that sits on the raised standoff in the middle that the motor of the LIDAR connects to.

The circuit board shown is a Spark fun Pro Micro, well a cheap chinese copy anyway and does the job, at $6 you can't go wrong :)

I've put all the files up on Thingiverse (http://www.thingiverse.com/thing:796866)

Screen Shot 2015-04-28 at 11.13.29 am.png
Screen Shot 2015-04-28 at 11.13.29 am.png (126.02 KiB) Viewed 12600 times


Screen Shot 2015-04-28 at 11.14.51 am.png
Screen Shot 2015-04-28 at 11.14.51 am.png (81.38 KiB) Viewed 12600 times


Screen Shot 2015-04-28 at 11.17.03 am.png
Screen Shot 2015-04-28 at 11.17.03 am.png (124.91 KiB) Viewed 12600 times

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR

Post by seaton » Tue Apr 28, 2015 11:21 pm

After a couple of iterations and some modifications that adds a status LED.

All printed up and waiting for hardware.

IMG_4003.JPG
IMG_4003.JPG (78.29 KiB) Viewed 12596 times
Last edited by seaton on Thu Apr 30, 2015 2:32 pm, edited 2 times in total.

parkview
Guru Maker
Posts: 603
Joined: Tue Jun 24, 2014 8:25 pm
Location: Busselton
Contact:

Re: XV11 LIDAR

Post by parkview » Wed Apr 29, 2015 9:30 pm

Did you design the LIDAR unit as well, or did you find that online? Silver colour - I love it. Who needs a lathe when you can just 3D print a look-a-like.

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR

Post by seaton » Thu Apr 30, 2015 2:37 pm

parkview wrote:Did you design the LIDAR unit as well, or did you find that online? Silver colour - I love it. Who needs a lathe when you can just 3D print a look-a-like.


The 3D Model of the Lidar I found online, Yes I love 3D prints :D

User avatar
seaton
Master Maker
Posts: 222
Joined: Tue Jun 24, 2014 11:41 am
Location: Bunbury, WA
Contact:

Re: XV11 LIDAR Working

Post by seaton » Thu Apr 30, 2015 7:25 pm

parkview wrote:Nice one Stephen. I love the visual representation of the data. I guess the rest of the room is out side of the 2-5m range of the unit? What is the current draw of the Lidar unit?

-Paul



Current Draw is about 200mA

Post Reply