Prøve GULL - Gratis

Learn Lisp Programming Using MCUS

Circuit Cellar

|

March 2025

Part 3—Forward Kinematics in µLisp

- Raul Alvarez

Learn Lisp Programming Using MCUS

µLisp is a dialect of the Lisp programming language for MCUs with limited RAM. In Part 1, Raul presented µLisp concepts and syntax, and extensions specific to MCUs, and in Part 2, he added extensions by using custom functions. In Part 3 of this article series, he implements a new extension to multiply matrices, and uses µLisp to implement forward kinematics for a mini robotic arm.

In this last part of the series on Lisp programming with microcontrollers, we will use everything we previously learned about µLisp programming. We will compute "forward kinematics" (the process of computing the pose of a robotic arm, based on the angles of its rotating joints), using homogeneous transformations for the three-degrees-of-freedom (3DOF) mini robotic arm presented in Part 2 of this article series [1]. To achieve this, we will implement a matrix multiplication extension to µLisp. Along the way, we will also continue to further explore the Lisp programming language, while we challenge ourselves with math and the fundamental concepts of robotic arm kinematics.

To follow the topics discussed here, you need to be familiar with Arduino and µLisp programming. Please see the first two parts of this article series for information [1, 2]. "Robot kinematics" refers to the relation between the geometry and movement of a robot. It is also desirable to have some background in robot kinematics with the Denavit-Hartenberg convention and homogeneous transformations, so I will give a simple explanation of the basics. The latter, however, is really tangential to the subject of the entire article series.

LISTS AND ARRAYS

Lists are one of the most fundamental data structures in Lisp. In Part 1, I discussed how to create them. Lines 1-2 from Listing 1 are a reminder of two equivalent methods discussed. However, there's a third method of creating lists by "consing" atoms (Lisp primordial objects) with the

FLERE HISTORIER FRA Circuit Cellar

Circuit Cellar

Circuit Cellar

Alif Semiconductor Elevates Generative AI at the Edge with New Support for ExecuTorch Runtime in Its Ensemble MCUs

Alif Semiconductor, the leading global supplier of secure, connected, power efficient Artificial Intelligence and Machine Learning (AI/ML) microcontrollers (MCUs) and fusion processors, announced that developers can now use the ExecuTorch Runtime, a quantization extension of the popular PyTorch ML framework, for AI applications built to run on its Ensemble E4/E6/E8 series of MCUs and fusion processors.

time to read

1 min

December 2025

Circuit Cellar

Circuit Cellar

Encrypted MQTT Protocol for Critical Sectors

Mechanisms, Challenges, and Best Practices

time to read

3 mins

December 2025

Circuit Cellar

Circuit Cellar

Datasheet: Small Size, Big Power

Smaller Microcontrollers Bring New Possibilities

time to read

9 mins

December 2025

Circuit Cellar

Circuit Cellar

Analog Devices Launches ADI Power Studio and New Web-Based Tools

Analog Devices, Inc. (ADI), a global semiconductor leader, announced the launch of ADI Power Studio, a comprehensive family of products that offers advanced modeling, component recommendations, and efficiency analysis with simulation.

time to read

1 mins

December 2025

Circuit Cellar

Circuit Cellar

Compact IBR300 2.5" SBC Powered by NXP i.MX 93 from IBASE

IBASE Technology, Inc., a leading provider of rugged embedded computing platforms, announced the release of the IBR300, a 2.5\" RISC-based single board computer (SBC) powered by the NXP i.MX 93 processor with dualcore ARM Cortex-A55 (up to 1.7GHz) and a Cortex-M33 MCU.

time to read

1 min

December 2025

Circuit Cellar

Circuit Cellar

Sensors in the Spotlight

The Next Decade of Embedded Sensor Systems

time to read

12 mins

December 2025

Circuit Cellar

Circuit Cellar

Bob's Wrap Up

In Bob's last article with Circuit Cellar, he attempts to wrap up a career of more than 50 years as an embedded systems engineer and 14 years with Circuit Cellar. He looks at each of his 58 articles by category and provides some recommendations for his fellow engineers.

time to read

7 mins

December 2025

Circuit Cellar

Circuit Cellar

Designing Embedded Software Architectures That Last

I've reviewed hundreds of firmware projects over the years, and one thing always stands out: the most successful projects have a clear, deliberate architecture.

time to read

10 mins

December 2025

Circuit Cellar

Circuit Cellar

Broadcom Introduces Industry's First Wi-Fi 8 Silicon Ecosystem Powering the AI Era

Broadcom, Inc. unveiled the first Wi-Fi 8 silicon solutions for broadband wireless, targeting residential gateways, enterprise access points, and smart mobile clients.

time to read

1 mins

December 2025

Circuit Cellar

Circuit Cellar

GD32 MCU Family Expands High-Performance Portfolio with New GD32F503/505 Series MCU

GigaDevice, a leading semiconductor company specializing in Flash memory, 32-bit microcontrollers (MCUs), sensors, and analog products, announced the official launch of the GD32F503/505 series of high-performance 32-bit MCUs, expanding its product range based on the ARM Cortex-M33 core.

time to read

1 mins

December 2025

Listen

Translate

Share

-
+

Change font size