Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:21 05 Dec 2026 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 : Next project: Micropython on the Pico Computer 3 - progress reports

     Page 4 of 4    
Author Message
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 627
Posted: 09:12pm 01 Aug 2026
Copy link to clipboard 
Print this post

Ok Peter, thank you for the information.
Can I get the framebuffer start memory address? I want to test memory to memory direct copy
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2307
Posted: 12:04am 08 Aug 2026
Copy link to clipboard 
Print this post

Peter when I first started out with micro-python I had a user manual where it gave the link to the firmware in the pdf and had all the info for mips, now I did read in that section one could setup a GPS using mips but silly me when a new manual came out as the filename was the same I clicked replace file   and lost that pdf.

Now I have been researching every version on your github but do think I can find that pdf again so a link to that pdf would be great  

Regards Bryan
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4409
Posted: 07:56am 08 Aug 2026
Copy link to clipboard 
Print this post

What's the file name and do you have some idea of the likely date (or date range)? It may be on archive.org or someone may have it.

John
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 10:17am 25 Aug 2026
Copy link to clipboard 
Print this post

v0.16 is now available incorporating the official Micropython v1.29.0 build
https://github.com/UKTailwind/micropython/releases/tag/v0.16
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2307
Posted: 10:51pm 25 Aug 2026
Copy link to clipboard 
Print this post

Peter looking at that link to V0.16 it says TinyUSB is at 0.20 and with this build only USB host mode, now when that 10.1" IPS screen turns up the touch screen works via a microUSB port and with earlier attempts getting a USB stick be work had failed.

Now I have asked claude about this and the reply was the USB stack isn't on the repo for this build so I said if it's not there then lets write a new USB stack so both the touch screen and a USB stick can be used for data collection and import.

It's reply was yes this can be done so just say the word  

Got to head down the hill today as my brother-in-law is coming over from the east to deliver a 50 gram pack of Port Royal as this isn't available in this country anymore due to the arcane govt reg's.

Regards Bryan
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2307
Posted: 11:56pm 25 Aug 2026
Copy link to clipboard 
Print this post

Ok half an hour with claude V0.16 now has

PR is live: UKTailwind/micropython#1. Let me update the memory on this fork so a future session knows to check on it.


Saved a memory
Done. Summary of what happened:

Investigated the actual firmware source — found it lives on a pico-computer-3 branch of UKTailwind/micropython (not master), with a fully custom USB host stack already built for keyboard/mouse/gamepad/touch/serial.
Found the exact gap: TinyUSB's mass-storage host class (CFG_TUH_MSC) was never enabled, even though the vendored TinyUSB already ships it.
Wrote the patch: machine.USBDrive (a vfs.VfsFat-mountable block device, structured like the existing machine.SDCard) plus pcusb.py to auto-mount it at /usb, following the codebase's own conventions throughout.
Opened it: UKTailwind/micropython#1, from a fork at Bryan1club/micropython.
One honest caveat, called out in the PR itself: it's checked carefully by inspection against the pinned TinyUSB version, but not compiled or hardware-tested — there's no ARM toolchain on this machine. If UKTailwind merges it (or asks for changes) and it lands in a release, club.py would then read a USB stick via /usb/... exactly like it does /sd/... today, no further firmware work needed on your end.


Peter I hope you don't mind forking this to your github site as it this is for everyone.

Regards Bryan
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2307
Posted: 12:21am 26 Aug 2026
Copy link to clipboard 
Print this post

Ok I have claude making a new .uf with the fork to using a USB stick in club.py which will go on my github site and got told as it's going to take some time I will have to wait until I get back from town.

So one very interesting day indeed where claude has downloaded all the tools to make the .uf on this computer  
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 08:08am 03 Sep 2026
Copy link to clipboard 
Print this post

V0.17 is now available on https://github.com/UKTailwind/micropython/releases/tag/v0.17

This updates the version of TinyUSB to v0.21 and fixes bugs in that release. In addition it includes support for a USB flash (stick) drive
 
Bryan1

Guru

Joined: 22/02/2006
Location: Australia
Posts: 2307
Posted: 12:15pm 03 Sep 2026
Copy link to clipboard 
Print this post

Well my daughters boyfriend is coming over on Sunday to set my shed up with wifi and network so a pico3 is going to be the newer server where it controls the network so in the morning a USB to network dongle will be bought so with those computers with no wifi and only network can be controlled by the pico3.

So a shutdown command will be easy to do from a in/out switch so when I;m finished in the shed they can be turned off.\

From what I described to Sam tonight he is blown away and thinks I may have a job in the teaching department.

Anyway it is a fun journey and it does look like I'm the only doing micro-python where personally it just rocks.

My end goal is to use old dumped laptops so they have a new life doing the job but thats next week.

Peter please have a look at my firmware as BT connects with just hitting the pair button on the flip 6 so a good ol' jukebox is there.

Regards Bryan
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 02:28pm 03 Sep 2026
Copy link to clipboard 
Print this post

Link?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 12327
Posted: 12:51pm 03 Dec 2026
Copy link to clipboard 
Print this post

Pico Computer 3 & 2: MicroPython v0.18 release notes

3 December 2026. Compared with v0.17, the last version released (its firmware.uf2 as updated on 3 September, with the USB host hardening).

This is MicroPython 1.29.0 for the Pico Computer 3 and the Pico Computer 2 (RP2350B), with the machine's screen, keyboard, mouse, sound, SD card and USB drives. Please report problems on the Back Shed forum.

The files are at https://github.com/UKTailwind/micropython/releases/tag/v0.18 : firmware.uf2 for the machine, pc3emu-linux-x64.tar.gz for the PC emulator (Linux, or Windows through WSL2), and the User Manual as USER_MANUAL.pdf and USER_MANUAL.md.

v0.18 brings:

• Ctrl-C stops a database query. A long SQLite statement ends with a KeyboardInterrupt that your program can catch. Before, a big sort or index build could not be stopped, which looked like a hang.
• Big sorts take a quarter of the memory, 256KB where they took 1MB, in the same time. That pays for a page cache four times the size, 1MB, which makes queries with a temporary table (DISTINCT, some subqueries) faster.
• ANALYZE is an error, where it did nothing and seemed to work.
• The mouse pointer in RGB1024 mode is drawn where the mouse is; it was a pixel off.
• The book: every example has been run on a machine and its bugs fixed, a new Appendix K covers the Colour Maximite 2, and the book can be built as a web site.


Before you update
Write the firmware as before. Your files and settings survive.

USB HUB switch to DISABLE, connect the Prog port to a PC, hold BOOT and click RESET, drag firmware.uf2 onto the drive that appears, then switch back to ENABLE.

A database made by v0.17 opens in v0.18 as it was: SQLite is still 3.47.0, and its files are SQLite's.


What is new
SQLite (usqlite)
• Ctrl-C ends a long statement. SQLite now looks for a Ctrl-C every 1,000 of its steps, from the USB keyboard or the serial console, and ends the statement. The call that ran it, execute() or the loop over its rows, then raises KeyboardInterrupt, which an except KeyboardInterrupt in your program catches. A change that was interrupted is undone: inside BEGIN ... COMMIT, the whole transaction is. One pass of a very large sort finishes before the statement stops.
• Sorts take far less memory. ORDER BY, GROUP BY, DISTINCT and CREATE INDEX keep at most 256KB of rows in memory before they write a run to a temporary file. They used to keep up to 1MB, whatever was asked, and a big cache made them keep more: that was the hang of a 4MB pool that v0.12 cured by keeping the cache small.
• The page cache is 1MB (it was 256KB), in slots of its own at the start of SQLite's 4MB of memory. Each 4KB page used to take an 8KB block, so the cache cost twice its size.
• ANALYZE says "ANALYZE is not available". This build has no ANALYZE, and before it did nothing and reported success.
• usqlite.mem_current() and mem_peak() report SQLite's memory less the page cache's 1MB, which is set aside at the first connect().

The screen and the prompt
• The mouse pointer in RGB1024 mode is drawn where the mouse is. Its pixels were placed the wrong way round in each pair, so it showed a pixel off.
• auto() works at the prompt, as chapters 30 and 36 of the book use it.

The book
• Every example has been run, and the ones that failed are fixed. The adventure of chapter 25 made its framebuffer, as chapters 17 to 24 do, and its tile map takes a whole number. Chapter 29's mktime() is given its eight values. Chapter 31 imports from ulab import numpy as np. Chapter 30's GitHub example sends the User-Agent that GitHub asks for.
• Appendix K, Running this book on a Colour Maximite 2, covers its MicroPython: starting it, files, pins, Wi-Fi, the clock, memory and the cmm2 module. Chapters 1, 2, 4, 5, 15, 29, 30 and 32 point to it.
• The book builds as a web site as well as a PDF and an EPUB (make web): one page per chapter, Previous, Contents and Next on every page, and fonts that every reader has. Its listings no longer lose their indentation on a machine without the DejaVu fonts.

Building
BUILDING.md says how to build the firmware, the PC emulator and the manual from a fresh copy of the source: what to install, the submodules, the build and how to flash it.

The PC emulator
pc3emu has the same SQLite settings as the firmware.


What behaves differently
• ANALYZE is an error where it reported success.
• Ctrl-C during a query raises KeyboardInterrupt from the call that ran it. Before, the query ran to its end, and the KeyboardInterrupt came after it, at a place a program's try might not cover.
• usqlite.mem_current() and mem_peak() leave out the page cache.
• CREATE INDEX writes more temporary data. Its runs are smaller, so there are more of them: on the board's flash an index over 20,000 rows took 194 seconds where it took 167, run one after the other from the same state.


Tested
On a Pico Computer 3, firmware built from this release's sources, and v0.17's for comparison. 20,000 rows were on the board's flash, with SQLite's temporary files there too:

• ORDER BY: 17.7 seconds and 291KB, where v0.17 took 18.7 seconds and 1,546KB.
• GROUP BY: 17.3 seconds and 292KB, where v0.17 took 17.2 seconds and 1,547KB.
• CREATE INDEX: 194 seconds and 301KB, where v0.17 took 167 seconds and 1,564KB.
• ANALYZE: the error, where v0.17 reported success.

The sizes are the most SQLite's memory held during each statement. v0.17's include its page cache, which could take up to 512KB, and v0.18's leave out the 1MB set aside for its cache. Either way, v0.18's sorts use about a quarter of what v0.17's did.

• Ctrl-C over the serial console, 3 seconds into a statement of 3,000,000 steps: v0.17 ran it to its end (123 seconds), and the KeyboardInterrupt then went off outside the program's try and stopped the program. v0.18 stopped the statement 0.22 seconds after the key, the program caught the KeyboardInterrupt, and the database answered the next query.
• The test files were removed from the board's flash afterwards.
• This release's own firmware (the build firmware.uf2 is made from), on the same board: the banner says v0.18, 2,000 rows sorted in order, ANALYZE refused, and a Ctrl-C 3 seconds into a long statement caught 0.21 seconds later, with the database still answering.
• The emulator in this release's tarball says "PICO COMPUTER 3 v0.18 emulator", has the 1MB cache, and refuses ANALYZE.

On the PC emulator (the same SQLite settings, 200,000 rows): ORDER BY 1.9 seconds where it took 1.2, with 0.53MB of SQLite's memory beside the cache where it took 1.6MB with it; DISTINCT 54 seconds where it took 65; CREATE INDEX 2.6 seconds where it took 1.8.

The book's examples were run on a Colour Maximite 2 (its MicroPython app), and the failures were checked on a Pico Computer 2 with the PC3 firmware before they were fixed.


Known problems
• A Ctrl-C from the USB keyboard during a query has not been tried on the machine. It comes through the same check as the serial console's, which has.
• One long step of a big sort runs to its end before Ctrl-C stops the statement.
• In the PC emulator, Ctrl-C always stopped a query, with v0.17's SQLite too: the emulator handles Ctrl-C another way. It is not a test of this fix.
 
     Page 4 of 4    
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026