SD Mux

Thread Starter

Bb.mozart

Joined Jul 8, 2025
2
Hello,

I am trying to create a way to wirelessly upload to a media player using a ESP32-s3.

Materials:
- ESP32-S3
- 9 pin microSD card module
- microSD Card slot extender (attached to the media player) : https://www.adafruit.com/product/4395#description
- ADG1434 Analog switch x2

The flow:
- User uploads file to webserver hosted by ESP
- ESP takes file and uploads it to SD card module it is wired to
- ESP unmounts SD card and sets CTRL GPIO pin high
- ADG1434 sees the high and switches the SD card module's lines to the SD card slot extender (which is connected to the media player)
- Now the media player can access the wirelessly uploaded files

Right now, the only lines being fed into the analog switch are CMD, D0, CLK from the ESP(it's in 1 bit mode since 4 bit mode just isn't working) and CMD, CLK, D0-D3 from the SD card slot extender. The 'D' pins on the analog switch are connected to the SD card module's CMD, CLK, D0-D3.

When I tried to test this, the ESP failed to mount the SD card despite the analog switch seemingly working.

Questions:

1) I am not sure what the problem could possibly be in the above setup, so I would appreciate any guidance there.
2) I have found that SD MUXes do exist: https://www.onsemi.com/products/interfaces/analog-switches/fssd06 Would this be helpful in my situation?
3) Would the FSSD06 be able to switch from a device accessing the SD card in 1 bit mode (like my ESP) and another device that uses all SD card pins (like the slot extender)?
4) How would I power everything? Right now, the SD card slot extender is being powered by the media player. The ESP is being powered by my PC since I hook it up via USB to look at logs. How should I power the SD card module and the ADG1434? I'm currently using a 12V single supply for the analog switch, but I am unsure on what order to power everything.
5) If I do use the FSSD06, how would I power everything in that situation?

Feel free to ask me for my code or physical setup.

Help would be appreciated!
 

MisterBill2

Joined Jan 23, 2018
27,251
It seems that there is a communications protocol difference that is causing a problem, and that portion is beyond my skill set.
It also seems like an overly complex sequence to send a file to a separate media player device.
One additional consideration is that a musical file may be copy protected, in which case considerable more effort will be required, and legal issues may arise.
 

Thread Starter

Bb.mozart

Joined Jul 8, 2025
2
It seems that there is a communications protocol difference that is causing a problem, and that portion is beyond my skill set.
It also seems like an overly complex sequence to send a file to a separate media player device.
One additional consideration is that a musical file may be copy protected, in which case considerable more effort will be required, and legal issues may arise.
Hello! Thanks for the reply. The issues was that my GNDs were not connected together. But I managed to connect the SD card module to the ESP through the analog switch. The problem I'm facing now is connecting the media player's SD card slot extender to the SD card module through the analog switch. Ideally, I will not be yanking the slot extender out every single time I want to upload new files, but right now, I'm not able to upload files any other way.

I know it's complex, but I am a beginner to all this, so I could not think of any other solution. What would you suggest?
 
Top