Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using USB Sensors? (http://www.chiefdelphi.com/forums/showthread.php?t=128963)

marshall 10-12-2014 08:16

Re: Using USB Sensors?
 
Quote:

Originally Posted by 3175student17 (Post 1412657)
Does anyone know how hard connecting an arduino with the native usb connector and communicating using serial 9600 would be in order to replace using an ethernet shield, or would it be easier to simply use the shield?

Beta testing team here. The RoboRIO has *some* support for USB<->Serial devices, like the Arduino and other FTDI devices. You should not need an ethernet shield to do this. Be careful about powering the Arduino over the USB on the RoboRIO though. I don't think it will let you pull more than 500mA (USB Spec) so no massively long blinky LED chains.

adciv 10-12-2014 15:01

Re: Using USB Sensors?
 
You can install additional drivers on the RoboRIO (provided it supports Linux) so software is generally not an issue. For USB, National Instruments does have a "durable" USB cable they were showing at St. Louis this year.

http://sine.ni.com/nips/cds/view/p/lang/en/nid/210962

Additionally, you could try using direct RS-232 or I2C with the arduino.

AlexanderTheOK 10-12-2014 15:28

Re: Using USB Sensors?
 
You could always attempt something similar using a camera pointed at the floor. NI provides some pretty easy to use optical flow VIs.

Dale 10-12-2014 17:42

Re: Using USB Sensors?
 
Quote:

You could always attempt something similar using a camera pointed at the floor. NI provides some pretty easy to use optical flow VIs.
Alas a standard webcam won't have nearly the frame rate necessary to keep up with a robot moving at 15ft/s. That's why mice have always been interesting since the new gaming mice have some pretty significant specialized processing power on-board. It is the case that some optics magic will need to take place in order to not have the mouse dragging on the carpet.

jhersh 11-12-2014 04:00

Re: Using USB Sensors?
 
Quote:

Originally Posted by marshall (Post 1412658)
Be careful about powering the Arduino over the USB on the RoboRIO though. I don't think it will let you pull more than 500mA (USB Spec) so no massively long blinky LED chains.

500 mA is the USB 2.0 spec'd max current for Vbus. You should not generally expect more than that from that standard.

That said, the roboRIO is designed to be able to operate with USB 3.0 cameras (at USB 2.0 data rates), but that means roboRIO can source 900 mA per host port so that those cameras function reliably.


All times are GMT -5. The time now is 22:05.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi