Go to Post I think all drivers will be required to wear tights! - Mike Martus [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-12-2006, 13:32
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
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
__________________
Aren't signatures a bit outdated?
  #2   Spotlight this post!  
Unread 25-12-2006, 16:23
Binome's Avatar
Binome Binome is offline
Programmer/Electronics/CAD
AKA: Patrick
FRC #2273 (SHIM)
Team Role: Leadership
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Surrey,BC
Posts: 105
Binome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of lightBinome is a glorious beacon of light
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   Spotlight this post!  
Unread 25-12-2006, 16:23
Lil' Lavery Lil' Lavery is offline
TSIMFD
AKA: Sean Lavery
FRC #1712 (DAWGMA)
Team Role: Mentor
 
Join Date: Nov 2003
Rookie Year: 2003
Location: Philadelphia, PA
Posts: 6,636
Lil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond reputeLil' Lavery has a reputation beyond repute
Send a message via AIM to Lil' Lavery
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.
__________________
Being correct doesn't mean you don't have to explain yourself.
  #4   Spotlight this post!  
Unread 25-12-2006, 16:41
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
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   Spotlight this post!  
Unread 25-12-2006, 17:04
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: How would I interface a flash drive to the RC?

Quote:
Originally Posted by chris31 View Post
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.
That's the closest I was thinking of. I need to get myself a pic board...will probably do so tomorrow. That would be really nice. I would think the hardest part would be the filesystem. I might get lazy and just record raw data to it and make my own program for the PC to read it; I don't want to have to deal with FAT.

JBot
__________________
Aren't signatures a bit outdated?
  #6   Spotlight this post!  
Unread 25-12-2006, 17:05
lukevanoort lukevanoort is offline
in between teams
AKA: Luke Van Oort
no team
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 1,873
lukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond repute
Send a message via AIM to lukevanoort
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.
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain
  #7   Spotlight this post!  
Unread 25-12-2006, 17:55
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
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   Spotlight this post!  
Unread 25-12-2006, 18:00
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: How would I interface a flash drive to the RC?

Quote:
Originally Posted by Greg Marra View Post
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
Theres alot of info about your bot that that doesnt tell you. All your sensors that you have on your robot. None of that data gets outputted to the Dashboard.
  #9   Spotlight this post!  
Unread 25-12-2006, 18:04
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,031
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: How would I interface a flash drive to the RC?

Quote:
Originally Posted by chris31 View Post
Theres alot of info about your bot that that doesnt tell you. All your sensors that you have on your robot. None of that data gets outputted to the Dashboard.
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   Spotlight this post!  
Unread 25-12-2006, 18:15
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: How would I interface a flash drive to the RC?

Quote:
Originally Posted by Greg Marra View Post
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.
I didnt even think about that. However that does limit how much information you could get. The more I think about it though I cant see a reason for needing that much so putting it on the dashboard port would also work.
  #11   Spotlight this post!  
Unread 25-12-2006, 18:42
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
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.
__________________
http://www.mikesorrenti.com/
  #12   Spotlight this post!  
Unread 25-12-2006, 20:59
chris31 chris31 is offline
Team 2021 Captain
AKA: Chris Davidson
FRC #2021 (FA Robotics)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2006
Location: Atlanta, GA/ Fredericksburg,VA
Posts: 949
chris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond reputechris31 has a reputation beyond repute
Send a message via AIM to chris31
Re: How would I interface a flash drive to the RC?

Quote:
Originally Posted by Mike View Post
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.
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   Spotlight this post!  
Unread 25-12-2006, 21:14
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
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
__________________
Eric Haskins KC9JVH
  #14   Spotlight this post!  
Unread 31-01-2007, 10:44
jsprigg's Avatar
jsprigg jsprigg is offline
Mad Scientist
AKA: Jeff Sprigg
FRC #1547 (Where's Waldo?)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Ontario, Canada
Posts: 7
jsprigg is an unknown quantity at this point
Send a message via ICQ to jsprigg Send a message via AIM to jsprigg Send a message via Yahoo to jsprigg
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
__________________
Fresh Pancreas!
  #15   Spotlight this post!  
Unread 31-01-2007, 15:24
Mike Copioli's Avatar
Mike Copioli Mike Copioli is offline
You make it pretty We make it dance
no team (Retired(3539, 217))
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2001
Location: Romeo
Posts: 454
Mike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond reputeMike Copioli has a reputation beyond repute
Re: How would I interface a flash drive to the RC?

Quote:
Originally Posted by jsprigg View Post
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
Check out this Link:http://www.crosstheroadelectronics.c...cken%20AID.htm The product is in not in production yet. We will be using it on our bot this year. We will release it for next season. A picture will be available soon. You can use usb flash drives and SD. The final version will have USB device support allowing you to connect to your pc via USB cable. The device communicates with the RC via the program port. It allows the user to read and write to/from the media using an LCD interface or the R/C or a PC. No linux necessary. You simply send ASCII commands to create, read and write files and directories. It is great for changing auton on the fly, or setting pid gains without reflashing the R/C. It will sell for $199.99 about the same price as a Gumstick. No programming is required. It comes with updatable firmware that can be downloaded from our websight onto a USB or SD media device.
__________________
Mike Copioli
CTRE Hardware Engineer
http://www.ctr-electronics.com

Team 3539 The Byting Bull Dogs
2013 Michigan State Champions
Team 217 The Thunder Chickens
2006 World Champions
2008 World Champions
2009 Michigan State Champions
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 04:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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