# Auto-Braking Car with LEGO Distance Sensor (LEGO + Scratch)

> Stop motors automatically when an obstacle is detected nearby.

LEGO and Scratch physical computing guide: Stop motors automatically when an obstacle is detected nearby.

## How LEGO Connects to Scratch

Stop motors automatically when an obstacle is detected nearby.

Before starting, confirm Scratch Link (for Bluetooth devices) or USB keyboard input (for Makey Makey) is active on your computer.

- [All 15 Hardware Projects](/en/hardware/): Explore more micro:bit, LEGO, and Makey Makey ideas.
- [micro:bit Setup Guide](/en/microbit/): Full Bluetooth and HEX setup instructions.

Updated: 2026-11-24
Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/)
Japanese Edition: https://scratch.gmnavi.jp/hardware/lego-distance-stop/

[Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)
