Go to Post I also like how the FTC folks are able to get involved with the FRC process this year, but it's always a bit of a let down when you're told you can't launch things into the air. - s_forbes [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,030
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,030
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 25-12-2006, 23:06
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
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.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #15   Spotlight this post!  
Unread 26-12-2006, 16:34
dcbrown dcbrown is offline
Registered User
AKA: Bud
no team
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Hollis,NH
Posts: 236
dcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud ofdcbrown has much to be proud of
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
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 05:36.

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