![]() |
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 |
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
|
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.
|
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.
|
Re: How would I interface a flash drive to the RC?
Quote:
JBot |
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.
|
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 ;) |
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
|
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. |
Re: How would I interface a flash drive to the RC?
Quote:
|
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 |
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.
|
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 |
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
OK, I'll have to give some of these solutions a try.
Good point about the weight issues. I know every year we are at least .2lbs overweight...a little PIC board and flash drive are surely seen as expendable and will be ripped off ("Jake, are you sure we need that?"). I'll have to look at how big our EEPROM is; I might be able to just use that--even though using a PIC with an SD card or CF would be the funnest (wow, spell check isn't whining about the word "funnest") project. Thanks for all your suggestions, JBot |
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Actually, we (Cross the road electronics) have a device that will allow reading and writing to/from an SD card or USB thumb drive. Powered by the same technology in USB-Chicklet, it interfaces to the SD/USB device and provides a gateway to serial rs232 port (program port) on the RC. Not only will you be able to log data into FAT32 files, but will also be able to script autonomous and PID gain control. The script can be written on any laptop with a card reader or USB port. The device is called Chicken-AID (Autonomous Interface Device). Chicken-AID will require an RC driver similar to the camera but no where near as complicated.
Omar Zrien Chief Software Engineer Cross The Road Electronics Team 217, The Thunder Chickens |
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
That would be nice...I probably will copy the idea... JBot EDIT: Just out of curiosity (if you're going to reveal any of it) is it PIC based? I've gotta get me one of those! |
Re: How would I interface a flash drive to the RC?
Quote:
What is it about pre-built solutions that you don't like, and why wouldn't you use them on an FRC robot? Interpreting your statement above literally, I guess you'd buy raw stock and make your own screws? [EDIT: of course that's rhetorical. I know very well that you are part of a great team that would not let you waste time making screws.;) ] Many of us have made our own components for the fun of it, or to save money, or when similar COTS parts were not available. But I can't see a good reason for making something that you could buy as cheaply, especially during FRC build season. BTW, my day job is designing electric motors and electronic controllers to drive them. FRC rules prevent me from making custom motors and controllers for my team's robot, but even if they didn't I am sure there would be a better uses for my time during build season. Also (like many others here on CD), I have built custom wheels and gearboxes for FRC robots. But I'd only do it again if my team felt there was a clear advantage to be gained, one that could not be gained by using COTS components. |
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
I like some prebuilt solutions--Victors, PWM cables, the RC/OI, and the rest of the control system comes to mind. However, I like building my own devices for more than one reason. I like building my own devices because there is a higher sense of accomplishment--I built that vs. I bought that. Second, I learn a lot when I make these devices. I don't want a "black box" on the robot that I don't know even the slightest of its internals--NO! I want to know what goes on inside that box. And, since I think a PIC would be useful here, and our controller is PIC based, it might do me some good to get my feet wet with PIC programming. So I see it more beneficial to "roll my own" hardware solution on this. Plus, "rolling your own" is just so much cooler. Realistically, will I use something like this during build season? Probably not. What will I probably end up doing? hooking up my lappy to the dashboard port and logging on PWMs 7ish - 12. (BTW, are 13-16 still transmitted through the dashboard port even if I don't generate their signal from code? Are they even transmitted at all?) Quote:
So why don't I like prebuilt solutions? Because homebrewn is so much sweeter! (hey, I'm a dreamer:D ) JBot |
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
Quote:
And I've had a change of heart and might buy a Chicken-AID when they come out. Making my own would require a ridiculous amount of work that I really don't feel like doing... JBot |
Re: How would I interface a flash drive to the RC?
If you're planning to sue the monitor for development only, and not competition, then you should inquire in the National Instruments datalogger / LabView forum. Danny Diaz (who works for NI) can give you help in getting their 6009 logger connected to the robot.
We were a NI pilot team last year, and we spent about a week collecting data this way before shipping. We did find some glitches witht he aiming system, and modified the design to get around them. The effort to connect the logger to the robot is not that hgh, since it's all temporary, and there's almost nothing the logger cannot measure. Once you learn a little about LabView, you can make a logging system that's pretty sophisticated. This is how it's done in industry. Note that Danny & friends have just released a "robot simulator" that uses the 6009 to simulate your robot - so you can play with the code without having the robot physically present. This is big. Don |
Re: How would I interface a flash drive to the RC?
Quote:
Darn. It sounds really cool! But it looks like we missed the deadline. JBot |
Re: How would I interface a flash drive to the RC?
You can get a single-channel data logger for under $25, and a NI 6009 goes for about $250.
Don |
Re: How would I interface a flash drive to the RC?
Quote:
JBot |
Re: How would I interface a flash drive to the RC?
Quote:
And, of course, if you have any questions about how to do any DAQ with LabVIEW just fire off a question in our LabVIEW forum and we'd be happy to oblige! :D -Danny |
Re: How would I interface a flash drive to the RC?
They look nice! All white, compact and sleek. If NI decided to make one that supported a CompactFlash or some other type or portable media card I think I would have to buy one. Im on the fence as to buy one when I need a computer there since we dont always have a computer around when working (or its busy being used) but being able to log lots of info to a card and then read it later would be so nice. I guess if it really wanted to I could build something that read the info you guys send from the USB port to the computer but thats probably proprietary and would take awhile to reverse engineer.
|
Re: How would I interface a flash drive to the RC?
Quote:
Quote:
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
Quote:
Dan, I sent an email last night and was informed this morning that they extended the pilot program to our team. Thanks for the tip! :cool: JBot |
Re: How would I interface a flash drive to the RC?
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: How would I interface a flash drive to the RC?
Quote:
I'm probably going to end up looking in the Q&A for this... I'm not saying I'm right or wrong, because I very well might be wrong. JBot |
Re: How would I interface a flash drive to the RC?
Quote:
I'm not sure if he's done any further testing with it, but if you're interested (or anyone else for that matter) I can talk to him about it. I believe the cost of the board was no more than $50 |
Re: How would I interface a flash drive to the RC?
Quote:
Of course, you should feel free to prove me wrong. |
Re: How would I interface a flash drive to the RC?
Quote:
Like I said, I have yet to see it work. If it does, I'll post it. |
Re: How would I interface a flash drive to the RC?
Quote:
|
Re: How would I interface a flash drive to the RC?
Yuo could use something like this. $50 Canadian.
It's a serial (RS232) data logger, that has FAT16/FAT32 capability. Essentially, you could generate a standard readable text file on the unit, take out the SD card and read it in a PC/Mac. Gumstix is another idea (which someone mentioned earlier), but it will be more costly and probably more difficult to implement. I've got one (with a few of the modules :-))... and it's fun to play around with - but will probably be frustrating to those not familiar with linux. Good luck! - Jeff |
Re: How would I interface a flash drive to the RC?
Quote:
|
| All times are GMT -5. The time now is 04:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi