3.5" TFT Breakout's SD Card Detect pin?

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
klyons5881
 
Posts: 2
Joined: Sun Apr 15, 2018 10:58 pm

3.5" TFT Breakout's SD Card Detect pin?

Post by klyons5881 »

Hello all,

I have one of your 3.5 inch TFT touchscreens (Model 2050) and I just love it. I'm running mine with an Arduino Uno in SPI mode with a Samsung 2GB SD card.
The only issue I had was I found that some brands of SD cards worked better than others. For example, Kingston 2GB cards don't seem to work well for some reason but my Samsung works great with no problems.

I have a question... two actually.

1) I found this quote in the Adafruit website in the Model 2050's pages in the Pinouts section.
Card Detect / CD - this is the SD card detect pin, it floats when a card is inserted, and tied to ground when the card is not inserted. We don't use this in our code but you can use this as a switch to detect if an SD card is in place without trying to electrically query it. Don't forget to use a pullup on this pin if so!
I would like to use a pullup resistor and switch on this pin in my programming. Would a 10K resistor work here or if not what value would work?

2) Would anyone know where I can find a tutorial for how to program this screen for use as a machine's control panel?

Thank you,

Ken

User avatar
klyons5881
 
Posts: 2
Joined: Sun Apr 15, 2018 10:58 pm

Re: 3.5" TFT Breakout's SD Card Detect pin?

Post by klyons5881 »

I found my answers...

Ken

User avatar
adafruit_support_carter
 
Posts: 29471
Joined: Tue Nov 29, 2016 2:45 pm

Re: 3.5" TFT Breakout's SD Card Detect pin?

Post by adafruit_support_carter »

I would like to use a pullup resistor and switch on this pin in my programming. Would a 10K resistor work here or if not what value would work?
Since you're using an UNO, you can just use the internal pull up. For whatever pin you plan to connect CD to:

Code: Select all

pinMode(CD_PIN, INPUT_PULLUP);
HIGH = no card inserted
LOW = card inserted

Locked
Please be positive and constructive with your questions and comments.

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”