Source: https://mokxi.com/teachers/plans/factory-automation
Updated: 2026-11-19

Lesson plan

# Factory automation systems lesson plan

How a robotics and automation technician runs a cell: conveyors and sensors, sequences as state machines, sorting stations, interlocks and permissives, an HMI with alarm acknowledge, e-stop and fault recovery, and a sorting line to run.

3 chapters, 7 lessons, about 7 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- A bottling line walked input by input, then its cycle as a state machine with timeouts for jams and starving.
- A color sorting station that measures, decides and confirms, then permissives and interlocks on a sorting cell.
- An HMI with alarm acknowledge, the e-stop and its reset, a starved line brought back, and a production run.

### Materials for the whole unit

- Arduino Uno R3
- Candy color sorter
- Character LCD with I2C backpack
- DC motor
- Float switch, ZP4510
- Half breadboard
- IR proximity switch, E18-D80NK
- LED and key board, TM1638
- Limit switch, lever microswitch
- Mini water pump
- Obstacle sensor, FC-51
- Piezo speaker
- Pushbutton
- Relay board, two channels
- Relay module

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 2 h 10 min

## Lines and sequences

A bottling line walked input by input, then its cycle as a state machine with timeouts for jams and starving.

Lesson | Time | What students do

Conveyors and sensors A bottling line: a belt on a relay, an IR eye that sees each bottle arrive, a float that says full, and a guard on the door. Meet every input and output the way a technician does, one at a time. | 65 min

- Walk the line
- The guard
- Start the belt
- A bottle arrives
- Full

Sequences A machine cycle is a state machine: one state at a time, a sensor to leave each one, and a timer that says something is wrong. Run a full cycle, then break it on purpose. | 65 min

- One full cycle
- A backstop timer
- A jam
- Starved
- Smaller bottles

### Materials

- Arduino Uno R3
- Character LCD with I2C backpack
- DC motor
- Float switch, ZP4510
- Half breadboard
- Limit switch, lever microswitch
- Mini water pump
- Obstacle sensor, FC-51
- Piezo speaker
- Pushbutton
- Relay board, two channels

### Check for understanding

Each student finishes "Sequences" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Smaller bottles".

Chapter 2. About 2 h

## Stations and safety

A color sorting station that measures, decides and confirms, then permissives and interlocks on a sorting cell.

Lesson | Time | What students do

Sorting stations A color sensor and a diverter: measure, classify against references, route each part to its bin, and confirm it got there. | 65 min

- The station
- Measure and decide
- The next one
- Count what arrived
- A new product

Interlocks and permissives Permissives decide whether a machine may start; interlocks stop it when a condition fails while it runs. Meet both on the sorting cell, with a start-up warning and a guard door. | 55 min

- Start refused
- Warn, then run
- The interlock
- No surprise restarts

### Materials

- Arduino Uno R3
- Candy color sorter
- Half breadboard
- IR proximity switch, E18-D80NK
- LED and key board, TM1638
- Relay module

### Check for understanding

Each student finishes "Interlocks and permissives" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "No surprise restarts".

Chapter 3. About 2 h 55 min

## Operate and recover

An HMI with alarm acknowledge, the e-stop and its reset, a starved line brought back, and a production run.

Lesson | Time | What students do

HMI panels The operator’s window into the cell: a state on the display, lamps that mean one thing each, a count, and an alarm that blinks until someone acknowledges it. | 55 min

- Ready
- Lamps that mean one thing
- Acknowledge
- Stop

Fault recovery An e-stop, its reset and a restart; a starved line, a refill and a restart. Getting a cell back running safely is most of a technician’s day. | 65 min

- E-stop
- Reset is not start
- Reset
- Starved
- Back in production

Boss: a sorting line Configure the cell for a production run: batches that stop on their own, a tighter starve timeout, and a full shift with an e-stop in the middle. | 55 min

- Shift start
- Batches
- Find a starve sooner
- A full shift

### Materials

- Arduino Uno R3
- Candy color sorter
- IR proximity switch, E18-D80NK
- LED and key board, TM1638
- Relay module

### Check for understanding

Each student finishes "Boss: a sorting line" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A full shift".

Your class

## Teach this unit as a class

Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
