Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:47 10 May 2025 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 : PicoMite V6.00.02 betas

     Page 6 of 23    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 01:25pm 25 Jan 2025
Copy link to clipboard 
Print this post

  Quote   I cannot access the extended GPIO pins, and cannot activate PSRAM on GP47.

The WebMite firmware does not support the RP2350B
 
BarryH

Newbie

Joined: 05/01/2025
Location: Australia
Posts: 9
Posted: 01:58pm 25 Jan 2025
Copy link to clipboard 
Print this post

  matherp said  
  Quote   I cannot access the extended GPIO pins, and cannot activate PSRAM on GP47.

The WebMite firmware does not support the RP2350B


Thanks for the quick response. Can the firmware table, on page 6 of the manual, be updated to reflect this.

I think this knowledge is better to be in the manual where everyone can read it in the future, rather than a subset of people who need to be site members to be able to initiate keyword searches and scroll through potentially countless messages to find this one entry.
BarryH
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7503
Posted: 02:35pm 25 Jan 2025
Copy link to clipboard 
Print this post

So far the 2350B boards are not showing up to be flexible in their specifications.  :(
Mick

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

Newbie

Joined: 05/01/2025
Location: Australia
Posts: 9
Posted: 02:46pm 25 Jan 2025
Copy link to clipboard 
Print this post

  Mixtel90 said  So far the 2350B boards are not showing up to be flexible in their specifications.  :(


Thanks. I appreciated the technical overview of the issue
BarryH
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 220
Posted: 08:24pm 25 Jan 2025
Copy link to clipboard 
Print this post

Ask:
Is it true that the volume of a wav file with I2S cannot be adjusted with Play Volume or am I doing something wrong?
I tested it with a MAX98357A and a PCM5102A with I2S where both volume output 100% for wav files.
For the rest, Play Volume works correctly.

PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02b3
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02b3
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION FLASH SIZE 4194304
OPTION COLOR CODE ON
OPTION KEYBOARD US
OPTION CPU SPEED (KHz) 315000
OPTION HDMI PINS 1, 3, 7, 5
OPTION SDCARD GP22, GP6, GP7, GP4
OPTION AUDIO I2S GP1,GP5', ON PWM CHANNEL 0

Play volume 30, 30                
'Play tone 200, 200                
'Play wav "B:/wav/tet16cut.wav"  
'Play mp3 "B:/mp3/jazz-intro-251968.mp3"
'Play sound 1, B, S, 200, 20    
Pause 60000                      
End

Greetings,

Jan
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 217
Posted: 09:41pm 25 Jan 2025
Copy link to clipboard 
Print this post

just tested with PCM1502A,

play mp3 "filename"
play volume 20,20
... volume lowers
play volume 100,100
... volume raises


so it seems to work for me.
                                                                 
73 de OE1HGA, Gerald
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 220
Posted: 10:18pm 25 Jan 2025
Copy link to clipboard 
Print this post

ville56,

For me, the Play volume for tone, MP3, sound also works correctly, but not for WAV, only the maximum volume as output and no response with play volume, no matter how you set it.

Greetings,

Jan
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 217
Posted: 10:49pm 25 Jan 2025
Copy link to clipboard 
Print this post

Sorry Jan, my fault, didn't read careful enough. Same here with wav files.
                                                                 
73 de OE1HGA, Gerald
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 07:44am 26 Jan 2025
Copy link to clipboard 
Print this post

Peter,

My test was not extended enough with with UDA1334A

I attached some records to listen

dac_prob.zip

Cames out, low tones like PLAY TONE 200,200,1000 sounds ok , but higher tones like PLAY TONE 1000,1000,1000 looks like some vibrato
-->hi_tone-Jan 26, 09.26(3).m4a
-->low_tone-Jan 26, 09.27.m4a

Short mp3 --> music_from_game_UDA1334-rec-Jan 26, 09.21.m4a was also game music record, so it sounded like OK

However when i started to play various heavy mp3, imediately hear some truncation, fluctuation
See how it should sound --> how_should_sound-Jan 25, 16.45.m4a
And what I get through UDA11134 --> how_UDA1334_outputs-Jan 25, 16.42.m4a

I`ve read datasheet and it is stated UDA1334A accepts only up to 24bit data
While firmware sends 32Bits as you stated. So might it be some 8 bits truncated makes sound bad ? Is anything It can be done there o just switch to other DAC   ?
My MMBasic 'sand box'
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 217
Posted: 07:56am 26 Jan 2025
Copy link to clipboard 
Print this post

electricat, is it possible you exchanged the filenames

how_should_sound-Jan 25, 16.45.m4a
how_UDA1334_outputs-Jan 25, 16.42.m4a

for me seem to be reversed.

Btw, I have similar artefacts in the output of a PCM5102 chip.
                                                                 
73 de OE1HGA, Gerald
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 217
Posted: 08:44am 26 Jan 2025
Copy link to clipboard 
Print this post

This is how playback of mp3 files changes with cpu speed on my setup.


samples.zip
                                                                 
73 de OE1HGA, Gerald
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 11:05am 26 Jan 2025
Copy link to clipboard 
Print this post

  ville56 said  electricat, is it possible you exchanged the filenames

how_should_sound-Jan 25, 16.45.m4a
how_UDA1334_outputs-Jan 25, 16.42.m4a

for me seem to be reversed.

Btw, I have similar artefacts in the output of a PCM5102 chip.


You are right. Should be named oposite.
If You say, PCM5102 bahaves similarry, fingers crossed Peter will brainstorm problem. Discrete components (for me) would cost more than single MAX98357A    so I`m highly interested in DAC outputs.
My MMBasic 'sand box'
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 11:47am 26 Jan 2025
Copy link to clipboard 
Print this post

V6.00.02b4 now available

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Fixes bug in I2S support introduced in b2
Adds support for PLAY VOLUME for FLAC and WAV when using I2S

New
MM.INFO(BOOT)
Tells you the reason for the last restart of the Pico
Returns:

Restart            - the device has been restarted with CPU RESTART or an OPTION command
S/W Watchdog       - the device has been restarted by a software watchdog timeout
H/W Watchdog       - the device has been restarted by a hardware watchdog timeout
Firmware update    - the device has been restarted following a firmware update
Power On           - the device has been powered up
Reset Switch       - the device has been restarted using the reset switch
Unknown code &Hn   - unknown reason - please report the code and version RP2040/2350
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 436
Posted: 01:09pm 26 Jan 2025
Copy link to clipboard 
Print this post

> option list
PicoMiteHDMI MMBasic RP2350A Edition V6.00.02b4
OPTION AUDIO I2S GP10,GP9', ON PWM CHANNEL 5

', ON PWM CHANNEL 5 - Is this some kind of remnant of the PWM audio option?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 01:12pm 26 Jan 2025
Copy link to clipboard 
Print this post

  Quote  Is this some kind of remnant of the PWM audio option?


No, The PWM channel is used to create the routine interrupt which feeds the PIO FIFO , same thing also used with AUDIO SPI
Edited 2025-01-26 23:13 by matherp
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 436
Posted: 02:42pm 26 Jan 2025
Copy link to clipboard 
Print this post

PicoMiteVGA MMBasic USB RP2040 Edition V6.00.02b4

FILES command from the program works fine!
EXECUTE "FILES" from the program does not work, it causes a reboot with the message : Firmvare updated
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10067
Posted: 02:45pm 26 Jan 2025
Copy link to clipboard 
Print this post

  Quote  EXECUTE "FILES" from the program does not work,


Not surprised - no fix possible. Execute only allows commands that return immediately. The message is wrong and I'll fix that.
Edited 2025-01-27 01:19 by matherp
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 04:55pm 26 Jan 2025
Copy link to clipboard 
Print this post

Thank You, Peter!

UDA1334 now plays mp3 OK.
And PLAY TONE problems solved.
I am so pleased    
Discret PWM sound is a must, but DAC is Godsend

@JanVolk
Could you confirm if MAX98357A has no problems too?
My MMBasic 'sand box'
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 217
Posted: 05:50pm 26 Jan 2025
Copy link to clipboard 
Print this post

Thanks Peter, works now also with PCM5102.
                                                                 
73 de OE1HGA, Gerald
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 220
Posted: 08:55pm 26 Jan 2025
Copy link to clipboard 
Print this post

Peter,

I did a quick test with PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.02b4.
The PCM5102A with I2S now works great for PLAY-TONE, WAV, MP3, SOUND. Very clear sound and no ticking in the background and PLAY VOLUME also works well.
The PLAY VOLUME command is from 0% - 100% but PLAY SOUND 1,B,S,200,VOLUME 0% - 25%. Why no equality in the firmware?

Also tested the MAX98357A. This is very disappointing. Sound is very distorted and overdriven. I think the response with PLAY VOLUME is inverted?
This is the case for PLAY-TONE, WAV, MP3, SOUND. But it is impossible to work with the output because the speaker is directly on the module (power amplifier 3W) and will I possibly receive complaints from my neighbors?
I understand you may not own a MAX98357A which makes testing difficult?
But me and electricat could possibly do some testing?

Greetings,

Jan
 
     Page 6 of 23    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025