Category Archives: How To (Pi)

How to use zmv — Z Shell’s super-smart file renamer

I’d like to introduce you — if you’re not already acquainted — to the Z Shell’s incredibly handy function zmv. If you ever need to change at the command line the names of a batch of files consistently, it’s the tool you’ll want to turn to first. It’s not well known, and having been given the nod by a colleague, I thought I’d explore and pass on some notes about taking advantage of it.

Continue reading

Play Hunt the Wumpus, Raspberry Pi Pico style

Here’s something a little different: a basic C project that you can follow to build a fun handheld game with a Raspberry Pi Pico. Your mission: to enter a dark cave, and then locate and destroy the monstrous Wumpus.

Locate and eliminate the monstrous Wumpus to win fabulous prizes… well, a trophy graphic…
Continue reading

How to debug a Raspberry Pi Pico with a Mac, SWD and… another Pico

When you’ve used Serial Wire Debug (SWD) to help you correct the C or C++ code running on your Raspberry Pi Pico, you’ll never want to go back to USB and the UF2 file system again. I don’t — no more messing about unplugging and re-plugging cables for me.

The Raspberry Pi Pico
The Raspberry Pi Pico is ready for Serial Wire Debugging
Continue reading

How to program the Raspberry Pi Pico in C on a Mac

Last week I tried the Raspberry Pi Pico with MicroPython. The Raspberry Pi Foundation would be sufficiently commended for providing only this level of programming support. MicroPython leverages the Python skills of the many Raspberry Pi users out there and is accessible to plenty of others too. But the Foundation has also provided a C/C++ SDK, and this opens the Pico up to serious embedded-system developers too.

The Raspberry Pi Pico
Continue reading

Look, ma, no SD! Boot a Raspberry Pi from USB only

The Raspberry Pi 4 is now capable of booting from a USB Flash drive without requiring an SD card to kick-start the process. Here’s how you set it up.

USB disk, yes (left) — SD card, no (right)
Continue reading

A cure for Raspberry Pi ‘Slow USB Mouse Syndrome’

I don’t quite know how I missed this, but I’m guessing plenty of Pi users might have missed it too so here it is. If you’re tired of the Raspbian desktop’s too, too laggy mouse performance, there’s a very easy cure. Poor mouse responsivity was the only thing preventing me from using the Raspbian desktop on a regular basis. Here’s how to fix it.

Continue reading

Easy Ethernet access for a headless Raspberry Pi

This neat trick is implemented on the Raspberry Pi-based Twilio Developer Kit for Broadband IoT, with which I’ve been working a lot of late (as a Twilio staffer). It lets you connect a headless Pi to your main machine via Ethernet just be plugging in a cable. It also maintains the Pi’s own wireless connection to the Internet.

Continue reading

How to view a Raspberry Pi desktop on an iPad

My exploration of using a mouse with an iPad got me thinking: since I log into my Raspberry Pi remotely using SSH and the app Termius, could I also run a remote desktop session on my iPad too?

C396B450-7ED8-4793-ABE8-143C66CACD76

Continue reading

How to use a mouse with an iPad

You don’t need a mouse when you’re using an iPad, right? That’s Apple’s view, but it’s not mine. If you use an iPad as a small, very portable laptop — maybe you have the iPad’s Smart Keyboard add-on — then you don’t necessarily want to be moving your hand up to the screen every time you want to point and click.

0A8EE407-2BC0-4846-95C9-15121750722B

Continue reading