What does CS to for the VS1053 breakout board?

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
fcohen
 
Posts: 53
Joined: Mon Jan 06, 2014 5:14 am

What does CS to for the VS1053 breakout board?

Post by fcohen »

I'm wiring together an ESP32 development board, Adafruit VS1053 music player, ST7735 display, and a second Micro-SD card breakout. They all run on SPI. I am disabling the other devices when talking to the VS1053 using:

pinMode(deviceCS, OUTPUT);
digitalWrite(deviceCS, HIGH);

I am using these connections:

CS -> GPIO 16
XDCS-> GPIO 17
SDCS -> GPIO 32
DREQ -> GPIO 4

CLK - GPIO18
MOSI - GPIO23
MISO - GPIO19
RST - GPIO25

I understand why the VS1053 board has XDCS and SDCS (to talk to the VS1053 chip and the SD Card), and I'm wondering: what is the CS used for?

-Frank

User avatar
rafikii
 
Posts: 69
Joined: Sat Jan 30, 2021 1:18 pm

Re: What does CS to for the VS1053 breakout board?

Post by rafikii »

I think thats the VS1053 chip

User avatar
alphanumeric
 
Posts: 633
Joined: Sun Sep 07, 2014 7:06 pm

Re: What does CS to for the VS1053 breakout board?

Post by alphanumeric »

I'll be stating the obvious (for some) but here goes. CS is the Chip Select pin, or Chip Enable etc. You can have multiple devices on SPI, but each one has to use a different CE pin from the Pi. I hope this helps.

SPI0
GPIO 7, Pin 26, CE1
GPIO 8, Pin 24, CE0
GPIO 9, Pin 21, MISO
GPIO 10, Pin 19, MOSI
GPIO 11, Pin 23, SCLK

SPI1
GPIO 16, Pin 36, CE2
GPIO 17, Pin 11, CE1
GPIO 18, Pin 12, CE0
GPIO 19, Pin 35, MISO
GPIO 20, Pin 38, MOSI
GPIO 21, Pin 40, SCLK

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

Return to “Other Products from Adafruit”