
Available now in Kindle and paperback
Got a Cardputer Zero and wondering where to start? I’ll take you from turning it on to testing an app of your own. I’ll show you the Linux commands I actually use, what to expect on screen, and what to try when your Zero does something different.
Read a sample · View table of contents · Explore the free apps and guides
Paperback ISBN: 978-1-997095-08-8 · Ebook ISBN: 978-1-997095-07-1
Table of contents
Choose a chapter to see what it covers.
Chapter 1: A short history
- One name, three machines
- The company behind it
- Cardputer, 2023
- Cardputer ADV, 2025
- The leap to Linux, 2026
- The Kickstarter campaign
- Backer editions, Lite and retail
- Carrying it with you
Chapter 2: The hardware and what it runs
- Check for the compass sensor
- What you are holding
- The front: screen and keyboard
- Around the edge: power, switches and ports
- The top edge: the Cap slot
- The battery and power
- What runs under all of this
- Where to take it next
Chapter 3: First boot, and the on-device shell
- Before you switch it on
- If your machine is a Lite
- The first boot
- The wizard: naming yourself and getting online
- Open an app from HOME
- The on-device shell
- Where next
Chapter 4: Linux fundamentals
- Find your way around the files
- Read a command before running it
- Your account and sudo
- Install a package
- Find the Zero on your local network
- Where to go from here
- Where next
Chapter 5: Getting code in and out
- Connect to the Zero over SSH
- Edit a file from your desktop
- Copy a file back to your desktop
- Preview an app on your desktop
- Git: save a version of your work
- Where next
Chapter 6: Anatomy of an app
- What puts an app on HOME
- Follow CWTrainerZero from its package to the Store
- What the Store needs
- What happens when you submit
- A Few of the Apps That I Built for the Cardputer Zero
- How an app runs
- Where next
Chapter 7: Develop on your own machine, test on both
- The desktop and device builds
- Run the desktop preview
- What to check in the preview
- Change one line and follow it to the Zero
- Build the ARM64 package
- Copy and install the test package
- Test on the Zero
- Short utilities on the Zero
- Keep the package you tested
- Where next
Chapter 8: Install on the Cardputer Zero
- What a package installs
- Install from the Store with a share code
- Update an app from the Store
- Install a local package
- Install tools by package name
- Update Debian packages on the Zero
- Where next
Chapter 9: Package and submit to the store
- Read the package metadata
- Give each release a higher Debian version
- Build the release package
- Inspect and test the file you will submit
- From the repository to the Store
- Get the listing ready
- Submit through the Developer Centre
- Post the first-release demo
- Review and publication
- Where next
Chapter 10: Hardware caps and the wider system
- Fit a Cap with the Zero powered off
- Cap CC1101
- Cap LoRa-1262
- Check that the Cap is working
- Radio Field Kit Zero with an optional Cap
- APRSZero with the LoRa-1262
- Tell readers what the Cap does
- The Cap in the Cardputer Mesh Kit
Chapter 11: Community, updates, and keeping your app alive
- Where to ask and share
- Check your app after a system change
- Publish an update
- Edit a listing and tell users what changed
- Keep dated companion notes
- Withdraw a package from the Store
- Where next
Chapter 12: Getting the Zero working again
- Keep your work on the original card
- Rehearse a backup before you need it
- The logo stays on screen
- A Store install stops partway through
- Prepare the spare card
- Boot and check the spare
- Try an alternative system image
Appendices
- Appendix A: Buying
- Appendix B: Links
- Appendix C: Sources
Read a sample
Chapter 4: Linux fundamentals
Try this in CLI. These commands leave your files as they are.
- Run
pwd. Expect one line starting with/, such as/home/greg, then another prompt.pwdprints the full path of your working directory. Think “present working directory” to remember the letters. Use the name on your own screen.- Run
ls. It lists the visible names in the current directory. If the prompt returns without a list, there may be no visible entries there. Tryls -ato include names that start with a dot, such as.profileif your account has that file. The entries.and..refer to this directory and its parent.- Run
cd /to go to the root directory. A successfulcdoften produces no output. Runpwdto check. This time the whole answer should be/. Runlsagain and look for directories such asetc,homeandusr.- Run
cd ~to go back to your home directory. Runpwdagain. If you started somewhere else, this path may differ from the one you saw in step 1.
Chapter 9: Package and submit to the store
From Chapter 9, “Package and submit to the Store.” In this excerpt, $deb is the path to the package you built, and fieldnotes is the example app.
While I was testing TunerZero, a chromatic tuner for musical instruments, HOME began crashing and restarting right after I installed it. The packaged launcher icon was a 16-bit PNG. When I replaced it with an 8-bit version, HOME came back with TunerZero in the list. The launcher reads that icon before you open the app, so start with the launcher assets if HOME itself stops opening after an install.
Package the HOME icon as an 8-bit-per-channel PNG. Set the depth in the packaging step, such as with ImageMagick’s
-depth 8, and check the copy that actually goes into the.deb. The icon in the Store listing is a separate asset. On your Linux build machine, unpack the package into a temporary directory and use the icon path you found in its file list. This example uses thefieldnotesname from above.check_dir=$(mktemp -d) dpkg-deb -x "$deb" "$check_dir" file "$check_dir/usr/share/APPLaunch/share/images/fieldnotes.png"For a full-colour icon, look for
8-bit/color RGBor8-bit/color RGBAin the output. If it reports 16 bits or the file is missing, correct the packaging and inspect the new archive before you install it. After installing the checked build, return to HOME and see that the menu stays up and the new icon appears. Then open and close the app to finish the check.
What this book covers
- First boot and the hardware. Identify your model, get through setup, find HOME and open the on-device shell.
- Everyday Linux. Find your way around the command line, work with files and move them between your computer and the Zero.
- Build and test an app. See how a small app fits together, preview it on your desktop, then install and test it on the real device.
- Package, submit and update. Prepare the app and listing for the Cardputer Zero Store and keep track of later releases.
- Expand and recover. Understand where hardware caps fit in, and prepare a spare system card so you have a way back in if the Zero won’t boot.
Who this book is for
It’s for new Zero owners who want a clear place to start, and for makers who’ve used a Raspberry Pi or an earlier Cardputer and want to build something on the Zero. The book is written for the Linux-based M5Stack Cardputer Zero, not the original Cardputer or Cardputer-Adv.
Free companion apps, guides and book updates
You don’t need to buy the book to use any of these resources. They’re also a good way to get started while you’re waiting for your device.
- Cardputer Zero hub — browse the free apps, projects, book corrections and setup notes.
- Install apps on the Cardputer Zero — start with the on-device Store or learn how manual packages fit in.
- CWDecoderZero — try a real app that can decode Morse audio or play text as Morse.
Buy the book
Choose paperback or Kindle. The Amazon links route to your local marketplace where available.