Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:48 26 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Webmite and VS1053 odd issue

Author Message
58kk90
Regular Member

Joined: 14/06/2023
Location: United Kingdom
Posts: 49
Posted: 06:22pm 11 Feb 2024
Copy link to clipboard 
Print this post

for several days on and off i've been trying to get my Webmite to work with the VS1053 board.
I've followed several threads on here and failed to get it to work, either in midi mode or playing streaming media.
I have tried two different types of board, one has an SD card onboard the other does not, all the wiring has been like this



I need to also say that the VS1053 boards both work fine with an Arduino.

I was at my wits end earlier today and was going along the pins with the scope whilst continually typing play midi into the console, I kept getting the same message back

Error : VS1053 read failure

until I did it with the scope on the 'XCS' pin on the board, at which point it gave the message

Real Time MIDI mode enabled

I could then play midi test 1 and get sound, the first time in a couple of days.

Removing the scope probe and the play midi failed with

Error : VS1053 read failure

Put the scope back on the pin, and it worked again.
It's a decent scope, a Tektronix TDS3032, and the signals look good to me, I can only assume that the additional capacitance of the scope probe is slewing the signals slightly.
As a test , I put a 100pF capacitor from the XCS pin on the VS1053 board to ground, probably more capacitance than the scope probe, but it was to hand, and with the cap in place I cannot get it to fail either playing midi or playing the streaming media despite several power on and off cycles.

The wiring between the Pi and the VS1053 board is hard wired, about 2" long.
Without the capacitor on the XCS pin to ground it will not work at all.
This applies to the VS1053 PCB with the SD card and the one without.

Just though it worthwhile mentioning in case anyone else has an issue with the VS1053

Tony.
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 358
Posted: 08:28am 12 Feb 2024
Copy link to clipboard 
Print this post

I have not seen that behaviour. Can it have something to do with newer firmware???
I am using:
WebMite MMBasic Version 5.08.00RC2


Pluto
 
Octatron
Newbie

Joined: 01/04/2015
Location: United Kingdom
Posts: 26
Posted: 09:28am 12 Feb 2024
Copy link to clipboard 
Print this post

Check that the chip on your board is a VS1053 and not a VS1003. I had similar problems see thread on Web Radio.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 12:53pm 12 Feb 2024
Copy link to clipboard 
Print this post

It might be an idea to try a 10M resistor (or maybe something lower) in case something isn't turning off properly. I assume the scope will be about 10M input resistance.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 358
Posted: 01:10pm 12 Feb 2024
Copy link to clipboard 
Print this post


This is the module I am using. Should be the same as matherp used when developing the VS1053 function.
Please check that the chip is VS1053. The text on the board says VS1003/VS1053 MP3 CODEC.

Works ok for many internet radio channels, but not for all. The imnternet channels in Finland are all concentrated to one web-site. Unfortunately not useable for VS1053. At least I cannot get it playing properly.

Pluto
 
58kk90
Regular Member

Joined: 14/06/2023
Location: United Kingdom
Posts: 49
Posted: 05:53pm 12 Feb 2024
Copy link to clipboard 
Print this post

Nope the IC's are definitely VS1053 and not VS1003,
The firmware I am using is the latest, I think it was 5.08.00 if memory serves.

I'll have a go tomorrow with the 10M resistor if I can find one or something similar instead of the capacitor, and report back, but I can confirm it has been running since I fitted the capacitor without any issues at all, despite several re-boots

Tony
 
58kk90
Regular Member

Joined: 14/06/2023
Location: United Kingdom
Posts: 49
Posted: 02:57pm 13 Feb 2024
Copy link to clipboard 
Print this post

I couldn't find a 10M resistor, but putting a 5.6M one there didn't work, I also tried a 470K, that didn't either, so I have left the cap in place for now.
I tried a 56pf cap too, that worked also, but not a 22pf one!

Tony
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 04:54pm 13 Feb 2024
Copy link to clipboard 
Print this post

It was well worth a try. :)
Interesting that it's capacitance that's needed. XCS is active low.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 358
Posted: 06:00pm 13 Feb 2024
Copy link to clipboard 
Print this post

May be something...
In the VS1053 datasheet the XCS is directly connected to the microcontroller. In the attached document, XCS has a 10k pull-up to 3.3V. I made the connection some minutes ago and it seems to be ok. After hearing about your problems, I tried to move the connection cables and that seemed to have had some influence on the the operation.
VS1053.PDF
For simplicity I made installed the 10k pull-up directly on the Pico module.

Pluto
 
58kk90
Regular Member

Joined: 14/06/2023
Location: United Kingdom
Posts: 49
Posted: 06:44am 14 Feb 2024
Copy link to clipboard 
Print this post

Well, I added the 10k to the 3v3 rail, it made no difference, still get the

Error : VS1053 read failure

Without the scope probe on the XCS pin, so for now the capacitor is back on and it all works great.
I think it will be something to do with the timing of the signal on the XCS pin, perhaps it is just 'on the edge' of working, its hard to say because as soon as I put the scope on the XCS in to look at the signal, then it all works fine.
Only think I can definitely confirm, is all the #vS1053 boards work perfectly on the Arduino Uno and Nano WITHOUT the capacitor, so I think it must be to do with the timing between the Pico and the VS1053 being just not 100%

Tony
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 08:30am 14 Feb 2024
Copy link to clipboard 
Print this post

Please try this version. I've put some pauses after asserting XCS before reading/writing data. This should be used for VS1053 only - no internet as it is a compromised build


PicoMiteWeb (2).zip
Edited 2024-02-14 18:31 by matherp
 
58kk90
Regular Member

Joined: 14/06/2023
Location: United Kingdom
Posts: 49
Posted: 08:57am 14 Feb 2024
Copy link to clipboard 
Print this post

Hi Pete,
Nope, sorry I have just tried that without the 100pf cap, when I do a 'play midi' I get

> play midi
Error : VS1053 read failure

Same with the 10k to 3.3v rail.

With the cap on the XCS pin, I get


> play midi
Real Time MIDI mode enabled

Tony.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024