Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: SD Card problem
bolo16
Newbie
Posts: 10
Permalink
Post SD Card problem
on: January 21, 2016, 23:22
Quote

Hi
I have a small problem with start up POLARGRAPH with SD card. Configuration: Arduino MEGA with Adafruit Motorshield 1 (v1.2), than I have 2x NEMA17 motors and finally SD card shield (something like LC studio). I have the SD card shield connected to the MEGA controllel, and it is working - I have check it with another sketch that is using SD card. Problem is that, I can not to make SD card active with POLARGRAPH sketch. (polargraph_server_a1). Please let me know, if I have to make some changes in sketch only in the part as follow:

// 1. Specify what kind of controller board you are using
// ======================================================
// UNO or MEGA. Uncomment the line for the kind of board you have.
#ifndef MICROCONTROLLER
//#define MICROCONTROLLER MC_UNO
#define MICROCONTROLLER MC_MEGA
#endif

// 2. Add some libraries if you have a MEGA
// ========================================
// Uncomment the SPI and SD lines below if you have a MEGA.
// http://forum.arduino.cc/index.php?topic=173584.0
#include <SPI.h>
#include <SD.h>

or I have to change something more ? Thanks in advance.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: SD Card problem
on: January 22, 2016, 06:45
Quote

This should have a very large caveat attached - I haven't used this SD card code since 2013, so there may be extra work that needs to be done to get it working. You are a pioneer!

in polargraph_server_a1.pde, near the bottom,

const int chipSelect = 53;

should be set to whichever pin you have the CS pin of the SD card shield fixed up to. But that is really the only piece of "configuration" to do, and that is only if you are using a different CS pin other than 53.

Is it wired up like the one in http://www.polargraph.co.uk/2012/02/state-of-the-art-tangle/?

sn

bolo16
Newbie
Posts: 10
Permalink
Post Re: SD Card problem
on: January 23, 2016, 10:34
Quote

HI Sandy
Yes, during wireing, I was follow your instruction, but I have no positive result untill now. With other sketches, SD card seems to work OK, but with polargraph_server_a1 - no way. I'm not the best coder, but I will investigate this problem a little dipper. I hope that it will give me some knowledge and SD card with polargraph will work.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: SD Card problem
on: January 23, 2016, 23:28
Quote

I haven't got the spares to try it out right now, but I'll try to dig some out soon and see how I get on.

rolexbene
Newbie
Posts: 9
Permalink
Post Re: SD Card problem
on: March 12, 2016, 16:18
Quote

bolo16 did you manage to get this working, I am on the same quest but am yet to rig up my sd card. Will let you know how it goes.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.03 seconds.