Arduino MEGA i karta SD - Wersja do druku +- Arduino Polska Forum (https://forum.arduinopolska.pl) +-- Dział: Korzystanie z Arduino (https://forum.arduinopolska.pl/dzial-korzystanie-z-arduino) +--- Dział: Magazynowanie (https://forum.arduinopolska.pl/dzial-magazynowanie) +--- Wątek: Arduino MEGA i karta SD (/watek-arduino-mega-i-karta-sd) |
Arduino MEGA i karta SD - ANT - 02-11-2017 Witam, Mam problem z inicjacją karty SD na Arduino MEGA. Napisałem krótki programik do sprawdzania inicjacji karty SD. Na Arduino UNO z shieldem TFT 2.4 + SD, jest wszystko OK. Pojawia się taki komunikat: SD CARD TEST: INITIALIZE... OK! Natomiat na Arduino MEGA z tym samym shieldem mam taki komunikat: SD CARD TEST: INITIALIZE... Failed! Możecie mi podpowiedzieć dlaczego nie działa na Arduino MEGA? Poniżej kod: Kod: //---------------------------------------------------------------------- RE: Arduino MEGA i karta SD - namok - 06-11-2017 Myślę że problem jest z pinem SD_CS. Pomoc techniczna (https://www.arduino.cc/en/Reference/SD) podpowiada: Cytat:The communication between the microcontroller and the SD card uses SPI, which takes place on digital pins 11, 12, and 13 (on most Arduino boards) or 50, 51, and 52 (Arduino Mega). Additionally, another pin must be used to select the SD card. This can be the hardware SS pin - pin 10 (on most Arduino boards) or pin 53 (on the Mega) - or another pin specified in the call to SD.begin(). Note that even if you don't use the hardware SS pin, it must be left as an output or the SD library won't work. |