Systems of boards lesson plan
Designs that use more than one processor: why to split work, UART links between Unos, an addressed shared bus, SPI with a slave in software, a Raspberry Pi and an Uno together, framed protocols with CRCs and retries, and a rover with a display coprocessor.
Objectives and materials
By the end, students can
- What a second processor buys, and the simplest link.
- An addressed shared bus, SPI, and a Pi with a microcontroller.
- Frames, CRCs, acknowledgments and retries.
- A rover with a brain and a display coprocessor.
Materials for the whole unit
- Arduino Uno R3 x 3
- Character LCD with I2C backpack
- Diode x 2
- LED
- Potentiometer x 2
- Pushbutton
- Raspberry Pi 4 Model B
- Resistor x 2
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.
Why more than one
What a second processor buys, and the simplest link.
| Lesson | Time | What students do |
|---|---|---|
| Why split workOne Uno crunching numbers between looks at a button counts 1 press of 5; a second Uno with nothing else to do counts all 5. What a second processor buys, and what it costs. | 55 min |
|
| UART between MCUsTwo Unos on a crossed software serial link: ground control asks TEMP?, the probe answers with tenths of a degree, every reply checked before it is trusted, and what a baud mismatch looks like. | 55 min |
|
Materials
- Arduino Uno R3 x 2
- Potentiometer
- Pushbutton
Check for understanding
Each student finishes "UART between MCUs" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A baud mismatch".
Buses between boards
An addressed shared bus, SPI, and a Pi with a microcontroller.
| Lesson | Time | What students do |
|---|---|---|
| A shared bus with addressesOne master, two nodes, one return wire: nodes answer through diodes onto a pulled-up line, each only when its address is called. The idea under I2C target mode, built where Mokxi can run it. | 55 min |
|
| SPI master and slaveSPI between two Unos: a bit-banged master at 10 kHz and a slave written in software on two interrupts, one byte each way per transfer, and the one-transfer lag every SPI slave has. | 55 min |
|
| Pi plus microcontrollerA Raspberry Pi as the SPI master in Python with spidev, the Uno as the software slave, and a resistor divider so 5 V never reaches a 3.3 V pin. Linux for the thinking, a microcontroller for the timing. | 65 min |
|
Materials
- Arduino Uno R3 x 3
- Diode x 2
- Potentiometer x 2
- Raspberry Pi 4 Model B
- Resistor x 2
Check for understanding
Each student finishes "Pi plus microcontroller" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Who does what".
Protocols
Frames, CRCs, acknowledgments and retries.
| Lesson | Time | What students do |
|---|---|---|
| Shared protocolsPackets instead of lines: a start byte, sequence number, type, length, payload and CRC-8. The receiver ACKs or NAKs, a damaged packet is caught and sent again, and the retry limit decides when to give up. | 65 min |
|
Materials
- Arduino Uno R3 x 2
- Potentiometer
- Pushbutton
Check for understanding
Each student finishes "Shared protocols" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "A protocol is a promise".
Boss project
A rover with a brain and a display coprocessor.
| Lesson | Time | What students do |
|---|---|---|
| Boss: a coprocessor displayA rover split in two: the brain reads its range sensor, picks CRUISE, SLOW or STOP and drives the motor; a dashboard coprocessor draws its status on an LCD and sends a park command, all in framed, checked packets. | 75 min |
|
Materials
- Arduino Uno R3 x 2
- Character LCD with I2C backpack
- LED
- Potentiometer
- Pushbutton
- Resistor
Check for understanding
Each student finishes "Boss: a coprocessor display" on their own, without opening the hints. The simulator checks 8 of its 8 steps as they go.
Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Make it yours".
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.