Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:41 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 5 of 23    
Author Message
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 07:23pm 24 Jan 2025
Copy link to clipboard 
Print this post

Peter,
glad You found it!  

I had pleasure to find you implemented I2S sound!
It seems as welcome option if discrete PWM is not an option.

Local sellers asks crazy ~40 EUR for VS1053. Not so cheap  
So I2S was good news for me

Found spare UDA1334A DAC in box. Tomorrow hope to see if it works. It should.

But it is temporar option. I was looking for cheap and "enough" DAC acessible in EU

Found MAX98357A and it seems to me as interesting option.
Small power amplifier is integrated (3.2W Output Power into 4Ω at 5V)
No MCLK Required, supports Left, Right, or (Left/2 + Right/2) Output

From datasheet:
General Description
The MAX98357A/MAX98357B is an easy-to-use, low-cost, digital pulse-code modulation (PCM) input Class D amplifier that provides industry-leading Class AB audio performance with Class D efficiency. The digital audio interface automatically recognizes up to 35 different PCM and TDM clocking schemes which eliminates the need for I2C pro gramming. Operation is further simplified by eliminating the need for an external MCLK signal that is typically used for PCM communication. Simply supply power, LRCLK, BCLK, and digital audio to generate audio!  

Maybe our small comunity knows better options or find this chip interesting?
My MMBasic 'sand box'
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 436
Posted: 07:48am 25 Jan 2025
Copy link to clipboard 
Print this post


PicoMiteHDMI MMBasic RP2350A Edition V6.00.02b2
Copyright 2011-2024 Geoff Graham
Copyright 2016-2024 Peter Mather

> b:
> play mp3 "BTW"
> play stop
> play mp3 "BTW"
Error : Not enough Heap memory
>
 
matherp
Guru

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

  Quote  Error : Not enough Heap memory

Option List?
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 436
Posted: 08:46am 25 Jan 2025
Copy link to clipboard 
Print this post

  matherp said  Option List?

option list
PicoMiteHDMI MMBasic RP2350A Edition V6.00.02b2
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD US
OPTION KEYBOARD PINS GP2,GP3
OPTION CPUSPEED (KHz) 315000
OPTION HDMI PINS  1, 3, 5, 7
OPTION SDCARD GP5, GP6, GP7, GP4
OPTION AUDIO I2S GP10,GP9', ON PWM CHANNEL 5
OPTION MODBUFF ENABLE  256
>

When setting the audio to PWM it works fine...
Edited 2025-01-25 18:49 by javavi
 
electricat

Senior Member

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

latest beta, RP2350 HDMI/USB

entering --> OPTION AUDIO I2S GP10,GP12
Gives "Expression syntax"

tried different combintions


My MMBasic 'sand box'
 
matherp
Guru

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

  Quote  latest beta, RP2350 HDMI/USB

Not according to the screenshot. In any case GP12 is used for HDMI.
Edited 2025-01-25 19:09 by matherp
 
matherp
Guru

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

V6.00.02b3 now available

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

Fixes memory leak in PLAY MP3 when using I2S or SPI audio
Fixes all known transition issues 6.00.01 to 6.00.02 or blank to 6.00.02

No known bugs as of 09:00 UTC 25/1/25
 
electricat

Senior Member

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

Right. I tray eliminate such overlooks, but failing.
I must be more accurate in future
My MMBasic 'sand box'
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 09:45am 25 Jan 2025
Copy link to clipboard 
Print this post

Peter,

Can you confirm if v6.00.02b3 can be loaded on ‘any’ state of Pico

i.e. a new ‘blank’ Pico, as well as one that may have had any previous version (v5) loaded. IF a Pico with a previous version, would it need to be cleared first in any way (nuked)?

Thanks…..
Edited 2025-01-25 19:48 by WhiteWizzard
 
matherp
Guru

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

  Quote  Can you confirm if v6.00.02b3 can be loaded on ‘any’ state of Pico


In theory yes but time will tell
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 11:06am 25 Jan 2025
Copy link to clipboard 
Print this post

Peter,

Loaded a new genuine Pico 2 (with Adafruit DVI sock) with HDMI b3 firmware.

With a specific monitor I only get an image with OPTION RESOLUTION 1024 (this is not the problem I’m reporting here!).

At the command prompt I type MODE 1 (or 2 or 3) and see it behave as expected. And when i enter the editor I consistently see 32 lines of text (colour-coded) no matter which mode I set at the command prompt.

BUT if i set OPTION DEFAULT MODE 2 (for example), then the editor text-font is tiny.

Doing OPTION LIST now shows OPTION DEFAULT FONT 7,1 (set automatically I presume!) and this would explain the tiny font in the editor. But I can’t seem to change it to make it readable.

For now, all I am trying to do is set default resolution to 1024 (as that’s all my particular monitor will display)  AND set mode 3 so I have a handful of colours to use rather than just 2 in mode 1, AND be able to have a decent size font in the editor.

What am I missing - there must be something silly I am doing??
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 11:25am 25 Jan 2025
Copy link to clipboard 
Print this post

Furthermore,

If at the command prompt I type FONT 5 (for example), then  I see the larger font at the command prompt (as expected). However, if I then type EDIT, I get an error ‘FONT TOO LARGE’ (this is fair enough as it looks like it was trying to use that for EDITOR.
Typing edit a second time lets me in with some other sized font which is then also displayed when I return to the command prompt.

I then powered down Pico and reapplied power and no HDMI image.

Something really funky going on with a mix of  using: OPTION RESOLUTION, OPTION DEFAULT MODE, MODE, and FONT

If you play around with this I think you should see what I mean.

LOVE the I2S by the way - great work!!
 
matherp
Guru

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

I should get rid of OPTION DEFAULT MODE

The expectation is that you do everything in mode 1 which includes colour in the editor and just switch modes in a program
There is no advantage of using a default mode other than 1 and downsides as you have seen. You can't possible edit in 1024 mode 2 (256X192) so the firmware automatically swaps to mode 1 when you edit
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 11:51am 25 Jan 2025
Copy link to clipboard 
Print this post

  matherp said  I should get rid of OPTION DEFAULT MODE


That would certainly help - thanks.

Is there any mileage in also disabling the MODE command (and arguably FONT) at the command prompt (assuming not a mammoth task)?
Edited 2025-01-25 21:54 by WhiteWizzard
 
matherp
Guru

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

I've updated the firmware so OPTION DEFAULT MODE/EDIT is probably just about OK now
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 12:08pm 25 Jan 2025
Copy link to clipboard 
Print this post

Peter,

Would it make sense that whatever font-size is used in the Editor (which I think you’ve pre-determined based on OPTION RESOLUTION - and is very readable), that it is also the same sized ALWAYS used at the command-prompt (and hence forced into mode 1 too).

Then only the program can alter the font or mode BUT whenever the program is exited/ends then the command prompt is set back to mode 1 at the pre-determined font size (rather than whatever font/colour was possibly set by the program code).

It just seems to make sense that command-prompt and editor are consistent (and readable!) at all times.

Ideally the user should be able to set the colour of the mode 1 font for the command prompt (and also the EDITOR if Colour-code not set) and this is always displayed/set whenever entering the command-prompt.
 
matherp
Guru

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

No more changes
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 12:23pm 25 Jan 2025
Copy link to clipboard 
Print this post

Peter,

I tested and can report UDA1334A I2S DAC works fine with latest HDMI/USB beta.
PLAY TONE works etc. I could play small FLAC/MP3 980 kb/414 kb files too

3.9 Mb size mp3 file throws heap memmory error , but I did not expected them (bigger files) to play anyways.
Edited 2025-01-25 22:24 by electricat
My MMBasic 'sand box'
 
BarryH

Newbie

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

I have a newer Pimoroni Pico Plus 2W (PPP2W) with a RP2350B processor, and 8Mb PSRAM.
With the PicoMiteRP2350V6.00.02b3 firmware loaded, I can access all the extended GPIO pins (using the extended Freepins subroutine) and activate and access PSRAM using the PSRAM test routine found elsewhere on this website. The MEMORY command also confirms correct specifications.

With the current Webmite MMBasic firmware (and previous betas and releases) I cannot access the extended GPIO pins, and cannot activate PSRAM on GP47.
Using the command OPTION PSRAM PIN GP19 seems to be accepted, however the PSRAM test subroutine found elsewhere on this website fails to recognize PSRAM.
The MEMORY command also fails to recognize PSRAM.

I have tested several previous betas and v6 firmware releases and encounter the same conditions.
I have also used OPTION RESET and factory reset the PPP2W in my endeavours.

Due to my Newbiestatus, I am unsure if full RP2350B functionality should be available when using the Webmite firmware, or there are other technical impediments.
Can any Guru offer some guidance

BarryH

>option list
WebMite MMBasic RP2350B Edition V6.00.02b3
OPTION FLASH SIZE 16777216
OPTION LIBRARY_FLASH_SIZE  34000
OPTION COLOURCODE ON
OPTION HEARTBEAT OFF
OPTION PICO OFF
OPTION CPUSPEED  150000 'KHz
OPTION DISPLAY 55, 155
OPTION WIFI xxxxxxxxxxxxxxxx, *******************, WebPico - Pimoroni
OPTION TELNET CONSOLE ON
OPTION PSRAM PIN GP19

>System Information
MM.Device$ WebMite RP2350B
MM.Info(version) 6.000203
MM.Info(SYSTEM HEAP) 79256
MM.Info(FLASH) 0

>memory
Program:
  1K ( 0%) Program (42 lines)
207K (100%) Free

Library:
  1K ( 1%) Library
207K (99%) Free

Saved Variables:
 16K (100%) Free

RAM:
  0K ( 0%) 0 Variables
  0K ( 0%) General
256K (100%) Free

> freepins 'extended version for RP2350B
GP0 1 OFF
GP1 2 OFF
GP2 4 OFF
GP3 5 OFF
GP4 6 OFF
GP5 7 OFF
GP6 9 OFF
GP7 10 OFF
GP8 11 OFF
GP9 12 OFF
GP10 14 OFF
GP11 15 OFF
GP12 16 OFF
GP13 17 OFF
GP14 19 OFF
GP15 20 OFF
GP16 21 OFF
GP17 22 OFF
GP18 24 OFF
GP19 25 Boot Reserved : PSRAM CS
GP20 26 OFF
GP21 27 OFF
GP22 29 OFF
GP23 41 Boot Reserved : CYW43
GP24 42 Boot Reserved : CYW43
GP25 43 Boot Reserved : CYW43
GP26 31 OFF
GP27 32 OFF
GP28 34 OFF
GP29 44 Boot Reserved : CYW43
[LIBRARY] p = MM.Info(pinno gp$)
Error : Invalid GPIO
BarryH
 
matherp
Guru

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

  Quote  3.9 Mb size mp3 file throws heap memmory error , but I did not expected them (bigger files) to play anyways.


This shouldn't be the case. Please check you have the very latest b3 as this was a bug fixed this morning. The firmware doesn't buffer the file just reads it on the fly.
Edited 2025-01-25 22:45 by matherp
 
     Page 5 of 23    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025