Welcome! Log In Create A New Profile

Advanced

SD Printrboard with Pronterface

Posted by RegionX 
SD Printrboard with Pronterface
August 07, 2012 01:45PM
I have a 2GB Sandisk micro sd card. I have deleted everything off it and it is already in FAT format. I have tried putting normal gcode files and 8.3 (.g) files but when I go to Pronterface and select SD print nothing happens. If I hit upload to SD nothing happens, what am I doing wrong?
Re: SD Printrboard with Pronterface
August 07, 2012 02:17PM
What electronics are you using? If it's SDRamps have you tried running the test program?

If you type M21 in the gcode entry line in Pronterface what does it say?
If you type M20 What does it say.

Not all cards are supported, some newer cards don't support the SPI interface, though I've had good luck with Sandisk cards.
Re: SD Printrboard with Pronterface
August 07, 2012 03:28PM
Printrboard with Marlin.

Tried what you suggested and got nothing back:
>>>M21
SENDING:M21
>>>M20
SENDING:M20
Re: SD Printrboard with Pronterface
August 07, 2012 03:31PM
Is the firmware compiled with SDCard support?
M21 at least should return either OK or error if the init succeeds/fails.
Re: SD Printrboard with Pronterface
August 07, 2012 04:10PM
Maybe not? How would I rectify that? Something I can change in the firmware?
Re: SD Printrboard with Pronterface
August 07, 2012 04:20PM
I think it's just in configuration.h, SDSUPPORT needs to be defined I think.
Re: SD Printrboard with Pronterface
August 07, 2012 05:42PM
This is what I see:

//LCD and SD support
//#define ULTRA_LCD //general lcd support, also 16x2
//#define SDSUPPORT // Enable SD Card Support in Hardware Console

//#define ULTIPANEL
#ifdef ULTIPANEL
// #define NEWPANEL //enable this if you have a click-encoder panel
#define SDSUPPORT
#define ULTRA_LCD
#define LCD_WIDTH 20
#define LCD_HEIGHT 4


Hardware console? is that supposed to be a tab? I dont see it.
Re: SD Printrboard with Pronterface
August 07, 2012 06:31PM
Try uncommenting the first line that refers to SDSUPPORT.
Re: SD Printrboard with Pronterface
August 08, 2012 04:48AM
But sdsupport is already defined further down below this // #define NEWPANEL //enable this if you have a click-encoder panel

Really not sure what to do surely it has something to do with the elusive hardware console as stated here:


//#define SDSUPPORT // Enable SD Card Support in Hardware Console
Re: SD Printrboard with Pronterface
August 08, 2012 08:29AM
That's inside the #ifdef ULTIPANEL block, and ULTIPANEL is not defined.
Re: SD Printrboard with Pronterface
August 08, 2012 09:46AM
My nooberosity got the better of me there. I had to define it there and higher up here:

#if (MOTHERBOARD == 81) //printrboard
// #define SDSUPPORT
#endif

It looks like it will work (about to try) but M21 returns this:

echo : SD card ok
workDir open failed

Edited 1 time(s). Last edit at 08/08/2012 09:52AM by RegionX.
Re: SD Printrboard with Pronterface
August 08, 2012 09:53AM
On further analysis it only works with the y endstop disconnected... Not really sure now
Re: SD Printrboard with Pronterface
August 08, 2012 11:30AM
I think I read somewhere that you have to disable the endstops to enable SD then re-enable them somehow.?.?
Re: SD Printrboard with Pronterface
August 08, 2012 12:12PM
I'd look at the definitions in pins.h, the only reason I would expect the Y endstop to have any effect is if the pins were being assigned to both functions.
But that would affect all Printrboards, and I'd expect someone to have documented the issue somewhere.
Re: SD Printrboard with Pronterface
August 09, 2012 06:05AM
royco Wrote:
-------------------------------------------------------
> I think I read somewhere that you have to disable
> the endstops to enable SD then re-enable them
> somehow.?.?

Surely not everytime?

Here is what I see in pins.h wrt y endstop and sd:

#define Y_STEP_PIN 5
#define Y_DIR_PIN 6
#define Y_ENABLE_PIN -1
#define Y_MIN_PIN 67
#define Y_MAX_PIN -1

#define SDPOWER -1
#define SDSS 53
#define LED_PIN -1
#define FAN_PIN -1
#define PS_ON_PIN 9
#define KILL_PIN -1
Re: SD Printrboard with Pronterface
August 09, 2012 12:52PM
So it will print off the sd no problem but I cant use the y endstop. I have tried wiring the endstop (mech) differently which allows it to print but then the endstop doesnt work so thumbs down. Not sure what to do someone suggested Sprinter.
Re: SD Printrboard with Pronterface
August 09, 2012 01:57PM
There are more pins defined in SD2PinMap.h, but I don't see anything on github that would conflict with the Y endstop.
I'd post a bug on github where the author is more likely to see it and respond.
Re: SD Printrboard with Pronterface
August 21, 2012 02:59AM
Never got this working by the way...
Re: SD Printrboard with Pronterface
August 23, 2012 08:59AM
Not a lot of information on ths topic. I am running the latest Printrboard and recently bought a micro SD card with the intention of using this feature but when I enable SD support and recomplie marlin, then upload it with Flip it won't connect to pronterface. I have Marlin version 1.0.0 RC2.


_________________________________________________________________________________________

Richmond, New Zealand
Thingiverse ~ YouTube
I had issues with the SD card reader and the Y end stop. I wrote a post on my fix for it.

Hope this helps.

http://my3dprinterbuild.wordpress.com/2012/09/02/printrboard-sd-card-boot-up-fix/
Re: SD Printrboard with Pronterface
September 28, 2012 05:27PM
Thanks Colin, it does indeed work and I am printing from the SD card now. Seems too simple to be true but it definitely works smiling smiley
Now I need to work out all the SD commands and add them as macros for Pronterface...


_________________________________________________________________________________________

Richmond, New Zealand
Thingiverse ~ YouTube
Re: SD Printrboard with Pronterface
September 29, 2012 01:38AM
What is the largest size SD card you can run in a Printrboard? I think I read it was 2Gb but I can't find the reference now.


_________________________________________________________________________________________

Richmond, New Zealand
Thingiverse ~ YouTube
Sorry, only registered users may post in this forum.

Click here to login