|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
How would I interface a flash drive to the RC?
I know it's a crazy idea, but I'm getting frustrated about having bugs on the field that don't show their ugly faces in testing, and I believe a thumbdrive counts as a COTS item. I would like to save a log file to the drive; saving the printfs maybe for the entire match. And I'm interested in how the transitions happen at the beginning of the match (is it Disabled -> Auton -> human control or is it Disabled and Auton -> Auton -> human control). I would like to log all that data to a flash drive. Now, I have no idea how to do that. I only got the idea because it is a universal serial bus drive and therefore should work...somehow...
If anyone has any ideas on how to do this, or even any hints, I would be most grateful to hear them. Thanks JBot |
|
#2
|
||||
|
||||
|
Re: How would I interface a flash drive to the RC?
You could never interface a USB thumbdrive directly to the RC, but you COULD write some software for your PC and run it off the dashboard port. You'd probably end up writing a terminal application that saves its output into a file
|
|
#3
|
||||
|
||||
|
Re: How would I interface a flash drive to the RC?
I'm not a programmer, so I wouldn't be positive about this, but I believe that 116 used a laptop connected to the Operator Interface to log data that the robot transmitted.
|
|
#4
|
|||
|
|||
|
Re: How would I interface a flash drive to the RC?
I have been working on a project similar to what you want. I plan have an external PIC that will log all sort of information to a microSD card which you could then put into your computer and read the log of.
|
|
#5
|
|||||
|
|||||
|
Re: How would I interface a flash drive to the RC?
Quote:
JBot |
|
#6
|
||||
|
||||
|
Re: How would I interface a flash drive to the RC?
Gumstix (gumstixes? stixi?) have USB and serial support. I imagine one could read data sent to it from one of the RC's serial ports and then write it to a flash drive.
|
|
#7
|
|||||
|
|||||
|
Re: How would I interface a flash drive to the RC?
I highly would recommend simply doing it using the Dashboard port on the OI. It's really an underutilized port, and if you search the whitepapers section, most of the work is already done for you. You'd have the data get recorded straight to your laptop, and then you can just parse it however you feel.
And it doesn't count towards your weight limit or total cost ![]() |
|
#8
|
|||
|
|||
|
Re: How would I interface a flash drive to the RC?
Quote:
|
|
#9
|
|||||
|
|||||
|
Re: How would I interface a flash drive to the RC?
Every single PWM variable gets sent back to the Dashboard. Are you using every single PWM variable to drive motors? There's a whole bunch of bytes you can use to send data back, on top of I think four bytes that it gives you already specifically for dashboard information.
|
|
#10
|
|||
|
|||
|
Re: How would I interface a flash drive to the RC?
Quote:
|
|
#11
|
|||||
|
|||||
|
Re: How would I interface a flash drive to the RC?
Dashboard? Pfft.
Why take the easy road, when you get to do all the fun engineering on the hard one? Logging serial data to a CF card seems like a fun project. It'd be a pretty universal and useful thing too, I'd think. |
|
#12
|
|||
|
|||
|
Re: How would I interface a flash drive to the RC?
I think if it uses the dashboard port that will be more user freindly. So once I finish the design it will be something thats easy and more people will want to try. However some new PICs I ordered are still in Asia and the rest of the cool stuff I ordered is backordered. Hopefully though ill have a working demo up soon.
|
|
#13
|
||||
|
||||
|
Re: How would I interface a flash drive to the RC?
look at these
http://www.sparkfun.com/commerce/pro...oducts_id=7955 http://chipdos.com/ hope this helps |
|
#14
|
||||
|
||||
|
Re: How would I interface a flash drive to the RC?
An offboard PIC or AVR with an attached dataflash module could easily do it, AVRs can be entirely self-contained so all you'd need is a serial connector, the AVR and the flash memory, I'm not sure if you can draw enough power right off the serial port, but you should be able to draw from a few PWMs to power it, it'd be a nice project, AVRs can be programmed in assembly, C, BASIC and a few other languages.
|
|
#15
|
|||
|
|||
|
Re: How would I interface a flash drive to the RC?
If you want to roll your own application/software, www.microchip.com sells a USB evaluation board:
DM163025 - PICDEM FS USB and the MMC/SD daughter board that can be used with the above board. AC164122 - PICtail Daughter Board for SD & MMC Cards I've had both for almost a year, but not enough time to test the data logging software out. A pre-canned serial data logger is also available like the Acumen DataBridge SDR-OEM-SF. It records all serial port traffic onto SD but is pricey. I'd like a totally passive data logger that I don't have to send commands to in order to get it to log/save the data. For debugging purposes I need not only all the raw sensor data and outputs, but intermediate steps of the code in processing the data. Its usually one of the intermediate steps that is messing up and causing problems. Bud |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you bypass the Operator Interface? | jskene | Programming | 4 | 31-05-2006 17:50 |
| MPLAB on USB flash drive | ultramrw21 | Programming | 3 | 25-01-2005 21:20 |
| how would U determine the exact speed of your robot? | HolyMasamune | General Forum | 4 | 29-01-2003 09:44 |
| how do u connect the battery to the robot interface? | chrisw | Technical Discussion | 1 | 10-01-2002 16:41 |
| about how Drive Train push the robot... shouldn't the force accelerate the robot? | Ken Leung | Technical Discussion | 12 | 26-11-2001 09:39 |