hi Adafruit,
I'm working with Adafruit's 160x128 TFT display breakout with the SD card. The display works fine, but my attempts to use the card have failed.
I've wired the breakout to my Teensy 4 by the hardware SPI (MISO, SCK, MOSI) and the CARD_CS pin to the T4's pin 10 (I've also tried pin 4, adjusting the code appropriately, no change). I inserted a SanDisk ExtremePlus 32G microSD card formatted as FAT32. I'm powering the TFT via the T4's 3.3v rail which is ok for 250mA.
When I run the SD library's CardInfo sketch, I get "Initializing SD card...initialization failed."
I saw a note in the TFT's howto tutorial that this board isn't great for data logging. Is that true? (if yes, sad, that was my intended use) I'm a little stuck, any suggestions would be v welcome -- wylbur.
SD card on TFT sd7735 breakout "...initialization failed"
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 143
- Joined: Thu May 17, 2012 2:40 pm
- mikeysklar
- Posts: 14181
- Joined: Mon Aug 01, 2016 8:10 pm
Re: SD card on TFT sd7735 breakout "...initialization failed
Hi wylbur,
I've seen a lot of posts in regards to getting going with these.
Let's starting with photos of your wiring and soldering to make sure that look right.
I've seen a lot of posts in regards to getting going with these.
Let's starting with photos of your wiring and soldering to make sure that look right.
-
- Posts: 143
- Joined: Thu May 17, 2012 2:40 pm
Re: SD card on TFT sd7735 breakout "...initialization failed
hi mikeysklar,
Sure! I've attached photos of the soldering on the breakout board, the wiring on the board, and the wiring on the breadboard. Just to confirm, here's the wiring:
I'd love any thoughts you might have -- wylbur.
Sure! I've attached photos of the soldering on the breakout board, the wiring on the board, and the wiring on the breadboard. Just to confirm, here's the wiring:
Code: Select all
TFT --> T4
lite 3.3v
MISO p12
SCK p13
MOSI p11
TFT_CS p10
CARD_CS p4
D/C p9
RESET p8
VCC 3.3v
Gnd Gnd
- Attachments
-
- IMG_1025.JPG (121.57 KiB) Viewed 181 times
-
- IMG_1024.JPG (98.05 KiB) Viewed 181 times
-
- IMG_1023.JPG (104.49 KiB) Viewed 181 times
- mikeysklar
- Posts: 14181
- Joined: Mon Aug 01, 2016 8:10 pm
Re: SD card on TFT sd7735 breakout "...initialization failed
Thank you for the photos. Can you send me one more "above" shot of the Teensy wiring on the breadboard (birds eye view).
-
- Posts: 143
- Joined: Thu May 17, 2012 2:40 pm
Re: SD card on TFT sd7735 breakout "...initialization failed
Sure thing, hope one of these has the right angle -- wylbur.
- Attachments
-
- IMG_1026.JPG (593.14 KiB) Viewed 170 times
-
- IMG_1027.JPG (618.36 KiB) Viewed 170 times
-
- IMG_1028.JPG (539.12 KiB) Viewed 170 times
- mikeysklar
- Posts: 14181
- Joined: Mon Aug 01, 2016 8:10 pm
Re: SD card on TFT sd7735 breakout "...initialization failed
Okay, your wiring looks good with all the cables in appropriate locations and gnd/3.3v rails in place.
Which code demo are you starting with? Can you post it here so I can confirm the pins are configured correctly for a Teensy 4?
Which code demo are you starting with? Can you post it here so I can confirm the pins are configured correctly for a Teensy 4?
-
- Posts: 143
- Joined: Thu May 17, 2012 2:40 pm
Re: SD card on TFT sd7735 breakout "...initialization failed
Sigh.
But in a good way: as I prepared to post code I was using, I assumed it wouldn't work. But then I tried SD::CardInfo and it worked. Then I tried SD:Datalogger, and it worked. And I adapted the example code to my application, and it worked.
I imagine that I had a wiring error but as I put it back together, I made the last fix but didn't redo the test. Apologies! And thanks for nudging me to do the basic debugging -- wylbur.
But in a good way: as I prepared to post code I was using, I assumed it wouldn't work. But then I tried SD::CardInfo and it worked. Then I tried SD:Datalogger, and it worked. And I adapted the example code to my application, and it worked.
I imagine that I had a wiring error but as I put it back together, I made the last fix but didn't redo the test. Apologies! And thanks for nudging me to do the basic debugging -- wylbur.
- mikeysklar
- Posts: 14181
- Joined: Mon Aug 01, 2016 8:10 pm
Re: SD card on TFT sd7735 breakout "...initialization failed
With this many connections wiring is definitely a risk. I usually put the devices on the same breadboard and custom cut each wire to try and reduce the confusion factor.
Please be positive and constructive with your questions and comments.