Source: https://mokxi.com/learn/path/build-nerf-sentry
Updated: 2026-11-20

All paths

# Build a foam dart sentry

A foam dart desk guard built safety first: a thermal camera that finds a warm body, pan and tilt aim from its pixels, a range check, a solenoid trigger with a flyback diode, an arm switch, and no-fire zones in code.

Arduino Uno R3 Free 6 lessons 5 h 3 chapters 1,752 XP Robotics · Intermediate +150 XP

0 of 6 done

Start the course free Pan and tilt from a heat map Lesson plan for teachers

What you will build

## 3 projects, built step by step

6 lessons in 3 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Heat tracking

An 8 x 8 thermal camera finds a warm body against a cool room. Pick a threshold, find the hottest pixel, and ignore a hot mug that is not a person.
Open it in the simulator

Chapter 2 project

### A trigger solenoid

A 12 V solenoid pulls the launcher’s trigger through a logic-level MOSFET, a diode catches the coil’s kick, and an arm switch decides whether any of it can happen.
Open it in the simulator

Chapter 3 project

### Project: a desk guard

Put the desk guard together: a full engagement, a magazine that runs out instead of a sentry that never stops, and your no-fire zones.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Find and aim

Pixels as directions for a pan and tilt pair, and an 8 x 8 thermal camera that tells a person from a mug.

Open 205 XP

### Pan and tilt from a heat map

Two servos aim the launcher. A thermal camera fixed on the base gives each of its 64 pixels a direction, and one line of arithmetic turns a pixel into a pan and a tilt.

0 of 5 steps

Start What is in it

Project Locked 410 XP

### Heat tracking

An 8 x 8 thermal camera finds a warm body against a cool room. Pick a threshold, find the hottest pixel, and ignore a hot mug that is not a person.

0 of 5 steps

4 questions, graded as you go.

Chapter 2

## Range and trigger

An ultrasonic range check with no range no fire, and a solenoid on a MOSFET with its flyback diode and an arm switch.

Locked 205 XP

### Range check

A thermal camera cannot tell near from far. An HC-SR04 can: fire only between 1 and 3 meters, and never when there is no echo at all.

0 of 5 steps

Project Locked 410 XP

### A trigger solenoid

A 12 V solenoid pulls the launcher’s trigger through a logic-level MOSFET, a diode catches the coil’s kick, and an arm switch decides whether any of it can happen.

0 of 5 steps

4 questions, graded as you go.

Chapter 3

## Safe zones and the guard

Face height, a doorway and a lock time in code, and a desk guard with a magazine that runs out.

Locked 174 XP

### Safe zones

Places the sentry must never fire: face height, a doorway, and anything it has not watched long enough. Each one is a line of code, checked before every shot.

0 of 4 steps

Project Locked 348 XP

### Project: a desk guard

Put the desk guard together: a full engagement, a magazine that runs out instead of a sentry that never stops, and your no-fire zones.

0 of 4 steps

3 questions, graded as you go.

Syllabus

## Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Find and aim

- Pan and tilt from a heat map Two servos aim the launcher. A thermal camera fixed on the base gives each of its 64 pixels a direction, and one line of arithmetic turns a pixel into a pan and a tilt.
- Heat tracking An 8 x 8 thermal camera finds a warm body against a cool room. Pick a threshold, find the hottest pixel, and ignore a hot mug that is not a person.

Chapter 2

### Range and trigger

- Range check A thermal camera cannot tell near from far. An HC-SR04 can: fire only between 1 and 3 meters, and never when there is no echo at all.
- A trigger solenoid A 12 V solenoid pulls the launcher’s trigger through a logic-level MOSFET, a diode catches the coil’s kick, and an arm switch decides whether any of it can happen.

Chapter 3

### Safe zones and the guard

- Safe zones Places the sentry must never fire: face height, a doorway, and anything it has not watched long enough. Each one is a line of code, checked before every shot.
- Project: a desk guard Put the desk guard together: a full engagement, a magazine that runs out instead of a sentry that never stops, and your no-fire zones.

Keep going

## The next course on your track

Build a foam dart sentry is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a gesture magic wand

A wand that turns flicks into spells: angles from an MPU6050, poses, a time window and a state machine that recognize spells, LED effects, an IR cast that opens a box, and a battery that lasts.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a foam dart sentry

Is Build a foam dart sentry free?

Yes. All 6 lessons of Build a foam dart sentry are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a foam dart sentry take?

About 5 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Heat tracking, A trigger solenoid and Project: a desk guard.

Where do I start?

With "Pan and tilt from a heat map", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
