|
Forum Index : Microcontroller and PC projects : Claude Code and PicoCom3 MicroPython
| Author | Message | ||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
I posted in the "Next Project: MicroPython" thread about getting Gemini to work in PowerShell to produce a northwinds gui: northwinds youtube ![]() I asked Gemini because I Claude Code had run into a session timeout (and did again). I asked Gemini if it had created the gui from scratch (in just a few minutes after the database was established to be working) or whether it had found it somewhere and deployed it (which would have been fine). This is its response: It worked the first time. I took the video for youtube on my phone. The screen is a 7" hdmi screen that I've had in a box for several years. The color and sharpness is fantastic. ~ Edited 2026-07-24 09:55 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
Peter produced v0.12. I flashed it and got Claude code to run the 56-query test from PicoDB (data and queries converted to SQL). The run skipped the 5 queries which updated the basic tables, so as not to corrupt the file for future runs. It ran in 12 minutes, 41 seconds compared to 87 minutes for PicoDB (with the MMBasic code converted to micropython)--9 minutes 19 seconds if the results were not sent to console and hdmi screen. I need to note that the "56" queries were whittled down--I hadn't realized that 3 had been commented out and weren't in either run, and 5 were PicoDB-specific, like switching to SQL mode: Here's the query file: One thing to note--the original test 50 ran for 11 minutes without completing. Claude added an index and rewrote the query and it dropped to 7 seconds. Here's the run log: Note that the same queries ran against the identical SQL database on my laptop in 2.6 seconds. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11779 |
lizby the cache is currently set to 256Kb because we encountered thrashing when it was too big. You can though experiment with the size using c = usqlite.connect("/data.db") c.execute("PRAGMA cache_size = -512").close() # 512 KiB for this connection Please try a few different values and see what impact it has. Note the negative sign in front of the number. Value must be a multiple of 4 I'll be very interested in your results |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
Per Claude: ================================================================================== (The views expressed here are Claude's and do not represent the editorial position of lizby.) ;-} PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
A preview: ![]() At about 3:30 this afternoon I set Claude Code to work on PicoRR, the Vibe Virtual Railroad I previously built in MMBasic with Gemini over the course of 5-6 weeks. Impressive productivity, I thought. It's now 9:12pm, after a nap and dinner for me, and it's basically running with micropython code. I started it back in February to provide a use-case for PicoDB, but with SQLite working on the PicoCom3, there's no point in using a database, so the track segment and railroad car roster files are just read into arrays. Tomorrow we'll do some wrap-up. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 352 |
But is is the same fun if Claude does all the work? Cheers Thomas |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
More fun, as far as I'm concerned. In 56 years of programming so far, I've sought to become more productive. This is certainly the apex of that. It's an old question in the field: is machine code more fun than assembly language; is assembly language more fun than Fortran; is Fortran more fun than C; is C more fun than C++? If you want to produce a product, the method which produces it with the least expense of your time seems to me preferable. As a retired person, 90% of my time is spent on what I consider fun--and here I am talking to Claude, Gemini, and Chat, while getting them to talk to a piece of hardware which was designed (I speculate) entirely for recreation. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 352 |
Fair enough |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
I haven't been pursuing it, but this morning asked Claude to render all layouts and make a montage. ![]() PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 2055 |
@lizby I keep seeing THIS Do you think that it's a too-good-to-be-true? Edit: Looks like a con ![]() Edited 2026-07-28 01:26 by PhenixRising |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11779 |
Yes, probably just wraps the free access |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
I don't see why it would be worthwhile to investigate an alternative to Claude Code when my $20 monthly subscription costs me about $.66 USD a day. I've only timed out of a 5-hour session twice when working with Claude <-> Pico Computer 3. If I wanted to maximize my usage, I could get 3 timed-out sessions--8am to 1pm, 1pm to 6pm, 6pm to 11pm. (Well, I could then submit a long prompt for overnight work to check on in the morning for a 4th session--20 hours of coding out of 24.) I don't believe that I'm remotely paying for the actual cost of what Claude is providing. Prices are bound to go up. But I don't think that a "lifetime" subscription is likely to protect against that. I also believe that within 6 months, "open" coding versions will be able to run on not-too-expensive hardware to do what Claude Code and Gemini do for me now. It won't be edge AI coding, but it will be entirely adequate for what I do. That might even already be available. FWIW, I've been using Opus 4.8 and have found it altogether satisfactory. Opus 5.0 is now available at the same per-token price as 4.8. I asked Claude if it would be more economical to use that, considering that is is more productive, but uses more tokens. Claude suggested that there seemed to be no reason to change. ~ Edited 2026-07-28 01:52 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
Bryan1![]() Guru Joined: 22/02/2006 Location: AustraliaPosts: 2225 |
Well reading the forum over the last few days it does seem I am a late comer when it concerns Claude as it does seem members have been using this for quite awhile. Now my 12 month subscription cost $340 AU which is under $1 a day now with about an hours time yesterday working with the PICO3 Computer where Claude looked at the STL file and found a heap of errors so re-wrote the whole code and the case has already been made by a member so I'm pretty happy my time was well spent According to FEDEX my psram and wifi chips should come finally today and once installed the first bit of code will be a graphic where one can login to the wifi, get the NTP time and display it on the HDMI screen. That second batch of boards has finally got tracking as I got an email saying some yellowing on 2 pcb's was found and is only cosmetic so I replied it's OK just send them. So they should be on the 4th of next month where the plan will be getting 3 of the boards talking to each other over wifi. Well second caffine is gone so time to go open up and see what Claude and I can do today. Regards Bryan |
||||
Bryan1![]() Guru Joined: 22/02/2006 Location: AustraliaPosts: 2225 |
Well had another good day with Claude today I'm trying to get some seeds going and with it mid winter time to be a bit more modern and make some led lights using that sea of holes from a past project.The board now measures 70x60 so as I have a few hundred 5mm white led's we decided 5 in series with a 330Ω going to V+ and the cathode going to a irf44 mosfet now using a couple of npn transistors a vibrator circuit working on 50% duty cycle powers the led's. I found an old power supply 18 volts 2.3A so overkill for what I'm doing but it will do. I have made up a template file in Sprint Layout to help me along and like with every project one seems to have every part but that last one we need. Well the hunt will go on. Regards Bryan |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 9080 |
I may be an incredibly crap programmer, but come the day when access to AI is only possible for the rich and powerful elite, at least I'll still have an idea *how* to program rather than how to instruct a LLM to do what I want. ;) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
With Gemini in Powershell, I provided a serial link to one of my (9) Seagate Dockstars. ![]() This particular Dockstar is an aggregator and reporter--it receives sensor data sent via TCP or UDP, logs it, and produces reports and 4 daily emails to me (plus emergency emails if warranted). I got Gemini to talk to it (as root over serial), asked it to mount a USB drive I had inserted and back up user and configuration files. It did this, but I had to give permission for everything it did. I asked it to walk me through giving it broad permission to do stuff on the Dockstar (build and execute python programs) without giving it permission to run just any python program on my laptop. It did that--but took a number of iterations. Now I feel I'm set up to do what I haven't had the courage to do before--flash a new uboot, which will wipe the flash drive (which has files dating to 2015). Then I can flash a current version of openWrt, which has many upgrades, and restore. Though I've been using the Dockstar since August of 2010, Gemini knows much more about it than I do, and more about Linux/openWrt and bash scripts and python and the programs I have installed. What's not to like? PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| dddns Guru Joined: 20/09/2024 Location: GermanyPosts: 910 |
It was hacked in 2016/17 when I played with this and it runs a full blown Linux. Have fun :) |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
That's a bit cryptic. What was your experience in 2016/17 and would it be relevant today with the latest openWrt, v25.12.5, the version I'm trying to bring all theses up to? Note these Dockstars aren't routers--they're little headless Linux computers which sit on a wired connection and do various tasks--mostly aggregate sensor data and serve camera views. One is a NAS. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| dddns Guru Joined: 20/09/2024 Location: GermanyPosts: 910 |
It's well documented on Openwrt how to flash it, so basically you don't need knowledge and just follow the howto's :) With the convenience to have an already compiled actual kernel. I think OpenWRT is a good choice for this device. Uboot hasn't changed much so I guess it could help a bit, if you have seen Uboot before |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3868 |
I've flashed and reflashed 10 Dockstars, mostly openWrt but earlier Debian with a USB thumb drive. Starting in 2014 a uBoot was available to run entirely from flash and all of mine have had uBoot flashed. But a 2015 uBoot is required to run the latest openWrt version, 25.12.5, which has the latest security updates. I have 5 converted and am about to upgrade the two most important ones, which are central to my house monitoring and reporting setup. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on FOTS |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |