SchoolAir · physical air-quality indicator

Wilting Flower Assembly

Sheet
Exploded view and build order
Rev
H · 2026-10-08 · bench reprint: limit switches, stem gland under the roof, rim band, gusseted guide posts
Source
wilting-flower.scad, breakout.scad
Units
mm

Two halves. The vase is a plain cover over the mechanism, and the mechanism stands on the dock's lid. A small stepper motor hangs under the lid and turns a lead screw. A carriage rides up and down the screw between two grooved posts and lifts a rod inside the flower's hollow stem. Two micro-switches on a bracket behind the posts tell the controller when the carriage reaches the bottom or the top. The dock holds every electrical part: Raspberry Pi, air sensor and stepper driver. The lid clicks into the base with no screws. The vase drops into the ring on the lid and locks with a 30° twist. A terracotta rim band drops over the top of the vase and carries SCHOOLAIR.ORG and the NFC tag; it turns, so the lettering can face the room. The same dock sits on a shelf or slides down onto two wall screws. The balloon numbers match the parts table and the build order.

Exploded view

Exploded rendering of the wilting flower, bottom to top: dock base with the Pi, sensor and driver board; the stepper motor; the dock lid with two gusseted guide posts and the stop post; the limit-switch bracket; the coupler; the lead screw; the carriage with its switch flag; the drive rod; the gland nut and stem gland (they fit under the vase roof); the vase shell; the dish; the rim band; and the stem beside them
Parts lifted apart along the assembly axis, rendered from the CAD file. Electronics are drawn as blocks at their real sizes. The motor is shown lifted out of the dock; in the unit it hangs under the lid, inside the dock. The switch bracket (7) is drawn pulled back from the post ends it screws to; it and the flag (11) are not fitted since 2026-11-25.
№PartWhat it doesSource
1Dock baseRounded square 120 × 120 × 33.5, flat back with two keyholes. Ledge and four barbs for the lid, keyed corner post, pry notch. Sealed sensor pocket on the right, grilles on front, left and right, an arched cable opening 18 wide in the middle of the back (open at the bottom, so the cable can drop down on a wall) and a 14 × 8 USB entry on the right, smart-LED holder behind the front grille (empty in this version). No screws for the boards since v13: a slide-and-click mount for the Pi (two tongues, two springy hooks), four tall tapered pins for the driver board and four for the sensor's power adapter, which hold both boards by friction (v20; v13 to v19 also had a strip with two hooks for the driver). Bases v12 and older have screw posts for the Pi and the driver. Stick-on rubber feet.print · dock_base.stl
2Raspberry Pi Zero WHAlong the sensor pocket wall, header on the pocket side. Slides under two tongues and clicks past two springy hooks; two short pins in its screw holes stop it sliding (base v13). Older bases: four M2.5 standoffs. Reads the sensor over I2C and drives the motor and the LED.buy
3Air sensor, SEN63C or SEN65SEN63C indoors (it has CO₂), SEN65 outdoors. On edge in the right-side pocket, openings against the right wall on the printed TPU gasket (P14). Sealed from the rest of the dock, so the Pi's warm air stays out. Its lead runs to the Adafruit SEN6x STEMMA QT power adapter, screwed to four posts at the front-right; one Qwiic cable goes from the adapter to the Pi, and the adapter's second Qwiic port is left free for add-ons, so no hub is needed.buy
4ULN2003 driver boardAt the front-left, in front of the motor, pressed onto four tall tapered pins that go up into its screw holes and hold it by friction, with no hooks (base v20). Bases v13 to v19: the same pins plus a strip with two small hooks along its edge facing the Pi. Older bases: four posts and four M3 × 6 self-tapping screws. Four signal wires and power from the Pi header; the motor plugs into its socket. No capacitor since 2026-11-25.buy · with the motor
5Stepper motor 28BYJ-48, 5 VFace against the lid's underside, body inside the dock, shaft up through the lid. Two M3 × 6 self-tapping screws from below through its ears into the lid. Lead toward the back.buy
6Dock lidThe vase floor. Bayonet ring with three lugs, two guide posts 20 × 5 × 108 either side of the screw, each with a 7 × 2.5 groove on its inner face, and the home stop post ⌀9 × 17.5 under the rod (32.5 until 2026-10-12). Gussets at the post roots (8 outside, 3.5 inside, 14 tall; since 2026-10-06, after a post snapped), pilots in the post ends for the switch bracket, a 5 mm hole for the switch leads. Clipped corner so it drops into the base one way only. Print with 4 walls.print · dock_lid.stl
7Limit-switch bracket and two switchesNot fitted since 2026-11-25 (Martin: no limit switches, not needed). Two SS-5 lever micro-switches on a printed bracket screwed to the back ends of the posts. Slotted holes give ±2 mm to set each trigger point: the bottom switch clicks 0.5 mm before the stop, the top one at erect. A U channel down the left rail carries the leads to the lid hole.print · ls_bracket.stl · buy switches
8Coupler⌀14 × 16.5. D-shaped pocket presses onto the motor shaft from below; ⌀8 pocket above takes the screw, held by two M3 grub screws; a third grips the shaft's flat.print · coupler.stl
9Lead screw Tr8×88 mm trapezoidal, four starts, 8 mm per turn, 100 long. The motor turns it; it never moves up or down itself.buy · Tr8×8
10CarriageSleeve with the Tr8×8 nut printed in, a tab each side running in the post grooves, and a bar to the rod boss on the pot axis. The boss hangs 12 below the sleeve, clamps the rod with an M3 × 5 grub screw that self-taps from the front (v10, no nut), and lands on the stop post at the bottom.print · carriage.stl
11Switch flagNot fitted since 2026-11-25. Screws under the carriage tabs with two M2 × 8; its arm presses the bottom switch at home and the top switch at erect.print · ls_flag.stl
12Drive rodM3 threaded rod, 165 long, pushed into the boss until it stops on the floor of its blind bore. Slides up inside the stem. Round its top tip.buy · M3 rod
13Pot shellThe visible vase. Throat on top, three bayonet L-slots in the base wall, hidden inside the ring. Since 2026-10-08 no sleeve under the roof: an 8.2 hole for the tube and a square 12.4 × 12.4 × 1.5 recess underneath that keys the gland's flange.print · shell.stl
14Stem glandHangs under the roof, its square flange keyed in the recess (no glue), split M9 × 1 collet pointing down. When the rod drags the stem up, the flange bears on the roof itself. PETG, printed flange-down; a plain neck with a fillet makes the join strong.print · stem_gland.stl
15Planter dishShallow tray on the flat roof, not glued; its 7.6 centre hole passes the tube. Fill with moss or gravel so the stem looks planted.print · dish.stl
16Gland nutScrews onto the collet from below, inside the vase; its cone squeezes the collet onto the stem tube. Loosen to slide the stem up or down, tighten by hand to lock. PETG.print · stem_gland_nut.stl
17Rim bandThe terracotta rim. "SCHOOLAIR.ORG" raised on the front, NFC tag pocket behind it inside. Drops on from above with a straight bore and rests on the dish bead, so it turns to face the room. Stands about 3 mm off the pot at its bottom edge.print · rim_band.stl
18Stem and flowerThe flowers' own hollow stem, ⌀6 / 4 × 150, held by the gland, 145 mm from roof to head. No glue on the tube. 11 g of washers added on the head for the wilt; a few drops of light multi-purpose oil inside the tube.buy

Build order

  1. Dock electronics. Stick the four rubber feet under the corners. Slide one end of the Pi (2) under the two tongues and press the other end down until the two hooks click over it; pull the hooks back to lift it out. Press the driver board (4) straight down onto its four tall pins until it seats on them; there are no hooks, and to take it out you lift it evenly off the pins (base v20; on v13 to v19, the strip's two hooks click over its edge facing the Pi). Press the sensor's power adapter straight down onto its four tall pins at the front-right in the same way. No screws (base v13 and later; on v12 and older bases, screw the Pi with M2.5 × 6 and the driver with M3 × 6). Run the Qwiic-to-jumper cable from one of the adapter's Qwiic ports to the Pi's I2C pins and leave the other port free.
  2. Sensor. Put the TPU gasket (P14) against the inside of the right wall behind the grille: big window to the front, the side that was on the print bed against the wall, its divider between the two zones. Push the sensor (3) into its pocket openings-first (a firm push: the pocket wall flexes and holds it on the gasket) and plug its lead into the power adapter.
  3. Motor under the lid. Turn the lid (6) over. Push the motor's (5) shaft up through the lid's hole from below, ears flat against the underside, lead pointing to the back. Drive two M3 × 6 self-tapping screws through the ears into the lid. Firm, not tight: the screws cut their own thread in the plastic.
  4. Coupler. Lid the right way up. Press the coupler (8) onto the D-shaft with the flats aligned, until it sits 0.5 mm above the lid. Turn its grub-screw holes toward the 3 mm gap in the lid's bayonet ring, opposite the stop post (lid v10), so a 1.5 mm hex key (standard for M3 grubs) reaches them straight on between the posts.
  5. Screw and carriage. Thread the carriage (10) onto the top of the screw (9), sleeve end first. It should turn on with light finger force; if it binds, stop and reprint rather than force it. Lower the screw into the coupler's top pocket with the carriage's tabs sliding down the post grooves. Push the screw to the bottom of the pocket and tighten both grub screws on the thread. Turn the coupler by hand and watch the screw's top: it must spin in place, not trace a circle. A half-seated screw binds the carriage and loses steps (2026-10-12).
  6. Home by hand. Turn the coupler slowly (the motor's gearbox makes it stiff) until the carriage's rod boss rests on the stop post. That is home, the wilted position, and the position a kit ships in.
  7. Rod. Round the top tip of the M3 rod (12) with a file. Push it into the boss from above until it stops, then turn the grub in from the front until it touches the rod.
  8. Limit switches: skip this step (not fitted since 2026-11-25; kept for older units). Screw both switches to the bracket (7) with M2 × 12, nuts in the slotted pockets, the free end of each lever toward the middle. Screw the bracket to the back ends of the posts with four M2 × 12 self-tapping screws. Solder a lead to the C and NC tabs of each switch, heat-shrink, lay the leads in the bracket's channel and down through the 5 mm hole in the lid; two stick-on clips under the lid keep them clear of the motor. Slide each switch in its slots until the bottom one clicks just before the boss lands on the stop and the top one clicks at erect.
  9. Wiring, lid into base. Plug the motor lead into the driver board's socket. Six jumpers from the board to the Pi header: IN1–IN4 to pins 11, 13, 15 and 16 (GPIO17, 27, 22, 23), + to pin 2 (5 V), − to pin 9 (ground). No jumper link is needed: the firmware finds the driver board on those four pins and starts the flower by itself. Drop the lid in with its clipped corner at the back-left; it rests on the ledge and clicks under the barbs. To open it later, lift its edge at the notch in the back wall.
  10. Gland, dish, stem. Turn the shell (13) upside down. Press the stem gland's (14) square flange into the square recess under the roof, collet pointing down (no glue: the shape keeps it from turning); run the gland nut (16) on a few turns. Shell the right way up, set the dish (15) on the roof, not glued. Feed the stem (18) down through the dish, the roof and the gland until its end is level with the gland's tip: it must not stick out below, because the carriage rises to 2.5 mm under the gland. Set the height you want and tighten the nut by hand, reaching up inside the vase. No glue on the tube: to adjust the stem later, take the vase off and loosen the nut.
  11. Lock the vase. Guide the rod up through the throat into the stem and lower the shell over the posts, with its slots over the three lugs. Press down and turn 30° clockwise until it stops. To remove, turn back and lift.
  12. Rim band. Glue the NFC tag into the pocket inside the rim band (17), behind the lettering. Drop the band over the top of the vase until its lip rests on the dish's rim, and turn it until SCHOOLAIR.ORG faces the room. If the flower head is wider than 111 mm, fit the band before the head.
  13. Flower on, power up. Push the weighted head into the top of the stem and dress the dish with moss or gravel. Plug in the 5 V adapter. On first power-up the flower runs a full cycle as a self-test: down to the stop, up to erect, then to the height for the current air. On a wall: two screws 60 mm apart, slide the dock down onto them.
The carriage cannot turn: its tabs sit in the post grooves, so turning the screw can only move it up or down. The sliding pairs are the printed nut on the screw, the tabs in the grooves and the rod in the stem. Lubricate them lightly and differently: a thin film of PTFE or light lithium grease on the screw, and dry PTFE spray elsewhere. Do not use the water-based cable gel; it dries and gums. The shell can seat in any of three positions 120° apart, since nothing inside depends on its rotation; the rim band, not the shell, sets where the lettering faces.

Order list for one unit

Everything not printed, grouped by where it goes. Quantities are per unit; most items come in packs.

QtyItemWhere it goes
128BYJ-48 stepper, 5 V, with ULN2003 driver boardMotor under the lid, board on its posts at the front-left. Buy them as a pair; the 12 V version will not run from the Pi's 5 V.
1Tr8×8 lead screw, 100 mmIn the coupler. Screw only; the nut is printed into the carriage.
2M3 × 6 self-tappingMotor ears into the lid, from below.
3M3 × 4 grub screwsCoupler: two on the lead screw, one on the motor shaft's flat.
1M3 × 5 grub screwRod set screw in the carriage boss, self-tapping into its pilot.
1 + 1Stem gland and nut (printed, PETG)Adjustable clamp under the vase roof; the stem tube passes through and the nut locks it at any height. No glue: the square flange is keyed in the roof; none on the tube either.
1M3 threaded rod, 165 mmDrive rod, in the carriage boss. Round the top tip.
6Jumper wires, female–female, 10–20 cm, 2.54 mm DuPontDriver board to the Pi header. The shorter the better: long wires fill the dock.
01000 µF 10 V electrolytic capacitorNot in the kit since 2026-11-25. It sat on pins 4 and 6 from 2026-11-04, in a clip in the dock base (gone in base v14).
1Flower with its 150 mm hollow stem, 11 g of washersStem through the gland in the roof; washers on the head's stub.
4Rubber feet, stick-on, 3 mm highUnder the dock's corners.
0M2.5 × 6 self-tappingNot needed since base v13: the Pi slides and clicks in, the sensor's power adapter presses on. Bases v12 and older need 4 for the Pi; v11 and older 4 more for the adapter.
0M3 × 6 self-tappingNot needed since base v13: the driver board presses onto four pins (base v20; a strip with two hooks on v13 to v19). Bases v12 and older need 4 for it.
0Lever micro-switches, SS-5 size (20 × 9.7 × 6.5, hinge lever)Not in the kit since 2026-11-25. Were: limit switches, top and bottom, on the bracket. Wire common + normally closed.
0M2 × 12 screws + M2 nutsNot in the kit since 2026-11-25. Were: switches to the bracket; nuts in the slotted pockets.
0M2 × 12 self-tappingNot in the kit since 2026-11-25. Were: switch bracket to the post ends.
0M2 × 8 self-tappingNot in the kit since 2026-11-25. Were: flag under the carriage tabs.
0Female jumper leads, 20 cmNot in the kit since 2026-11-25. Were: switch leads to the Pi header; cut ends soldered to the C and NC tabs, heat-shrink.
0Stick-on cable clips, smallNot in the kit since 2026-11-25. Were: under the lid, holding the switch leads clear of the motor.
1NFC sticker, NTAG213, 20 × 10 mmPocket inside the rim band, behind the lettering; written with the portal link and locked.
0Smart LED, 5 mm through-hole (WS2812D-F5 or PL9823), + 330 Ω resistorNot in this version (2026-11-07); the holder stays empty. When it comes back: in its holder behind the front grille, so it glows through it. The resistor goes in series on the data lead, under heat-shrink. A plain 5 mm LED will not do: it must be addressable.
1PTFE dry spray and a light PTFE or lithium greaseSpray on the grooves and rod; a thin film of grease on the screw.
2Wall screws 4 mm with plugsWall model only, 60 mm apart.

From the kit, unchanged: Raspberry Pi Zero WH, microSD, SEN63C (indoor) or SEN65 (outdoor) with the JST-GH lead, Adafruit SEN6x STEMMA QT power adapter, Qwiic-to-jumper cable (CAB-17261), 5 V 2.5 A adapter. No battery since 2026-09-28: the unit runs from the mains, and a read-only SD card will protect it when the power drops.

How it moves

A lead screw. The motor turns the screw 8 mm of travel per turn, and the carriage, held straight by the posts, carries the rod up and down with it. The motion is linear: every millimetre costs the same number of steps (512 half-steps). The motor's 64:1 gearbox holds the flower in place with the power off. At the bottom the rod boss lands on the stop post. The controller finds home by driving down onto it on purpose; the gearbox skips harmlessly there. The flower uses 47 mm of travel, from the stop to erect; higher, the straight rod wedges in the curve of the stem near the head.

lid motor, under the lid coupler Tr8×8 screw, turns stop post carriage + printed nut drive rod, up into the stem 47 wilted 0 (10) horizontal 15 (25) leaning 40 (50) erect 47 (57) rod boss height, mm
Schematic, to scale in height: the carriage on the stop at wilted (solid) and at erect (dashed). Heights are above the stop post; the numbers in brackets are above the older, lower stop, which is the frame the controller's calibration uses.