Over the next 10 shifts you and a partner run an engineering firm in Circuit City. Simulate circuits in Tinkercad, build a smart street device with a micro:bit and Grove sensors, design and print its case, and switch it on at the City Expo.
firstname.lastname@student.education.wa.edu.au and your computer passwordNeed to log into Minecraft Education, Canva, or any other app that asks you to sign in? Most school and app accounts use the same login: your username is [email protected] (add a number if your name needs one, e.g. firstname.lastname2), and your password is the same one you use to log into your school computer.
Every project has at least one thing to hand in. Log into connect.det.wa.edu.au with your firstname.lastname and computer password, then head to your class and open the Submission section. Handing in more than one file? Zip them together first - total size must stay under 50MB.
With a partner, design, code, case and demo one smart device that makes Circuit City's streets safer or brighter, from simulation to a working build at the City Expo.
| Criteria | Apprentice (0-1) |
Technician (2-3) |
Engineer (4) |
Chief (5) |
Score |
|---|---|---|---|---|---|
| Circuits & Code | Layouts copied without changes, or the device does not run | Device runs with help, one input and one output | Device senses, decides with an if and acts, ports planned correctly | Clear, tuned code you can explain block by block, extra outputs | / 5 |
| Enclosure | No enclosure designed | Enclosure designed, parts do not fit | Prints and fits with clearance, openings for sensors and cables | Neat, labelled, holds the parts still and suits its street spot | / 5 |
| Testing | No tests recorded | Some tests, one change made | Six logged tests and a fix written as evidence, change, reason | Fixes proven by a full retest, device reliable on the day | / 5 |
| Expo & Teamwork | No demo, or very uneven teamwork | Demo with help, info card started | Live demo, info card, both partners built and coded | Confident demo, feedback given and acted on | / 5 |
| Total | / 20 | ||||
| Input | Light level: 0 is dark, 255 is bright |
| Rule | If the light level is below the threshold, turn the LED on. Otherwise turn it off |
| Output | The LED on your breadboard |
| Loop | Check again and again with forever |
street-light. Click the gear icon, choose Extensions, search grove and click the Grove tile. (It also adds the NeoPixel blocks you need later)analog read pin [P0] reads the Light Sensor as a number from 0 to 1023.hex file from Downloads onto the MICROBIT drive (if a connect box opens instead, follow its steps). Cover the sensor with your hand: the LED should light.hex in your Downloads (it follows you to any laptop). Next lesson: MakeCode home screen, Import, then Import Fileforever
set light to (analog read pin [P0])
if <(light) < (300)> then
digital write pin [P1] to (1)
else
digital write pin [P1] to (0)
pause (ms) (200)
show number (light) inside the forever loop and read the sensor in the light and with your hand over it. Pick a threshold in between.on button [A] pressed with show number (light) inside, so pressing A shows the reading any time. Use it to check your threshold in three spots around the room.
parking-sensor (add the Grove extension again). The 4-Digit Display block makes a variable for the display: rename it display. For distance use the block that starts (V2): Seeed added it for the micro:bit V2, which is what we use. Build the layout below and flash it.hex in your Downloads (it follows you to any laptop). Next lesson: MakeCode home screen, Import, then Import Fileon start
set display to 4-Digit Display at [P1] and [P15]
forever
set distance to ((V2)Ultrasonic Sensor (in cm) at [P0])
display show number (distance)
if <(distance) < (10)> then
digital write pin [P2] to (1)
else
digital write pin [P2] to (0)
pause (ms) (100)
| Real distance | 5, 10, 20, 30 and 50 cm |
| Display shows | Write each reading next to the real distance |
| Out by a lot? | Check you used the (V2) block, the cable is in P0/P14 and the shield USB power is in, then point the sensor at something flat |
show string ["STOP"] so the micro:bit warns the driver too.
crossing with the Grove extension. Build the crossing layout, flash it and press Aanalog set pitch pin [P0] sends the beeps to the Grove Speaker. The micro:bit V2's own speaker plays them as wellsound level is the micro:bit V2's microphone, from 0 (quiet) to 255 (loud). Flash it and clap.hex in your Downloads (it follows you to any laptop). Next lesson: MakeCode home screen, Import, then Import Fileon start
set strip to NeoPixel at pin [P1] with (30) leds as [RGB (GRB format)]
strip set brightness (40)
strip show color [red]
analog set pitch pin [P0]
on button [A] pressed
strip show color [green]
repeat (5) times
play [tone (Middle C) for (1 beat)] [until done]
pause (ms) (500)
strip show color [red]
on start
set strip to NeoPixel at pin [P1] with (30) leds as [RGB (GRB format)]
strip set brightness (40)
forever
strip show bar graph of (sound level) up to (255)
pause (ms) (100)
strip set brightness (map (analog read pin [P2]) from low (0) from high (1023) to low (0) to high (255)) before the bar graph.
| Shield | 72 x 72 x 13 mm: plan around it first |
| Clearance | Inside 0.5 mm bigger each side, openings 0.3 to 0.5 mm bigger |
| Walls | At least 1.2 mm, 2 mm is stronger |
| Printer | 150 mm cube, about 0.2 mm accuracy, no steep overhangs |
.hex file from Downloads onto the MICROBIT drive (if a connect box opens instead, follow its steps).hex in your Downloads (it follows you to any laptop). Next lesson: MakeCode home screen, Import, then Import File| Input | Which sensor or button, and which port |
| Process | The rule, with a number: below 300, closer than 10 cm, louder than 150 |
| Output | LED, strip colour, display number or beep, and which port |
| Test | How you will prove it works |
.hex in your Downloads (it follows you to any laptop). Next lesson: MakeCode home screen, Import, then Import File| Test | What you did, e.g. torch on the sensor |
| Expected | What should happen |
| Actual | What did happen |
| Pass? | Yes or no, then fix the no's |
on start
radio set group (7)
on button [B] pressed
radio send number (1)
on start
radio set group (7)
on radio received [receivedNumber]
if <(receivedNumber) = (1)> then
turn [motor 1] [forward] at speed (60)
pause (ms) (1000)
turn off [motor 1]
After 10 shifts of simulating, wiring, coding, printing and testing, every pair's device takes its place on the class city map. Demo it live, tour everyone else's, then vote for the awards.
Join Tinkercad, then power up // Shift 01