Tactiverge Nexus · Project
Computer-Controlled Machine
Program a Bench-8 processor to run a conveyor press: on time, every tick.
A conveyor carries parts to a press. Every 50 ms the Bench-8 processor reads a sensor port (light gate, ram home, ram bottom, flaw detector), runs your assembly program and sets an output port (belt motor, ram). Get the sequence right, the timing right and the cycle budget right. A virtual machine: nothing here drives real hardware.
What you will learn to do
- 1Read and write an I/O port bit by bit with AND masks, and explain what each bit means.
- 2Sequence a machine safely (stop, press, lift, wait for home, move) and find the bug that makes it crash.
- 3Use memory to give a program state, and extend it to a new requirement (flawed parts).
- 4Count cycles per instruction and keep every control tick within its budget (clock × tick).
- 5Explain how sampling rate and belt speed together decide whether a sensor sees every part.
- 6Test whether debouncing a glitchy input reduces faults, with seeded repeated trials.
Five ways in
- Level 1 · Explorer · Cause and effectFind a belt speed at which all 30 parts are stamped within 60 s, with no part missed.
- Level 2 · Builder · Rules and debuggingDebug the program so all 30 parts are stamped with zero crashes.
- Level 3 · Innovator · Integration to a specificationChange the program so every good part is stamped, no flawed part is stamped, nothing is missed or crashes, and every part finishes within the run.
- Level 4 · Systems Engineer · Dynamics and trade-offsMake it run cleanly on a chip of at most 2,000 cycles per second: zero overruns, all 30 parts stamped in 60 s, no crashes and no missed parts.
- Level 5 · Research Engineer · Evidence under uncertaintyDecide, with seeded repeated trials, whether debouncing removes the bad strokes, and what it costs in parts per minute.
Workspace
Pick a mode, read the brief, then run, measure and improve. Automatic feedback appears after each run. Nothing leaves your device unless you save to your Journal or export.
Where this connects in the School
- Counting with only 0 and 1Level 1, week 15 · Port bits are binary digits.
- Machines that remember: states and sequencesLevel 1, week 17 · States and sequences in a machine.
- Binary and hexadecimalLevel 2, week 17 · Reading masks and port values.
- Debouncing: one press, one countLevel 2, week 20 · One press, one count: debouncing a glitchy input.
- Sampling: how often is often enough?Level 2, week 22 · How often is often enough?
- A state machine in softwareLevel 4, week 24 · A state machine in software.
- Tracing a program, counting cyclesLevel 4, week 25 · Tracing a program and counting its cycles.
- Project: program the processorLevel 4, week 27 · Programming the teaching processor.
- Signals meet hardware: the cycle budgetLevel 4, week 27 · The cycle budget of a control loop.
- Registers and bit masks: where software touches siliconLevel 4, week 33 · Registers and bit masks: where software touches silicon.
- Polling or interrupts? Latency, energy and shared dataLevel 4, week 33 · Polling a port every tick, and the alternatives.
- How many runs is enough?Level 3, week 32 · How many seeded runs are enough.
Limits of the model
A simplified educational model. Knowing what it leaves out is part of the project.
- A virtual press with ideal switches: no contact bounce (except the optional gate glitches), no motor inertia, instant belt stops.
- Bench-8 cycles are conceptual teaching cycles, not the timing of any real microcontroller.
- One input read and one output write per tick (polling); no interrupts or timers.
- The crash rule (belt moving while the ram is not fully up) stands in for the guards and interlocks a real press must have.
- Illustrative dimensions and timings, not a real machine's.
Supported components
Conveyor press · Bench-8 controller · Step · Schedule · Logic gate · NOT · Meter · Plot channel · Event log
Go deeper
Content status: technically checked (automated tests run every mode's starting system and check that a good design can meet every target). Not yet reviewed by an educator. Never connected to physical hardware.