Arduino Ladder · Bozoma Innovation Hub

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.

Time
115 min
You need
Paper and a pen. Then whatever your own idea turns out to need.
At once
Everybody at once
Before this
Best after Band 4, when you have met sensors and thresholds. Essential before Band 8, which asks for exactly the planning sheet at the end of this page.

Sketches for this project

Every file opens with a plain-English header saying what it does and how to wire it, hole by hole.

Why

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.

Read this before you get excited about the numberA table of combinations is not where ideas come from. Start from the table and you get solutions hunting for a problem, which is how most student projects end up in a drawer.

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.
Look closer

Every device you have built is the same three things

20 min

Go 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.

BandIt noticesThe ruleIt does
1nothing at alla sequence in orderthree lights
2a knobmap one range onto anothera colour
3four buttonscount and remembertwo lights and a buzzer
4how dark it isone threshold, and then finding out what is wrong with thata lamp
5four buttonsa sequence in order, timed with millisfour lights and notes
6a knoba deadband, so a wobble is not an instructiona servo arm
7distancefour ranges, each with its own words and its own beep ratea 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

It notices
  • a button
  • a keypad
  • a knob
  • light
  • distance
  • water on a plate
  • temperature and damp
  • a sound
  • an RFID card
  • a remote control
The rule
  • above a threshold
  • two thresholds, so it cannot flap
  • a sequence in order
  • count and remember
  • time it
  • map one range onto another
It does
  • 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.

Look closer

The budget nobody tells you about

25 min

Here 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.

PartPinsWhichWatch out for
LED, button, buzzer, IR receiver, DHT111any digitalA 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 module1any digitalThe 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 sensor1an analog pinOnly 6 of those exist, and Band 5 needs one left empty for randomSeed
Servo1any digitalServo.h stops analogWrite working on pins 9 and 10
Motor on a transistor1a ~ pinNeeds the diode. The fan-on-a-transistor page explains why it is not optional
Distance sensor, TM1637 display2any digitalThe TM1637 is four digits. It cannot show letters
Screen with a board on its back (I²C)2A4 and A5Check 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
Joystick32 analog, 1 digitalThat is a third of your analog pins for one part
RGB LED3three ~ pinsOnly six ~ pins exist
74HC595 shift register3any digitalGives you 8 outputs back. The best trade in the box
Stepper on a ULN20034any digital
RFID reader510, 11, 12, 13 and a reset pin of your choosingIt 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 screen6digital, or analog pins used as digitalPlus a knob for contrast, and twelve wires. This is the kind the hub has
7-segment digit7digital, or analog used as digitalSeven pins to show one number. This is the problem the 595 solves
4×4 keypad8digital, or analog used as digitalEight of your twelve digital pins for one input
Bare 8×8 matrix16needs four analog pins doing digital workThere 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.

Do the budget on paper before you touch a wireWrite your parts down the left and the pin count down the right, add it up, and compare with 18. Five minutes on paper saves an evening of discovering at the end that the screen and the keypad cannot both be there. This is the step that separates an idea from a plan.
Change it

Four questions that kill a bad idea in five minutes

20 min

Most of those five hundred and forty combinations are not worth building. Run every idea through these four before you open the box.

AskFails whenUsually 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 existsAdding 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 testableWriting 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 ownA 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.

Build

Six worked examples, including one that fails

30 min

Watch the method run. Each of these is one cell of the table turned into something you could start building this afternoon.

NoticesRuleDoesWhat that actually isPins
water on a platetwo thresholdsa buzzerThe 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 first2, or 4 with the green and red lights on it
distanceone thresholda servo armA bin whose lid opens when your hand is near. The rule needs a delay before it shuts, or it closes on your hand3
a keypadcount and remembera screenA guessing game that narrows the range with every guess. Real algorithm work in a box you already own10 on a TM1637. 14 on the hub's bare screen, and two of those have to be analog pins doing digital work
a soundtime ita relayA clap-operated light that stays on five minutes. Low-voltage lamp only. Mains is not part of this course and never will be2
lightmap a rangea stepper dialA pointer that shows how bright the room is, on a card dial you marked with your own measured numbers5
an RFID carda sequence in orderfour digitsA sign-in board for the hub: tap in, tap out, and it shows how many people are in the room7
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.

Make

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 deviceThe rule in one sentence
1Roof 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
2Washing-line rain alarmSound when the plate is wet, stay quiet until it is properly dry again
3Brooder temperature alarm (also a Band 8 brief)Warn when the chicks' house drops below your measured night threshold
4Door-open reminderBeep if the distance sensor has seen the door open for more than a minute
5Exam-hall timerThree lights: green, then yellow at five minutes left, then red
6Reading-light minderLamp on when dark, off after twenty minutes unless a button is pressed
7Queue counter for a kiosk (also a Band 8 brief)Count people past the sensor, show the number, reset with a long press
8Sign-in boardTap a card in, tap out, show how many are in the room
9Clap-operated lampTwo claps within a second turn it on; it goes off by itself after five minutes
10Study-session timerTwenty-five minutes work, five minutes rest, a different tone for each
11Reaction-time boardRandom wait, light, time the press, keep the best of the day
12Parking guard for a narrow gateBeep rate rises with closeness, solid tone under 10 cm
13Room-too-humid warningWarn above your measured threshold, clear only well below it
14Combination lock with a keypadFour digits, three wrong tries, then a lockout that gets longer each time
15Light-level dialA stepper pointer on a card dial marked with numbers you measured
16Fan that answers the roomSpeed 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
17Remote-controlled lampColour 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
18Morse practice boxButton in, dots and dashes out, and it prints what you tapped
19Dice for a game nobody has to trustHold to roll, release to stop, on a digit everyone can see
20Quiet-room monitorGreen light normally, red when the noise stays high for ten seconds
Anything on this list that switches a lampUses a relay module and a low-voltage bulb on a battery pack. Never a mains bulb, a socket, a plug or a cable that goes into a wall, not in this course and not after it. If a brief seems to need mains, the brief is not finished: go back and ask what the person would actually see, hear or feel if the thing were working, and sense that instead.
The best twenty-first is not on this listWalk round the hub, the compound or the market for an hour and ask three people what goes wrong in their day that nobody has fixed. Two of the three will say something you could build. That project will be better than every one of the twenty above, because somebody is waiting for it.
Done

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.

  1. The person and the problem, in their words, not yours. One paragraph.
  2. The three columns: what it notices, the rule, what it does.
  3. The rule written out as one sentence containing when, until or unless.
  4. The pin budget, added up, against 18.
  5. The test: the exact thing you will do to it, and the exact thing it should then do.
  6. 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.