Communicating with Hokuyo LiDAR using Arduino and Vinculum USB Host Controller

Got a successful comm between Arduino Mega 2560 and Hokuyo URG-04LX-UG01 LiDAR using a Vinculum VDIP1 USB host controller.........

The code sends VV command to Hokuyo LiDAR, and receives response @ 9600 baud. Other commands can be implemented in similar fashion. Advantages over USB Host Shield from Circuits@Home with SPI interface:

1) Much simpler hardware and firmware complexity for interfacing USB slave devices like Hokuyo LiDAR

2) No clashes with any existing or new devices using SPI interface

3) FTDI chip takes of additional drivers for USB host control mode....saves lot of arduino processing as compared to SPI interface drivers.....

Arduino sketch: hokuyo.ino

Hardware Interfacing: interface.jpg

VDIP Operation Mode: Command Mode

Other useful docs: 

- VDIP1 Vinculum VNC1L Module Datasheet

- Vinculum Firmware User Manual


Useful pins on VDIP1 module:

- Power Pins ( Vcc (5V), GND)

- CTS Pin (AD3)

- RTS Pin (AD2)

- RX Pin (AD1)

- TX Pin (AD0)

Views: 2264

Attachments:

Reply to This

Replies to This Discussion

Nice. The new ARM based Arduino Due that is going to be released soon, comes with USB host and should be better suited for your needs.

Oh, and please send me the LiDAR when you have finished playing with it. :)

The "Arduino Due" should probably be called "Arduino Too Late".

A lot of Arduino code is already running fine on STM32 platforms, so there's a good chance it will never really catch on.

lol...

ARM based, with USB?  That should work!  Can't wait too long, 'tho. 

Yeah, I'm just hoping I can hang on to it for a while...

I don't suppose we have an Arduino lib for the LiDAR anywhere?  Just simple obstacle avoidance?

Alan

I can always toss the case, just wondering if contributed much to the price.  Amazon can be high at times.

Does it come with an OS?  I've heard I can put the OS on a thumb drive.  Just haven't tried it.  Our local robotics club has several members running ROS.  I just need to research a bit!  Rather buy it from Compulab, They say as low as $195, does that get you much?

Alan

u can buy it with or without sd card.....compulab charges additional $10 for loading ubuntu on it....they'll be happy to give a detailed price quote if u request for it....amazon won't give it with pre-loaded OS.....

we got fitpc2 with sd card and ubuntu loaded (rich spoilt brats :)); the second one (fitpc) frm amazon somehow didn't boot frm the sd card we already had.....had to make a bootable pen drive.....i'm sure it can be done both ways...

SD card could work.  Nice that they supply Ubuntu on it for small price.  I could go for that!  Guess I'll have to RFQ, I didn't see a listed price on Compulab.  What's a pen drive?  Thumb drive?  That's OK too.

How about 2.5" SATA?  Maybe a Robomagellan 'bot would shake it up too much. 

Alan

Requested quote.

Anyone running ROS on it to do navigation?

Alan

We ran full-fledged ubuntu 10.04 with ROS with navigation and obstacle avoidance algorithms, and some color detection algorithms too on fitpc....here's our project page: 

https://sites.google.com/site/mrsdproject/

That's what I'd like to do.  I'm just getting started.  Need to learn ROS, Ubuntu!

Is there an example available like yours?  I suppose I'll have to write nodes for my Blackfin camera, 9DOF IMU and RoboClaw at least.  How hard is that?

Thanks,

Alan

To be honest, it takes some time to learn; but its worth the effort. u shd be able to find examples u need online....check out the tutorials on www.ros.org....good place to start...

Thanks for the URL.

I just got a reply for my RFQ, they sent me URLs to a Direct Order page.

Looks like they can load Linux Mint.  What's that?  Probably not what I want?

Thanks,

Alan

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service