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.

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.

LessonTimeWhat students do
Conveyors and sensorsA 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
  1. Walk the line
  2. The guard
  3. Start the belt
  4. A bottle arrives
  5. Full
SequencesA 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
  1. One full cycle
  2. A backstop timer
  3. A jam
  4. Starved
  5. 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.

LessonTimeWhat students do
Sorting stationsA color sensor and a diverter: measure, classify against references, route each part to its bin, and confirm it got there.65 min
  1. The station
  2. Measure and decide
  3. The next one
  4. Count what arrived
  5. A new product
Interlocks and permissivesPermissives 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
  1. Start refused
  2. Warn, then run
  3. The interlock
  4. 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.

LessonTimeWhat students do
HMI panelsThe 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
  1. Ready
  2. Lamps that mean one thing
  3. Acknowledge
  4. Stop
Fault recoveryAn 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
  1. E-stop
  2. Reset is not start
  3. Reset
  4. Starved
  5. Back in production
Boss: a sorting lineConfigure 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
  1. Shift start
  2. Batches
  3. Find a starve sooner
  4. 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.