Skip to main content

Preface Welcome to ENGS 28!

Welcome to ENGS 28: Embedded Systems at Dartmouth’s Thayer School of Engineering!
This interactive textbook accompanies the course and covers the design and programming of microcontroller-based embedded systems using the STM32 Nucleo-64 board (STM32C031C6 MCU). Topics include GPIO, UART, ADC, timers, interrupts, I2C, motor control, sensors, wireless communication, and power management—all implemented in C with direct register-level programming.
Each chapter corresponds to material covered in class, expanded with additional explanations, code walkthroughs, videos, and Check Your Understanding exercises. Video placeholders are marked throughout—fill in YouTube IDs as recordings become available.
Code listings show complete, runnable examples unless marked [fragment]. All examples target the STM32C031C6 and use the course library header ES28.h.
If your programming so far has been in Python, read C for Python Programmers in the back matter first. It introduces the C we use in this course, starting with what the first chapter needs, compared with the Python you already know.
The Key STM32C031C6 Registers Reference and Bit-Manipulation Quick Reference in the back matter serve as quick references throughout the course.
This book grew out of ENGS 28 and its lecture slides, which Petra Bonfert-Taylor has developed over many years, building on the original course she created with Professor Eric Hanson; the book follows those slides closely. An AI assistant (Claude, from Anthropic) helped turn that material into book form: drafting and revising the prose, and formatting the pages and slides. Petra directed the work and reviewed and edited all of it. Technical facts come from the manufacturers’ documentation, which is linked throughout. We ask you to disclose AI use in your own work in this course, so we do the same here.