Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 14:35 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 : Internet radio working on the WebMite with VS1053

     Page 2 of 3    
Author Message
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 358
Posted: 09:42pm 18 Jan 2024
Copy link to clipboard 
Print this post

Some stations play ok. E.g.:
name$(1)="Classic FM"
host$(1)="ice-the.musicradio.com"
page$(1)="/ClassicFMMP3"

name$(6)="SR P3"
host$(6)="http-live.sr.se"
page$(6)="/p3-mp3-192" mp3 192K


Other stations go silent for a few seconds and play again for a few seconds:
name$(11)="Santana"  'https://vtuner.com/
host$(11)="streaming.exclusive.radio"  
page$(11)="/er/santana/icecast.audio"  'mp3 128K

name$(22)="YLE VEGA osterbotten" 'vtuner.com
host$(22)="icecast.live.yle.fi"
page$(22)="/radio/YleVegaOsterbotten/icecast.audio" 'AAC 160K


Thought it had something to do with the buffer (buff%()) size. Tried with both smaller buff%(2047) and larger up to buff%(8000), but it did not seem to improve the situation at all.

Are there some settings I have not found for selecting mp3, AAC and streaming rate? Or will the VS1053 code and the chip itself detect type and rate?

Pluto
 
Octatron
Newbie

Joined: 01/04/2015
Location: United Kingdom
Posts: 26
Posted: 04:47pm 27 Jan 2024
Copy link to clipboard 
Print this post

I had been thinking of putting together a web radio for some time and I saw these posts and thought go for it, simple, but I'm having problems. I've checked the program and connections to the V1053 board numerous time and can't find a problem. This is the fault I'm getting:-

> run
[18] Play stream buff%(),r%,w%
Error : VS1053 read failure
>

Anyone any ideas as to the problem?
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 358
Posted: 07:14pm 27 Jan 2024
Copy link to clipboard 
Print this post

Did you set the option for VS1053? In my set I have the following:
OPTION AUDIO VS1053 GP10,GP11,GP12,GP9,GP8,GP7,GP6', ON PWM CHANNEL 5


WebMite manual p. 45 and 75:
  Quote  OPTION AUDIO VS1053 CLKpin, MOSIpin, MISOpin, XCSpin, XDCSpin, DREQpin, XRSTpin


Pluto
 
Octatron
Newbie

Joined: 01/04/2015
Location: United Kingdom
Posts: 26
Posted: 10:24pm 27 Jan 2024
Copy link to clipboard 
Print this post

Yes I set those. here is my list of Options:-

OPTION COLOURCODE ON
OPTION WIFI BT-XCA6FM, **************, PICOE6614C311B6
OPTION TCP SERVER PORT 80, 10000
OPTION AUDIO VS1053 GP10,GP11,GP12,GP9,GP8,GP7,GP6', ON PWM CHANNEL 5

Also checked the conections were correct many times.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 10:52pm 27 Jan 2024
Copy link to clipboard 
Print this post

Is keyboard enabled? By default it will grab GP8 and GP9.
Mick

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

Joined: 01/04/2015
Location: United Kingdom
Posts: 26
Posted: 08:41am 28 Jan 2024
Copy link to clipboard 
Print this post

Thanks Mick for your help. No keyboard isn't enabled, Pico board was a new board with a fresh install. I'm begining to wonder if the V1053 board is faulty.
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4233
Posted: 09:11am 28 Jan 2024
Copy link to clipboard 
Print this post

Maybe stupid suggestion.
You are using the correct pins? Gp8 is not pin 8 of the pico.

Does the module have power? Measure with voltmeter.

Does the wiring actually connect (broken wire)

Volhout
Edited 2024-01-28 19:15 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 09:30am 28 Jan 2024
Copy link to clipboard 
Print this post

Your settings for the VS1053 on SPI2 look fine to me. It grabbing PWM 5 is right so it looks like the option is correct.

I've no idea about the Webmite though, never had one.

Note that the VS1053 uses 5V for its supply, not 3V3.
Edited 2024-01-28 19:32 by Mixtel90
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: 09:32am 28 Jan 2024
Copy link to clipboard 
Print this post

Are you using the same board as Matherp in first post of this thread? I am using that and it worked well.

Pluto
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9115
Posted: 09:40am 28 Jan 2024
Copy link to clipboard 
Print this post

  Quote  Note that the VS1053 uses 5V for its supply, not 3V3.


This one is important - it definitely doesn't work at 3.3V
 
Pluto
Guru

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

Seen from the component side of the VS1053 board:


OPTION AUDIO VS1053 GP10,GP11,GP12,GP9,GP8,GP7,GP6


Pluto
 
Octatron
Newbie

Joined: 01/04/2015
Location: United Kingdom
Posts: 26
Posted: 02:56pm 28 Jan 2024
Copy link to clipboard 
Print this post

Thanks for all your responces. Answers to questions.

Maybe stupid suggestion.(All suggestions accepted)
You are using the correct pins? Gp8 is not pin 8 of the pico.
Yep, correct pins used.

Does the module have power? Measure with voltmeter.
Yep and requlators giving correct voltage

Does the wiring actually connect (broken wire)
Yes just checked that out

Are you using the same board as Matherp in first post of this thread?
No it's slightly different, see photo.

This one is important - it definitely doesn't work at 3.3V
Initially I had it on 3V3 but then noticed on the V1053 board it said 5V so swapped it over to VBUS 5V.

 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 358
Posted: 03:16pm 28 Jan 2024
Copy link to clipboard 
Print this post

Is it VS1053 or VS1003 chip onboard? My earlier checks on AliExpress indicated thet the boards looking like yours are VS1003.
 
Octatron
Newbie

Joined: 01/04/2015
Location: United Kingdom
Posts: 26
Posted: 03:17pm 28 Jan 2024
Copy link to clipboard 
Print this post

I think I have found the problem. The chip on the board is a VS10033 not a VS1053 and according to VLSI's website there are differences.
https://www.vlsi.fi/fileadmin/app_notes/migrate03to53.pdf
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6787
Posted: 03:30pm 28 Jan 2024
Copy link to clipboard 
Print this post

Your wiring looks right.
if you have a multimeter, have you checked through from the VS1053 to the actual Pico pin - just in case it's a faulty connection on the breadboard?
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: 09:20pm 28 Jan 2024
Copy link to clipboard 
Print this post

The VS1053 is slightly more expesive than VS1003.
Hopefully you have better luck than me when you order VS1053. Ordered from AliExp early november and not yet arrived.  
Meanwhile I ordered an other one that arrived in 14 days.

Pluto
 
Octatron
Newbie

Joined: 01/04/2015
Location: United Kingdom
Posts: 26
Posted: 05:04pm 31 Jan 2024
Copy link to clipboard 
Print this post

New VS1053 board has arrived connected it up and it works, wonderful.
Previous board was sold as a VS1053 but it had a VS10033 chip (should have spotted it earlier), now on the way back to the supplier for a re-fund. So I'm up and running, thanks for the help.


 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 847
Posted: 05:50am 18 Feb 2024
Copy link to clipboard 
Print this post

Hi Folks,
Sorry to be a pain again by asking for help but . . .
I have a VS1053 running based on Peter's above code and I am trying to adopt Pluto's idea of assembling the GET message from name, host and page.
OK the name is cosmetic.
Can anyone explain how the local-to-me radio station such as:

http://radio.menu/stations/abc-net-au-abc-local-radio-774-melbourne-mp3/httpver/

would end up as a message to request an MP3 feed?

Has anyone managed to access ABC Classic (I'm getting used to UK presenters' accents) and ABC News?

Cheers,

Andrew
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6098
Posted: 07:17am 18 Feb 2024
Copy link to clipboard 
Print this post

Andrew:

GET /3FMW/mp3/; HTTP/1.1
Host: live-radio01.mediahubaustralia.com

That's for classicFM
I will try for news next if you can confirm that this one does work for you.
They tend to make life difficult for us.


The full request as captured by wireshark
  Quote  
GET /3FMW/mp3/; HTTP/1.1
Host: live-radio01.mediahubaustralia.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Accept: audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5
Accept-Language: en-US,en;q=0.5
Range: bytes=0-
Connection: keep-alive
Accept-Encoding: identity


Jim

Edit
Try this one
  Quote  GET /PBW/mp3/; HTTP/1.1
Host: live-radio02.mediahubaustralia.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Accept: audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5
Accept-Language: en-US,en;q=0.5
Range: bytes=0-
Connection: keep-alive
Accept-Encoding: identity


It should be News Radio. Note the radio2 instead if radio1 in the url

http://live-radio02.mediahubaustralia.com/PBW/mp3/

Edited 2024-02-18 17:30 by TassyJim
VK7JH
MMedit   MMBasic Help
 
Andrew_G
Guru

Joined: 18/10/2016
Location: Australia
Posts: 847
Posted: 08:02am 18 Feb 2024
Copy link to clipboard 
Print this post

Hi Jim,
Thanks I get some sound out of it but it sounds like a cracked record (with digital squeaks & squawks over background music) and very much like a crossed line (some talking over music with multiple voices)?
There hasn't been a station ID announcement yet to confirm it is the ABC.

The UK Classic FM was fairly clean.

(As you may have guessed I'm mostly interested in ABC classic and news etc).

Cheers,

Andrew
 
     Page 2 of 3    
Print this page
© JAQ Software 2024