Hi there,
As part of a university design assignment, I’m trying to create an audio player that plays one music file on loop unless a sensor is touched to play a different music file.
Currently I’m at the stage where I’m wanting to load a music file (wav file) to an SD card and get the Arduino Uno to play it, just so I know it works before I move to try get it to respond with sensors.
The current issue I’m having is when I tried to build the simple audio player for initial prototyping, when run nothing happened or played. I was using this tutorial: https://create.arduino.cc/projecthub/HUNMAN/speaker-with-arduino-and-micro-sd-f238b8?ref=search&ref_id=speaker%20sd%20card&offset=0
I have checked each output is connected correctly from the SD card module to the Arduino Uno as I’m aware it supposed to be:
Gnd - Gnd
5+ - 5+
MISO - Pin 12
MOSI - Pin 11
SCK - Pin 13
CS - Pin 4
In trying to work out what is wrong I’ve been running the Example code available in the Arduino software: SD – CardInfo
and each time I run it is says the card won’t initialise:
I’ve tried 4 different SD cards, each different sizes (128mb, 2gb, 4gb, 32gb) and none want to initialise.
Wondering if this is a module issue? I’m using a SD card module
Or if not what else I can try do because I’m at a lost!
(also I am working off a macbook)



