Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Part 125 min · narrated · preview

Written summary

  • Chapter 1: The Silent Brain...–- Your toaster has a computer.
  • This is a book about programming when the code meets the real world—when a missed deadline means a motor keeps spinning instead of stopping, when a buffer overflow sends a drone into a tree, when a poorly chosen microcontroller leaves your…
  • The computer inside a microwave oven reads a keypad, drives a display, and controls a magnetron.
Read along — the full text

Chapter 1: The Silent Brain...–- Your toaster has a computer. So does your car, your watch, and the toy that keeps barking until someone steps on it. But none of those computers look like the one on your desk. They have no screen, no keyboard, no mouse, and certainly no patience for you clicking around in a web browser. They are embedded, hidden, single-minded, and absolutely unforgiving when it comes to time. The robot you are about to build runs on exactly this kind of computer, and if you do not learn to speak its language of deadlines and constraints, it will fail in ways that have nothing to do with bugs and everything to do with physics.This is not a book about programming in the abstract.

This is a book about programming when the code meets the real world—when a missed deadline means a motor keeps spinning instead of stopping, when a buffer overflow sends a drone into a tree, when a poorly chosen microcontroller leaves your robot blind and confused in the middle of a room. The robots that work, the ones that vacuum your floor without falling down the stairs and the ones that assemble cars with surgical precision, all rely on a branch of computing that most software engineers never have to think about. They rely on embedded systems.An embedded system is a computer built to do one thing, or a small set of related things, and to do that thing within strict physical constraints.

The computer inside a microwave oven reads a keypad, drives a display, and controls a magnetron. It does not check email. It does not update its own operating system. It runs the same loop, millions of times, for the entire life of the appliance. A robot’s embedded system is similar but far more demanding. It must read sensors, run control algorithms, and command actuators, all while the robot is moving through an unpredictable world. A late sensor reading means the robot acts on old information, which might mean crashing into a wall. A control loop that takes too long means the motors become jerky and unstable. An embedded system that runs out of memory in the middle of a critical maneuver cannot just show a popup dialog—it fails silently, physically, and often destructively.Before you write your first line of robot code, you need to understand what kind of computer lives inside a robot, what it can and cannot do, and why the rules that work for web development and data science will get your robot killed.

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in