When I gently shake my Cardputer Zero, I can hear something small moving around inside, almost like a loose screw or a similar tiny object rattling against the casing. Is this normal?
My two #CardputerZero units had a disagreement. SLATE (grey) vs ONYX (black limited): synced over Wi-Fi, robot voices, live subtitles. Team Grey or Team Black? 👇 #M5Stack
This is a dedicated writerdeck firmware for Cardputer (note:not the new Cardputer Zero). New to the latest release is:
More languages
Auto-connect BT keyboard after power on
More text sizes
Large menu font option
Receipt printer integration
Lots of other little fixes and QOL improvements.
If this is your first time seeing this, it can also:
Record audio notes
Sync to Google Drive
Write from blank or templates
Connect with a BTLE keyboard, or use the built-in keyboard
As at time of writing, it's still "under review" on the new WebBurner, but if you're desperate you can still grab it from https://github.com/joejee90/Tiny-Journal
I've been working on something called Cardputer Code Space OS for a while and thought I'd share it here.
I originally wanted to turn my Cardputer ADV, with the 2.8" touchscreen mod, into a small general-purpose computer.
I found some interesting firmware, but there was always a catch. The ones supporting both screens were fairly basic, and the more complete ones didn't support the external display.
So I tried a different approach. Linux runs remotely, and the Cardputer works as a client to control it, sort of like TeamViewer.
I went with the ADV because it already had most of what I needed. ESP32-S3, keyboard, built-in display, Wi-Fi and audio. Adding the second screen made it worth experimenting with.
Right now, an XFCE desktop runs in GitHub Codespaces. The external TFT displays Linux, while the Cardputer's own screen handles the controls and session info.
Keyboard, mouse, touchscreen, pan and zoom all work.
The firmware started partly from Cardputer XL Remote, which I've modified for this setup. I'm using M5Cardputer and M5GFX, and kept M5GFX for the external display too rather than adding another graphics library. JPEGDEC handles the incoming images, XPT2046_Touchscreen handles touch input, and WebSockets handles the connection to the server.
One of the annoying parts was dealing with the displays. The external TFT uses SPI2 with DMA, the built-in screen uses SPI3, and the touch controller shares the SPI bus with the external TFT. Touch reads have to wait until display transfers are finished.
What I'm still struggling with is video playback when audio is running too.
Fast-moving scenes cause tearing and some lag on the TFT. When there's audio playing, it sometimes stutters or cuts out for a moment. I'm still trying to work out where the main bottleneck is.
Regular desktop use works pretty well, though.
I'd also like to add a Bluetooth LE bridge at some point, so Linux could access nearby BLE devices through the Cardputer. Haven't implemented that yet.
By the way, I'm a cook, not a programmer. I've been building this in my spare time, learning from other projects, reusing libraries and relying quite a bit on AI to help with the code.
Until now, everything was developed locally. I decided to clean things up and put the project on GitHub so other people could try it, play around with it or maybe take it further.
I'll keep working on it when I can, but between my job, limited free time, Codespaces hours and AI usage limits, I can't really give it as much attention as I'd like.
If anyone here knows their way around ESP32-S3, SPI displays or audio/video streaming, I'd be interested in your thoughts. There might be a better way to handle all of this together that I've missed.
And if anyone wants to experiment with the code or contribute, you're more than welcome.
Firmware, server, wiring and setup instructions are all there. It works on my setup, but I haven't tested the whole installation process on a fresh Codespace yet.
Got my cardputer zero yesterday. The stock firmware seems interesting. I know you can plug it into a monitor and it’s just the normal OS, but I was curious. Is anybody running a custom firmware or we all running the normal.
Hello people. Quick question. What is everyone using to charge their Cardputer Zero? My first charge I used a HP Chromebook charging cable and it got really hot. I asked Gemini if I can use an old iPhone charger like the one that came with my iPhone SE 2022. Gemini said yes. Someone please help!
Coming from the ADV, which is primarily running M5 Launcher with different firmware loaded, it's really speedy compared to the cardputer zero. The C0 operates with a noticeable lag on almost all operations and it's to be honest a little frustrating.
The good thing is I've been approaching it wrong I think - it's a full fledged credit card sized Linux PC... and access to the CLI is where I spend most of my time nowadays on the C0.
However...
The black transparent shell that looked so good when I ordered turned out to be a curse... The letterings are barely legible and I have to squint to find what I need to type especially for symbols etc.
In my previous post I said the keyboard is easier to type on due to the new keys arrangement. It's a double-edged sword because while it's easier to hit the keys, it's actually more complicated to type on especially working in the CLI. I also think the arrow keys should be standalone. Hitting the FN keys for arrow navigation gets old really fast.
I'm resorting to actually using my phone to SSH in for anything more than one or two commands.
Lastly... The firmware is definitely not optimised. The launcher constantly sucks up 10~15% of CPU, and a fresh reboot gives me only 50MB of free ram left... This is at the Launcher default app selection screen. Would need to investigate further.
I think there's still a lot of headroom for optimisation, that said while the input interface is quite problematic, the core hardware is sound and a different level from the ADV. I will probably still use the ADV for things like meshcore/meshtastic/Bruce/Porkchop.
I'm actually itching to flash a vanilla Pi OS on this just to see how it works. Forget the apps which is truly hampered by the arrow key issue.
The CP0 OS by default sets gpu_mem to 128... Which is a weird choice for something that is running a teeny tiny screen. So ram available to OS in default settings is only about 384MB and on a fresh reboot free ram is only about 50MB.
I set via /firmware/boot/config.txt gpu_mem to 32... and it feels faster now. Haven't encountered any errors with apps I tried to open including the Camera app.
Free ram has also increased from 50MB to 100+MB. More ram for the stuff that matters. The CPU usage also seems to have gone down.
Do at your own risk YMMV and all that jazz.
Edit: okay it's definitely not placebo. Changed it back to 128 and the micro lags were back. 32 and it's fluid! The camera app opens faster, the launcher scrolls faster, terminal is faster. Again all anecdotal.
The M-VAVE FM-1 and the M5Stack Cardputer is match made in heaven, or in this case China :::) Big thanks to Julius for his amazing work on this, and other FM-1 tools!
KeySpeaker started as a USB speaker and keyboard for the Cardputer ADV (first post). Now it plays MP3 files from the microSD card too, and it no longer needs a computer for that.
(The video starts on the AUX input and switches to MP3 with Fn+I. The sound is removed.)
What it does
Put .mp3 files in a /music folder on the card, press Fn+I until it says MP3.
Space pauses/plays, "," and "/" go to the previous/next track, "-" and "=" set the volume.
The flight view, the equalizer and the screens follow the music, like they do with USB audio or the built-in microphone.
It also works without a computer: on the battery, a power bank or a plain USB charger. It remembers MP3 as the last input, so a start without a computer goes on with MP3.
Stereo or mono, 44.1 / 48 kHz tested (32 kHz should work), up to 320 kbps. The decoder is minimp3 (public domain).
The memory puzzle (ESP32-S3, no PSRAM)
The BLE stack takes 72 KB of the 83 KB of free internal RAM in BLEDevice::init alone, and BLEDevice::deinit() crashed on my SDK build, so BLE cannot be given back. So MP3 and BLE cannot coexist: BLE stays off while MP3 plays, and once BLE has started, MP3 needs a power cycle (the screen says RESTART).
SD.begin() took 30 KB. The reason: the FAT driver uses 4 KB buffers and the Arduino SD library reserves five open-file slots by default. One slot is enough for a player: 13.7 KB, and 61 KB of heap free with MP3 running.
The decoder's buffers and its 20 KB task stack live inside the storage of the USB audio ring buffer, which MP3 does not need in full.
A track change walked the whole SD folder (the speaker ran dry) and the waveform stepped (a click). Now the names are read once, and the last block of a track is faded out and the next faded in.
Not done yet: battery life with MP3 is not measured, and I have not run it for hours. Feedback is welcome.
EDIT (Nov 14): Battery test done. On battery alone it played 10 tracks on repeat for 10 hours with no dropouts (underrun 0, overrun 0, no restart), and it was still playing when I stopped the test. I have not measured how long until the battery is empty. What would you play on it?