Go to Post You miss 100% of the shots you don't take. - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 03-01-2007, 08:27
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: File System for the RC

The link isnt working do to an extra ")" at the end of the link. If you got to http://www.ladyada.net/make/minty/ it works.
  #2   Spotlight this post!  
Unread 03-01-2007, 23:07
JimGRobot JimGRobot is offline
Registered User
AKA: Jim
FRC #1388 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Nov 2006
Rookie Year: 2005
Location: Arroyo Grande, CA
Posts: 29
JimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really nice
Re: File System for the RC

Quote:
Originally Posted by EHaskins View Post
Did you get the SPI working or are you just using an rs232-TTL converter?
My testing has been solely with the SPI port. I built an RS-232 to SPI bridge using an SX-48 microcontroller development board that echos input from the serial port out to the SPI port, and the reverse as well.

Doing this makes for some funky operation from the terminal, but it really boils down to typing an extra space character to get the DOS prompt back from the module. It ignores the extra spaces, so no harm done... I also wrote some testing code that talks SPI directly to the thing.

I have some more information and a link to the test program here, http://www.techranch.com/blog/, and will be posting more info soon...

One thing about SPI on the RC. There is a built-in SPI port on the PIC chip, but I think it is used to talk to the master processor. The test code I wrote just bit-twiddles some port pins to generate the clock signals. SPI can use as few as 3 pins, but this one uses 5; data out, data in, clock, chip select, and busy. There are 2 others available, data direction and reset. I am currently resetting the chip from a port pin, but I doubt that I really need to do this. The data direction signal would make communication with the module more predictable, but I probably won't use it.

I will be posting some more sample code on the blog...

I hope this helps.

Thanks,
Jim
  #3   Spotlight this post!  
Unread 03-01-2007, 23:31
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: 453
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: File System for the RC

Hey guys, it sounds like you are trying to do exactly what we did last year with Chicken AID. The only difference is we used a USB thumb or an SD card. We used a development board that we created to prototype Chicken AID. The Board uses SPI to communicate to the SD and USB host. We use USART to communicate to the R/C the board has a built in RS232 converter.
Here is the link http://www.crosstheroadelectronics.com/uPICFAT.htm
The development system is around $150. But it is a complete, out of the box solution. It includes the board, the plug in with examples, it also comes with a power supply, LCD and serial cable.

Mike Copioli
CTRE

Last edited by Mike Copioli : 03-01-2007 at 23:32. Reason: change
  #4   Spotlight this post!  
Unread 04-01-2007, 11:19
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: File System for the RC

Can you post the code you have finished?
__________________
Eric Haskins KC9JVH
  #5   Spotlight this post!  
Unread 04-01-2007, 12:19
JimGRobot JimGRobot is offline
Registered User
AKA: Jim
FRC #1388 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Nov 2006
Rookie Year: 2005
Location: Arroyo Grande, CA
Posts: 29
JimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really nice
Re: File System for the RC

You can read more about my work here:

http://www.techranch.com/blog/

And you can download my current test file from here:

http://www.techranch.com/Files/SPI_Test.c
  #6   Spotlight this post!  
Unread 03-01-2007, 22:51
JimGRobot JimGRobot is offline
Registered User
AKA: Jim
FRC #1388 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Nov 2006
Rookie Year: 2005
Location: Arroyo Grande, CA
Posts: 29
JimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really niceJimGRobot is just really nice
Re: File System for the RC

Quote:
Originally Posted by Bharat Nain View Post
If you don't mind, what are it's annoying qualities and good ones?
The good qualities in general are its low cost and basic ease to use. I think it is very cool that we can drop a file system on the RC to make autonomous ops better.

The annoying qualities are that it runs on 3.3 VDC instead of 5 VDC, and that the commands must be lower case and the file names must be upper case, etc. One catch using the SPI interface is that you have to send meaningless bytes to have it send data back to you, but that is the case with any SPI device.

Access to file data is very primitive, and I haven't had time to write some higher level code for accessing the data, but considering the simple task we have of simply reading from a file, it should work OK.

I have some more information here, http://www.techranch.com/blog/, and will be posting more...

Thanks,
Jim
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
PHP file system stuff Ryan M. Website Design/Showcase 3 06-12-2004 07:36
Standardized Scouting System/File Format phrontist General Forum 15 18-04-2004 17:05
Dxf File for the First logo God? Inventor 3 23-01-2003 11:08
Need Dxf file for the first logo Kautz Inventor 3 05-12-2002 16:17


All times are GMT -5. The time now is 01:20.

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