Before you start any band
Invent Invent a project
Ten things that sense, nine that act, six rules. The method for making your own device out of the box you already have, and the four questions that kill a bad idea in five minutes.
Sketches for this project
Every file opens with a plain-English header saying what it does and how to wire it, hole by hole.
Nobody can write you a page for every idea
This course has about twenty-five pages of things to build. You could do all of them and still be somebody who follows instructions.
The step after that is inventing your own, and it is not a talent. It is a method, and it fits on this page.
What your box can actually make
Count what you have. Roughly ten things that sense, ten things that act, and six rules this course has taught you for deciding between them.
10 × 10 × 6 = 600
Six hundred devices, from the box already in front of you. Most are nonsense, some are useful, and telling those apart is the skill this page is about. Not the counting.
Ideas come from people. Band 8 teaches the whole loop for that: find somebody with a problem, get them to describe it in their words, and only then work out what to build. This page is for the step after that, when you have a real problem and need to know what shape of device you can afford to make. It is a menu, not a muse.
Every device you have built is the same three things
20 minGo back through the bands and you will find one shape underneath all of them. Something it notices. A rule it applies. Something it does about it.
| Band | It notices | The rule | It does |
|---|---|---|---|
| 1 | nothing at all | a sequence in order | three lights |
| 2 | a knob | map one range onto another | a colour |
| 3 | four buttons | count and remember | two lights and a buzzer |
| 4 | how dark it is | one threshold, and then finding out what is wrong with that | a lamp |
| 5 | four buttons | a sequence in order, timed with millis | four lights and notes |
| 6 | a knob | a deadband, so a wobble is not an instruction | a servo arm |
| 7 | distance | four ranges, each with its own words and its own beep rate | a screen and a buzzer |
Band 1 is the interesting row: it notices nothing, so it can only ever do the same thing forever. The moment a device notices something it becomes a different kind of object, and that is what Band 3 onward is really about.
Pick one from each column
- a button
- a keypad
- a knob
- light
- distance
- water on a plate
- temperature and damp
- a sound
- an RFID card
- a remote control
- above a threshold
- two thresholds, so it cannot flap
- a sequence in order
- count and remember
- time it
- map one range onto another
- one light
- three lights
- a colour
- a buzzer
- a servo arm
- a stepper dial
- a motor
- four digits
- a screen with words
- a relay, low voltage only
Six of those you have used in a band. The RFID card, the sound sensor, the remote control and the relay are in the drawer and have no lesson written for them yet, so if you build on one, budget an evening to work the part out first. That is not a warning, it is a fair estimate.
The budget nobody tells you about
25 minHere is where most invented projects die, and it is always the same death. You run out of pins.
An UNO has 14 digital pins and 6 analog ones. Pins 0 and 1 are the ones the USB cable talks through, so using them breaks uploading and the serial monitor. That leaves 18 pins for everything you will ever plug in, and some parts are extremely expensive.
Those eighteen are not interchangeable, and this is where paper budgets go wrong
Twelve of them are digital: pins 2 to 13. The other six are A0 to A5.
The analog six can do digital work as well. Write A0 anywhere you would write 7 and it behaves like an ordinary pin. But every one you spend that way is one you can no longer read a sensor with, and there are only six.
So the real question is never “does it come to eighteen?” It is “how many digital, and how many analog?” Past twelve digital parts you are borrowing from your analog six, and Band 5 wants A0 left completely alone for randomSeed.
| Part | Pins | Which | Watch out for |
|---|---|---|---|
| LED, button, buzzer, IR receiver, DHT11 | 1 | any digital | A buzzer using tone stops analogWrite working on pins 3 and 11 — and so does an IR receiver, because its library takes the same timer |
| Relay module | 1 | any digital | The little board has a transistor on it doing the work. A bare relay coil wants four or five times what a pin can give and will damage it. Low voltage only: never a mains bulb, socket, plug or cable, in this course or after it |
| Knob, light sensor, rain plate, sound sensor | 1 | an analog pin | Only 6 of those exist, and Band 5 needs one left empty for randomSeed |
| Servo | 1 | any digital | Servo.h stops analogWrite working on pins 9 and 10 |
| Motor on a transistor | 1 | a ~ pin | Needs the diode. The fan-on-a-transistor page explains why it is not optional |
| Distance sensor, TM1637 display | 2 | any digital | The TM1637 is four digits. It cannot show letters |
| Screen with a board on its back (I²C) | 2 | A4 and A5 | Check your own screen first. If nothing is soldered to the back it is the bare kind and costs six, not two. And A4 and A5 are two of your analog six, not spare digital ones |
| Joystick | 3 | 2 analog, 1 digital | That is a third of your analog pins for one part |
| RGB LED | 3 | three ~ pins | Only six ~ pins exist |
| 74HC595 shift register | 3 | any digital | Gives you 8 outputs back. The best trade in the box |
| Stepper on a ULN2003 | 4 | any digital | |
| RFID reader | 5 | 10, 11, 12, 13 and a reset pin of your choosing | It is a 3.3 volt part. Its power goes to the 3.3V pin, never 5V. If it reads a card sometimes and not others, that is usually the 3.3V pin running out of push rather than your code |
| Bare LCD screen | 6 | digital, or analog pins used as digital | Plus a knob for contrast, and twelve wires. This is the kind the hub has |
| 7-segment digit | 7 | digital, or analog used as digital | Seven pins to show one number. This is the problem the 595 solves |
| 4×4 keypad | 8 | digital, or analog used as digital | Eight of your twelve digital pins for one input |
| Bare 8×8 matrix | 16 | needs four analog pins doing digital work | There are only twelve digital pins, so this part cannot be done on digital alone. Plus eight resistors, and only one row is ever lit at a time: one pin cannot feed eight LEDs at once |
Two parts that break the rule, and it is worth knowing why
An I²C screen and a clock module cost two pins between them, not two each. They both use A4 and A5, and they take turns. It is called a bus: several devices sharing one pair of wires, each with its own address, like houses on a street.
Check your own screen before you budget two. Only a screen with a small board soldered to its back is the I²C kind. If the back is bare it costs six, and that is the kind this hub has. Remember too that A4 and A5 are two of your six analog pins, so a bus is cheap in pins and not free.
The same is true of the RFID reader's pins 11, 12 and 13, which are a different bus. Add a second device on that bus and it costs you one more pin, not five.
This is the single most useful fact on this page for anybody trying to fit a lot into one board. When you run out of pins, look for a part that shares.
Four questions that kill a bad idea in five minutes
20 minMost of those five hundred and forty combinations are not worth building. Run every idea through these four before you open the box.
| Ask | Fails when | Usually fixable by |
|---|---|---|
| 1. Who is it for, and would they use it? | The honest answer is “nobody, but it would look good” | Going and finding a person with the problem. Band 8's whole first half is this |
| 2. Is there really a rule in it? | The input goes straight to the output with no decision. You have built a switch, and a switch already exists | Adding a threshold, a memory, or a timer. That is where the interesting part lives |
| 3. Can you tell whether it worked? | You cannot describe the test. “It monitors the room” is not testable | Writing down, before you build, the exact thing you will do to it and the exact thing it should then do |
| 4. Does it fit in 18 pins and your actual box? | The budget comes to 21, or it needs a part you do not own | A part that shares a bus, a 595, or a smaller display |
Question 2 is the one that does the work
A light that comes on when you press a button is a torch. A light that comes on when it is dark and stays on for twenty minutes and will not flicker at dusk is a device, and the difference is entirely in the rule.
If you cannot say your rule out loud in one sentence with the words when, until or unless in it, there probably is not one yet.
Six worked examples, including one that fails
30 minWatch the method run. Each of these is one cell of the table turned into something you could start building this afternoon.
| Notices | Rule | Does | What that actually is | Pins |
|---|---|---|---|---|
| water on a plate | two thresholds | a buzzer | The rain alarm. You may well have built it, and if you did the night guard instead it is the same shape with a different sensor. Either way it fell straight out of the table, which is the point of showing it first | 2, or 4 with the green and red lights on it |
| distance | one threshold | a servo arm | A bin whose lid opens when your hand is near. The rule needs a delay before it shuts, or it closes on your hand | 3 |
| a keypad | count and remember | a screen | A guessing game that narrows the range with every guess. Real algorithm work in a box you already own | 10 on a TM1637. 14 on the hub's bare screen, and two of those have to be analog pins doing digital work |
| a sound | time it | a relay | A clap-operated light that stays on five minutes. Low-voltage lamp only. Mains is not part of this course and never will be | 2 |
| light | map a range | a stepper dial | A pointer that shows how bright the room is, on a card dial you marked with your own measured numbers | 5 |
| an RFID card | a sequence in order | four digits | A sign-in board for the hub: tap in, tap out, and it shows how many people are in the room | 7 |
And one that fails, which is more useful than the six that work
The idea: temperature and damp, shown as a scrolling message on the 8×8 matrix.
Question 4 kills it. The bare matrix is 16 pins and the DHT11 is 1. That is 17 of your 18, so there is no room for a button, a buzzer, or anything else, and no room to grow. It would work exactly once and never be extendable.
Question 2 nearly kills it too. Read a sensor, print the number. There is no decision anywhere in it. It is a display, not a device.
Both are fixable, and the fixes are different.
For the pins, two 74HC595s would drive the matrix on 3 instead of 16. That is the right answer and it is a plan rather than a build: the hub has one of those chips and no lesson for it yet, and even with two you would still need the resistors and something to carry the current for a whole row. The cheap answer today is the TM1637 for 2 pins — but notice what that costs you. It is four digits and it cannot show letters, so the scrolling message is gone and you are showing two numbers instead. That is a different device, and saying so out loud is part of the method rather than a defeat.
For the missing rule, give it something to decide: show the temperature normally, but flash a warning when the room has been above your threshold for ten minutes. Now there is a threshold, a timer and a memory in it, and it is worth an afternoon.
Twenty starters, if you want somewhere to begin
All of these come out of the table, all fit the pin budget, and all use only what is in the box. None of them is as good as a problem you found yourself, and every one of them gets better the moment you find a person who has that problem and ask them about it.
| The device | The rule in one sentence | |
|---|---|---|
| 1 | Roof gutter blockage warning (the tank version is Band 8's worked example — read it, do not hand it in) | Warn when the water in the gutter has been high for more than a minute, so a splash does not set it off |
| 2 | Washing-line rain alarm | Sound when the plate is wet, stay quiet until it is properly dry again |
| 3 | Brooder temperature alarm (also a Band 8 brief) | Warn when the chicks' house drops below your measured night threshold |
| 4 | Door-open reminder | Beep if the distance sensor has seen the door open for more than a minute |
| 5 | Exam-hall timer | Three lights: green, then yellow at five minutes left, then red |
| 6 | Reading-light minder | Lamp on when dark, off after twenty minutes unless a button is pressed |
| 7 | Queue counter for a kiosk (also a Band 8 brief) | Count people past the sensor, show the number, reset with a long press |
| 8 | Sign-in board | Tap a card in, tap out, show how many are in the room |
| 9 | Clap-operated lamp | Two claps within a second turn it on; it goes off by itself after five minutes |
| 10 | Study-session timer | Twenty-five minutes work, five minutes rest, a different tone for each |
| 11 | Reaction-time board | Random wait, light, time the press, keep the best of the day |
| 12 | Parking guard for a narrow gate | Beep rate rises with closeness, solid tone under 10 cm |
| 13 | Room-too-humid warning | Warn above your measured threshold, clear only well below it |
| 14 | Combination lock with a keypad | Four digits, three wrong tries, then a lockout that gets longer each time |
| 15 | Light-level dial | A stepper pointer on a card dial marked with numbers you measured |
| 16 | Fan that answers the room | Speed rises with temperature, with a dead zone so it does not hunt. Needs the diode; with no diode in the box, run the motor from the ULN2003 board instead |
| 17 | Remote-controlled lamp | Colour and brightness from the IR remote, with an off button that means off. Keep the three colour legs off pins 3 and 11: the IR library has taken that timer |
| 18 | Morse practice box | Button in, dots and dashes out, and it prints what you tapped |
| 19 | Dice for a game nobody has to trust | Hold to roll, release to stop, on a digit everyone can see |
| 20 | Quiet-room monitor | Green light normally, red when the noise stays high for ten seconds |
Turn an idea into a plan, on one sheet of paper
Before any wiring. Every time. This is the whole deliverable of inventing something, and it takes half an hour.
- The person and the problem, in their words, not yours. One paragraph.
- The three columns: what it notices, the rule, what it does.
- The rule written out as one sentence containing when, until or unless.
- The pin budget, added up, against 18.
- The test: the exact thing you will do to it, and the exact thing it should then do.
- The numbers you will have to go and measure, and where you will measure them. There are almost always some, and guessing them is the commonest way a good idea produces a useless device.
This is Band 8, arriving early
Band 8 asks for everything on this sheet and three things more: five criteria written and dated before you build, an honest evaluation against them afterwards, and a ninety-second voice note explaining your own code. If you can fill this sheet in now, the capstone is going to be much easier, and if you cannot, you have found out cheaply which part you do not yet understand.
An invented project is also the best thing you will ever post. Nobody else in the world has your video, because nobody else built your device for your person. A copied build shows you can follow instructions. This one shows you can see a problem and close it.