Show Posts
Pages: 1 2 3 [4] 5 6
46  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 20, 2009, 02:00:44 pm
You might be on to something with the value wrap-around. I would try changing the loop, outputting a couple of hundred values. See if that has an effect. I haven't got a board handy at the moment to try it on.

@pakrat: No input is unwelcome! Apart from 250 volts input at the fingertips. That was pretty unwelcome. smiley-wink

47  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 20, 2009, 12:24:11 pm
Hmm,

It's unlikely that a change to the library has caused an incompatibility  with the test sketch - the updated library zip only had a #include
case sensitivity issue fixed and a speed hike.

The fact that the card is recognised means that the hardware is probably OK. There is quite a lot of data being read to get that far. It never hurts to try different cards though.

Does the LED on port 13 flicker? That would indicate that an xfer is in progress. I it doesn't then it's probably a software issue.

48  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 20, 2009, 07:36:36 am
Hi Robert.

Does the file size ring true? Is it the same as the data file you copied on?

How is the card formatted? What capacity is it? Was it cleanly formatted before copying the file on there?

Can you try a different card??

C

49  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 18, 2009, 01:48:46 am
You're welcome! Glad it's working for you. As for progmem, just change the string comparison in the library code. You are allowed to do that smiley-wink

Charlie
50  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 16, 2009, 04:09:13 pm
Each time the sketch runs it overwrites what's on the card. You're seeing the accumulated results of a number of runs. Where the YYYYs appear, well that's just the zeroed buffer.

Sometimes my arduino resets if the serial port isn't set up correctly - remember that the rts line is used to reset the board automatically?

Unlikely in this case as you're seeing results on the card..

Is the reset interval fairly consistent? if so, how long is it?
If it appears to be random, what's the variability?
Does it fill the file each time?

Can you alter the demo sketch to write only for a fixed amount of iterations or time? Currently it tries to fill the target file on the card.

.. hang on you say you see the timing messages output to the serial port??? That's bizarre. I think this must be some kind of library glitch with the '328.

I might have to get myself one and give it some poking.

Charlie
51  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 16, 2009, 02:39:04 pm
IDE 14 should be ok.

As for the 328, there were some teething problems related to headers not being correct, I don't see anything in the readme indicating that this has been fixed, but at the same time it looks like it's only interrupt based code that would hang. You're seeing resets.

That could happen if there was excessive current draw.

You say you can write to the card - on the arduino or the PC? With a different sketch/library or does it write something then reboot?


C
52  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 16, 2009, 07:17:22 am
I'm glad to see SpencerB got a it working:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1239744008

53  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 15, 2009, 10:32:05 am
The use of this code is identical in windows and Linux.

The device print demo is a complete example of how to do this.

For the record,

1. Download the libraries linked above.
2. Unzip the folders as directed.
3. Copy the DevicePrintDemo.pde to a folder called DevicePrintDemo in your preferred storage location.
4. Start  the Arduino GUI.
5. Load the DevicePrintDemo sketch
6. Compile
7. Upload

If things don't pan out then start a procedure to try and track down where and how.

1. check your wiring
2. check the interface software by executing a tiny step at-a-time
3. repeat

54  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: April 15, 2009, 10:21:54 am
There are updated library sources available:

http://groups.google.com/group/micro-hacker/web/SMB_LIBRARIES_2009-04-15.zip?hl=en

These take care of the case sensitivity and SPI speed issues.

Unzip the contents into .\arduino-00xx\hardware\libraries
55  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: March 23, 2009, 03:36:20 pm
Thanks for the tips! I'll be sure to check out the lib.

C
56  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: March 23, 2009, 08:56:10 am
As pointed out in a previous mail there was indeed an error that stemmed from early tests with a variety of cards. Some didn't work in high speed mode, some did. I never got to the bottom of the problem and (ahem) never corrected the code smiley

The latest upload (with your case sensitivity fix) has the slow/fast code reinstated.

I haven't had a problem here - would you please let me know how you get on with it?

C
57  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: March 23, 2009, 07:38:21 am
Ahaaa.. I smell case sensitivity?

I'll amend these straight away. Thanks for pointing it out smiley

58  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: March 22, 2009, 03:43:01 am
Hi. Yes, this is the latest version of the lib. The latest code will always be linked from ArduinoNut. As for the compilation errors - they only occur in older IDEs. Are you sure you read the thread from the beginning??  smiley-wink

Quote
This library uses the newly-abstracted Print class available in Arduino-0012 and above.

Update your IDE and all will be good. You can keep the different versions side-by-side so you won't lose anything.

59  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: March 19, 2009, 03:14:48 pm
Hi there.

No, this is a completely different standard to MMC. Sorry! :-[


60  Forum 2005-2010 (read only) / Exhibition / Re: SD/MMC From the ground up on: March 18, 2009, 02:48:24 am
Hehe you're welcome! I hope the hog appreciates all this attention smiley-wink

Pages: 1 2 3 [4] 5 6