WIRE
First real wiring
Connect an ultrasonic sensor and a 9g servo through safe 3.3V Gravity ports — no soldering.
AIADEV · PHYSICAL COMPUTING
A smart barrier gate on the UNIHIKER M10: an ultrasonic sensor spots arrivals, a servo raises the arm, and a four-state machine enforces one hard rule — the gate never lowers on anyone.
PROJECT AT A GLANCE
WHAT YOU WILL WORK TOWARD
What the finished device does — and what you will be able to explain.
WIRE
Connect an ultrasonic sensor and a 9g servo through safe 3.3V Gravity ports — no soldering.
CONTROL
Closed, opening, open, closing: four states with hysteresis debounce and hold timing.
PROTECT
The gate never lowers while something is near — a rule you encode, test, and defend in your demo.
Eight 120-minute sessions from kickoff to demo day.
Meet the M10, set up the dev chain, and run the first program.
Build the touch-screen status page and wire up the onboard buttons.
Connect the URM09 ultrasonic sensor over Gravity and read distances.
Drive the 9g servo smoothly and close the sense–decide–act loop.
Four states, hysteresis, hold timing — and the never-lower-on-anyone rule.
Mock the sensor and servo, then pytest the state machine on desktop.
Auto-start, event logging to CSV, and a reproducible project package.
Trigger the gate live and defend your safety design.
Every project ships two builds: a starter you open in week 1, and a teacher reference build. The flow — prepare, build, test, checkpoint, present — is the same across all Physical Computing courses.
CONCEPT PREVIEW
The status screen while the arm is up: distance, servo angle, and the all-clear safety flag.
Concept UI for illustration — each student's finished device will look a little different.
THE BUILD
An auto-starting gate controller with a live status screen and a CSV event log.
The workflow is the same as in our software projects — plan with AI, review what it suggests, and test it yourself. Hardware adds one more skill: knowing whether a bug lives in the code, the wiring, or the physical world.
PLAN
Use AI to decompose the project, then check the plan against what the board and sensors can actually do.
REVIEW
AI drafts, you review. Pin numbers, timing, and thresholds are your responsibility — the device does what you ship.
TEST
Desktop mock tests catch logic bugs early; on-device runs catch the rest. You learn to tell the difference.
AI use is disclosed in project work. If an AI service is unavailable or its answer is unsuitable, students continue with course examples, instructor guidance, and their own tests.
PILOT CLASSES FORMING
These courses are new — pilot classes form first. Leave your details and we will invite you to the first available session, or check your Python readiness before you talk to us.