Python on an Arduino Nano RP2040 Connect
Sat 10 June 2023 — Filed under projects; tags: python, arduinoTable of Contents
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
Table of Contents
Yet another installation of my personal notes for setting up a …
Remap keys for emacs on a remote Windows machine
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
Table of Contents
Yet another installation of my personal notes for setting up a new (or cleanly installed) MacOS computer …
Clean install of MacOS Big Sur
Table of Contents
Yet another installation of my personal notes for setting up a new (or cleanly installed) MacOS computer. The …
Clean install of MacOS Catalina
Table of Contents
Another installation of my personal notes for setting up a …
Clean install of MacOS Mojave
Table of Contents
Another installation of my personal …
Clean install of MacOS High Sierra
Table of Contents
I make it a practice to blow …
Using recursive CTEs for calculating taxonomic lineages
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)
Table of Contents
- Edit 2017-01-09: provide upgrade path to Pulse …