SD card detect is inverted...

Discussions about firmware/slicing software, tweaks and settings
Post Reply
andrewsi
Posts: 130
Joined: Mon Dec 23, 2013 1:26 am

SD card detect is inverted...

Post by andrewsi »

I noticed on my 3.0 with the 2.1 electronics board, using the Marlin firmware with config settings as defined by Guillaume that the display panel was showing "Card removed" every time I put an SD card in, and vice versa, removing one would make it say "Card Inserted". And then of course it wouldn't read the card correctly. This is easily fixed in Marlin's configuration_adv.h file:

Find the following section and uncomment the one line as shown, and then comment out the following section so it looks like this:

Code: Select all

// If you are using a RAMPS board or cheap E-bay purchased boards that do not detect when an SD card is inserted
// You can get round this by connecting a push button or single throw switch to the pin defined as SDCARDCARDDETECT 
// in the pins.h file.  When using a push button pulling the pin to ground this will need inverted.  This setting should
// be commented out otherwise
#define SDCARDDETECTINVERTED // For Felix 2.1 electronics

//#ifdef ULTIPANEL
// #undef SDCARDDETECTINVERTED
//#endif
After rebuilding and uploading, the SD card detection now works as intended. :-) Just as an FYI, I have a newer private version of Marlin that is completely up to date from Github, with several feature additions as compared to the version here. This includes manual "babystepping" for the Z axis, and a guard zone around 100% feedrate on the main screen so that it doesn't accidentally get knocked to some other value. I merged the latest tree with all of the settings changes provided in Guillaume's version here, so that all of the relevant Felix-specific settings are included.
__________________________________________
Andy Silverman, Technogeek in Seattle
Felix Tec4 Single-head

bruno-16OOO
Posts: 12
Joined: Sat Jul 20, 2013 12:31 pm

Post by bruno-16OOO »

hi,

Can you explane where to find the Marlin's configuration_adv.h file ?

frankjoke
Posts: 150
Joined: Sat Dec 28, 2013 6:07 pm

Post by frankjoke »

Thanks for posting!
This might be the reason why my SD card did never work!

p.s.: Did never update so far SW and hope that Felix updates their FW as well!

andrewsi
Posts: 130
Joined: Mon Dec 23, 2013 1:26 am

Post by andrewsi »

If you download the Marlin firmware either from the download page on thismsite, or by cloning the current source tree from the Github repository, the .h files are part of the source. Guillaume's version contains all the necessary config settings for the Felix printers, but I've ported those changes to work with the more recent versions of the Marlin source, the version here is a little but stale and needed to be merged together. I have not bothered to post those changes publicly but would be happy to do so, although I'd prefer to do it with cooperation from Guillaume, he may have his own preferences for what firmware he wants to support. For example, the dual extruder firmware here is based on the Repetier firmware rather than Marlin. I've gone through the same exercise for porting config settings to use with more recent Repetier drops as well, but this SD fix was already taken into account there.
__________________________________________
Andy Silverman, Technogeek in Seattle
Felix Tec4 Single-head

Post Reply

Return to “Software/Firmware”