Forge · Invention Blueprint
Scale the colour sensor for the chip
A Bench-8 program decides ‘red’ when the colour code is at least 60, but the input scaling turns 30 % redness into code 60, so orange caps count as red. Without changing the program, choose the input scaling and offset, the size threshold and the belt speed so at least 95 % of 60 parts are sorted correctly at 150 parts per minute or more.
Advanced · experimentalEmbedded computing
Starting design: the Innovator system of the Automated Sorting System.
Constraints
- At least 95 % sorted correctly
- At least 150 parts per minute
- All 60 parts sorted
Components
Conveyor and diverter · Bench-8 processor · NOT · Logic gate · Comparator
Before you start
- ADC counts, quantisation and noise (Level 2)
- Tracing a program, counting cycles (Level 4)
Extensions
- Work out the redness at which code 60 now sits: offset + 60 × scale. Compare it with the threshold you would choose by eye.
- Change the program's limit instead (in the Nexus project) and check you get the same decisions.
- What does a larger scale do to the resolution of the code? When would that matter?
Learning pathway
- 1Read the programThe program subtracts 60 from the code and treats ‘no borrow’ as red. The decision point is fixed at code 60.
- 2Map the inputThe code is (redness − offset) ÷ scale. With scale 0.5 and offset 0, code 60 means only 30 % redness.
- 3Move the decisionChoose a scale and offset so code 60 lands between orange (about 60 %) and red (about 78 %) caps.
- 4Finish the ruleSet the size threshold and a belt speed that delivers 150 parts per minute, and check every target.
Your project
Switch freely between Learn (the pathway, step by step), Challenge (the settings and targets) and Create (the full sandbox). Everything stays private in this browser; your technical document is generated from it.
Curriculum
- ADC counts, quantisation and noise (Level 2)
- Two-point calibration (Level 2)
- Tracing a program, counting cycles (Level 4)
- Registers and bit masks: where software touches silicon (Level 4)
Labs
Technically checked by automated tests; not yet reviewed by an educator. Results come from simplified educational models, never from real hardware.