試す - 無料

Learn to Program MCUs with uLISP

Circuit Cellar

|

October 2024

Part 1: Crash Course Offers Insight Into Pioneering Language

- Raul Alvarez Torrico

Learn to Program MCUs with uLISP

Lisp is a Turing-complete programming language, based on Alonso Church's lambda calculus. It was designed by John McCarthy and published in his 1960 paper, "Recursive Functions of Symbolic Expressions and Their Computation by Machine, Part I" [1]. Of its many dialects, Common Lisp and Scheme are the best known, along with the newer Racket and Clojure.

Lisp pioneered many programming language ideas now commonly in use [2], such as higher order functions, recursion, lexical closures, dynamic typing, tree data structures, automatic garbage collection, and the read-eval-print loop (REPL). I've been programming in Common Lisp and Scheme as a hobby for many years. Recently, I discovered uLisp, a version designed to run on microcontrollers (MCUs) [3]. As a fan of Lisp and embedded systems, for the past few years, I've been willing to try the uLisp platform and write about it.

In this article I begin by discussing very simple uLisp examples that showcase basic syntax and programming concepts. Then, I discuss some extensions to the language that deal specifically with MCU-related functionalities, such as general-purpose input/ output and I2C serial data communications. I present some hardware examples using Seeed Studio's Wio Terminal development board and the Sensirion SGP30 gas sensor. Nevertheless, uLisp support as well a few other MCU platforms.

To follow the topics discussed here, you just need a basic knowledge of microcontrollers and the Arduino platform.

ULISP CRASH COURSE

uLisp is available for many MCU boards in five versions [4]. The version of uLisp that you wish to use can be downloaded free from uLisp.​com:

1) AVR: for Arduino Mega 2560, ATmega 1284, and AVR DA/DB series.

2) AVR-Nano: for Arduino UNO, Arduino Nano, and Arduino Every.

3) ARM: for Arduino Zero and MKTZero, Adafruit MO, M4, PyBadge/PyGamer, nrf52840 and Clue, BBC Micro Bit, Teensy 40/4.1, RP2040-based boards, and others.

Circuit Cellar からのその他のストーリー

Circuit Cellar

Circuit Cellar

Bosch Sensortec Launches BMI423 Inertial Measurement Unit

Smart wearables are always on the move-and so is their sensing technology. Bosch Sensortec introduced the BMI423, a new-generation Inertial Measurement Unit (IMU) that combines extended measurement range with low power consumption.

time to read

1 mins

February 2026

Circuit Cellar

Circuit Cellar

Renesas Releases its First Wi-Fi 6 and Wi-Fi/Bluetooth LE Combo MCUs for IoT and Connected Home Applications

Renesas Electronics Corp., a premier supplier of advanced semiconductor solutions, has introduced the RA6W1 dual-band Wi-Fi 6 wireless microcontroller (MCU), along with the RA6W2 MCU that integrates both Wi-Fi 6 and Bluetooth Low Energy (LE) technologies.

time to read

1 mins

February 2026

Circuit Cellar

Circuit Cellar

Airborne Embedded Software: Simplifying Safety and Security

With modern airborne systems no longer isolated computing environments, any vulnerabilities introduced into these increasingly connected devices can quickly become much more than just a cybersecurity issue, but a safety risk no one can afford.

time to read

4 mins

February 2026

Circuit Cellar

Circuit Cellar

Wearable LIDAR Spatial Audio Navigator for Visually-Impaired Individuals

Built with a Raspberry Pi Pico, a TF-Luna LiDAR Sensor, and a Hand-Held Potentiometer

time to read

13 mins

February 2026

Circuit Cellar

Circuit Cellar

ADRs: The Missing Memory in Embedded Projects

Remembering and communicating why design decisions were made and the reasons behind their particular implementations can be critical when it comes to developing software as a team and maintaing that software in the future. This time Jacob shares his thoughts on and experience with one of the most valuable tools to extend the reach of software development memories.

time to read

9 mins

February 2026

Circuit Cellar

Circuit Cellar

Sensors: From Canned Tuna to Caviar

In the first installment of a new Circuit Cellar column on sensors, Brian Chee looks at how sensors figure into larger application packages and when \"just enough sensors\" can be the perfect solution.

time to read

10 mins

February 2026

Circuit Cellar

Circuit Cellar

Embedded DSP with the RT1010 MCU

Part 2: Delay, Flanger, IIR, and Overdrive

time to read

15 mins

February 2026

Circuit Cellar

Circuit Cellar

Omnion Power Provides Modular, Scalable DC Power System Monitoring and Control with New Pulsar 200 Controller

Omnion Power is helping to redefine the role of the DC power system controller with its next-generation Pulsar 200 platform.

time to read

1 mins

February 2026

Circuit Cellar

Circuit Cellar

Robot Operating System 2 (ROS 2): Core Concepts, Architecture, and Real-World Capabilities

The Robot Operating System 2 (ROS 2) is an open-source, middleware framework that addresses the communication and coordination challenges inherent in modern, distributed robotic systems. In this article, Pedro details how ROS 2's architectural foundations successfully address the core limitations of its predecessor, ROS 1, using real-world scenarios, and steps for setting up the ROS 2 Foxy environment on Ubuntu Linux distro, and cross-platform communication between a host PC and a Raspberry Pi module.

time to read

14 mins

February 2026

Circuit Cellar

Circuit Cellar

Ambiq Unveils Atomiq, the World's First Ultra-Low Power NPU SoC Built on SPOT

Ambiq Micro, Inc., a recognized leader in ultra-low-power semiconductor solutions for edge AI, announced Atomiq, the highly anticipated system-on-chip (SoC) integrating a Neural Processing Unit (NPU) designed to enable real-time, always-on artificial intelligence at the edge.

time to read

1 mins

February 2026

Listen

Translate

Share

-
+

Change font size