Python on an Arduino Nano RP2040 Connect

Sat 10 June 2023 — Filed under projects; tags: python, arduino

I recently purchased an Arduino Nano RP2040 Connect with the hope of running MicroPython (one of the useful side effects of having kids is an excuse to buy stuff for projects). It's worth noting a couple of the issues that came up.

Installing the .u2f file

First, there appears to be a known problem with the documented method for copying .uf2 files to a connected board from a Mac running MacOS 13 Ventura. This involves placing the board into boot mode, and simply dropping the .uf2 file into the mounted volume in the Finder. The problem (and the solution that I'll mention below) is documented in the smittytone blog. Actually, the author offers a few possible solutions, but the one I used was to run the command

stty -f /dev/cu.usbmodem1101 1200

Where /dev/cu.usbmodem1101 was the file matching the expected pattern that appeared when the board was connected. After I ran this command, a volume appeared in the Finder, and I was simply able to copy the .u2f file from the command line:

cp ~/Downloads/adafruit-circuitpython-arduino_nano_rp2040_connect-en_US-8.1.0.uf2 /Volumes/RPI-RP2

s/MicroPython/CircuitPython

You may notice from the command above that I'm not installing MicroPython at all. Well, after many attempts to connect to the python interpreter after installing MicroPython, I found various reports of difficulties getting it to run on the RP2040. Luckily, AdaFruit maintains a project derived from MicroPython called CircuitPython, and provides a build for many boards, including mine. So after downloading and installing this build as described above, I was able to connect!

So far so good… hopefully in the next post will I'll be able to describe doing something interesting.


Mac M2 Ventura setup

Wed 19 April 2023 — Filed under notes; tags: mac read more

Remap keys for emacs on a remote Windows machine

Sun 02 April 2023 — Filed under notes; tags: emacs, windows read more

I have been working on a Windows machine via remote desktop, and am gradually making it bearable. Emacs is miraculously easy to install to my user's account, but it was not immediately obvious how to reproduce my usual configuration of mapping Option to ESC. One solution is provided by Karabiner-Elements …

Mac M1 Monterey setup

Sat 23 July 2022 — Filed under notes; tags: mac read more

Yet another installation of my personal notes for setting up a new (or cleanly installed) MacOS computer …

Clean install of MacOS Big Sur

Thu 20 May 2021 — Filed under notes; tags: mac read more

Yet another installation of my personal notes for setting up a new (or cleanly installed) MacOS computer. The …

Clean install of MacOS Catalina

Sat 11 April 2020 — Filed under notes; tags: mac read more

Clean install of MacOS Mojave

Fri 15 February 2019 — Filed under notes; tags: mac read more

Clean install of MacOS High Sierra

Fri 17 November 2017 — Filed under notes; tags: mac read more

Using recursive CTEs for calculating taxonomic lineages

Fri 07 July 2017 — Filed under sql; tags: postgresql, taxonomy read more

This topic falls into the category of "things that I didn't know that I didn't know." Many of my projects involve the manipulation of taxonomies, particularly the NCBI taxonomy, but I didn't understand the efficiency with which it was possible to calculate a lineage in SQL. I recently revisited the …

Setting up a new Mac (Sierra)

Thu 05 January 2017 — Filed under notes; tags: mac read more