Open henkiejan1 opened 5 years ago
Hi,
looks like a mismatch between your wiring and the config :
wiring : CS - D23 MISO - D19 MOSI - D4 SCK - D18 XCS - D5 XRESET - EN XDCS - D32 DREQ - D4
Config : pin_vs_cs = 22 # GPIO Pin number for VS1053 "CS" pin_vs_dcs = 5 # GPIO Pin number for VS1053 "DCS"
and : D: pin_sd_cs set to 5 D: pin_vs_cs set to 22 D: pin_vs_dcs set to 32 D: pin_vs_dreq set to 4 D: pin_spi_sck set to 18 D: pin_spi_miso set to 19 D: pin_spi_mosi set to 23
The values in the config html page override the settings in the code, so it is best to put all settings into the config page if they do not match the standard miso/modi/sck values
Cheers, Rainer Gesendet von Mail für Windows 10
Von: henkiejan1 Gesendet: Sonntag, 16. Dezember 2018 16:22 An: Edzelf/ESP32-Radio Cc: Subscribed Betreff: [Edzelf/ESP32-Radio] ESP32 DOIT DEVKIT V1 - VS1053B pinouts what do iwrong?? (#199)
Hi everyone, I am 2 days not strubbling to make ESP32 radio ready. Here are the complete details. I using a DOIT ESP32 DEVKIT V1. For the MP3 decoder i use a VS1053B. With a line in, a line out and microphone and SD card reader on the board. Powerup the ESP32 from my pc and the decoderboard has 5V from a breadboard power supply. The wiring as follow: VS1053B - breadboard powersupply 5V - + rail on breadboard 5V power GND - -rail on breadboard 5V power VS1053B - ESP32 CS - D23 MISO - D19 MOSI - D4 SCK - D18 XCS - D5 XRESET - EN XDCS - D32 DREQ - D4 In the config file the following is configured. clk_dst = 1 # Offset during daylight saving time (hours) clk_offset = 1 # Offset with respect to UTC in hours clk_server = time.kpnnet.org # Time server to be used # gpio_00 = uppreset = 1 gpio_12 = upvolume = 2 gpio_13 = downvolume = 2 gpio_14 = stop gpio_17 = resume gpio_23 = station = icecast.omroep.nl:80/radio1-bb-mp3 # mqqprefix = none mqttbroker = none mqttpasswd = *** mqttport = 1883 mqttuser = none # pin_vs_cs = 22 # GPIO Pin number for VS1053 "CS" pin_vs_dcs = 5 # GPIO Pin number for VS1053 "DCS" pin_vs_dreq = 4 # GPIO Pin number for VS1053 "DREQ" # preset = 6 preset_00 = 109.206.96.34:8100 # 0 - NAXI LOVE RADIO, Belgrade, Serbia preset_01 = airspectrum.cdnstream1.com:8114/1648_128 # 1 - Easy Hits Florida 128k preset_02 = us2.internet-radio.com:8050 # 2 - CLASSIC ROCK MIAMI 256k preset_03 = airspectrum.cdnstream1.com:8000/1261_192 # 3 - Magic Oldies Florida preset_04 = airspectrum.cdnstream1.com:8008/1604_128 # 4 - Magic 60s Florida 60s Classic Rock preset_05 = us1.internet-radio.com:8105 # 5 - Classic Rock Florida - SHE Radio preset_06 = icecast.omroep.nl:80/radio1-bb-mp3 # 6 - Radio 1, NL preset_07 = 205.164.62.15:10032 # 7 - 1.FM - GAIA, 64k preset_08 = skonto.ls.lv:8002/mp3 # 8 - Skonto 128k preset_09 = 94.23.66.155:8106 # 9 - *ILR CHILL and GROOVE preset_10 = ihr/IHR_IEDM # 10 - iHeartRadio IHR_IEDM preset_11 = ihr/IHR_TRAN # 11 - iHeartRadio IHR_TRAN
This comes from the startup log: rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0018,len:4 load:0x3fff001c,len:808 load:0x40078000,len:6084 load:0x40080000,len:6696 entry 0x400802e4
D: Slow SPI, Testing VS1053 read/write registers... D: VS1053 error retry SB:0000 R1:FFFF R2:FFFF D: VS1053 error retry SB:012C R1:FFFF R2:FFFF D: VS1053 error retry SB:0258 R1:FFFF R2:FFFF D: VS1053 error retry SB:0384 R1:FFFF R2:FFFF D: VS1053 error retry SB:04B0 R1:FFFF R2:FFFF D: VS1053 error retry SB:05DC R1:FFFF R2:FFFF D: VS1053 error retry SB:0708 R1:FFFF R2:FFFF D: VS1053 error retry SB:0834 R1:FFFF R2:FFFF D: VS1053 error retry SB:0960 R1:FFFF R2:FFFF D: VS1053 error retry SB:0A8C R1:FFFF R2:FFFF D: VS1053 error retry SB:0BB8 R1:FFFF R2:FFFF D: VS1053 error retry SB:0CE4 R1:FFFF R2:FFFF D: VS1053 error retry SB:0E10 R1:FFFF R2:FFFF D: VS1053 error retry SB:0F3C R1:FFFF R2:FFFF D: VS1053 error retry SB:1068 R1:FFFF R2:FFFF D: VS1053 error retry SB:1194 R1:FFFF R2:FFFF D: VS1053 error retry SB:12C0 R1:FFFF R2:FFFF D: VS1053 error retry SB:13EC R1:FFFF R2:FFFF D: VS1053 error retry SB:1518 R1:FFFF R2:FFFF D: VS1053 error retry SB:1644 R1:FFFF R2:FFFF What do i wrong? Thank you for your help! :) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Your preferences are not confirm your wiring. Enter the right settings in the config page of the web interface. I expect something like:
pin_spi_sck = 18 pin_spi_miso = 19 pin_spi_mosi = 4 pin_vs_cs = 23 pin_vs_dcs = 32 pin_vs_dreq = 4
Hi everyone!
I have ESP32 radio working. There where a combination of troubles. The breadboard works really bad with the jumper cables. Also has the VS1053B a little bit different description on the pins. Otherwise i has not all the pins declarated. Is there a page with alle settings i could make on the configuration page?
Thank you for all the help to fix this. Here are the settings and pinout i use now! Next step is to make the SD card reader working and a display.
Pinout for the VS1053B breakout board like these one: https://nl.aliexpress.com/item/VS1053-VS1053B-MP3-Module-Voor-Arduino-UNO-Breakout-Board-Met-SD-Card-Slot-VS1053B-Ogg-Real/32838436470.html
Pinout VS1053B - ESP32
5V - 3V (yes, it works also on 3V!)
GND - GND
CS - D34 (card reader)
MISO - D19
(MO)SI - D23
SCK = D18
XCS = D5
RESET = EN
XDCS = D32
DREQ = D4
Configuration file pin declaration
#
pin_sd_cs = 34
pin_spi_miso = 19
pin_spi_mosi = 23
pin_spi_sck = 18
pin_vs_cs = 5
pin_vs_dcs = 32
pin_vs_dreq = 4
Thank you again!
Read the document...
Oh, yes i do. ;)
Hi everyone,
I am 2 days not strubbling to make ESP32 radio ready. Here are the complete details.
I using a DOIT ESP32 DEVKIT V1. For the MP3 decoder i use a VS1053B. With a line in, a line out and microphone and SD card reader on the board. Powerup the ESP32 from my pc and the decoderboard has 5V from a breadboard power supply.
The wiring as follow:
In the config file the following is configured.
This comes from the startup log:
What do i wrong? Thank you for your help! :)