Project 1 · Your first real device · Build
What we are making: the whole device, working. Built in halves, as always.
That is not working. Something is marginal, and it is almost always one of two things: the threshold is too close to the normal reading, or a wire is only just making contact. Find out which, today. A device that works most of the time will fail in front of visitors, because that is invariably when it fails.
| What you see | Why | What to do |
|---|---|---|
| The output never fires | The decision, not the parts. | Print the reading and the decision. You will see which is wrong in a minute. |
| It fires constantly | The comparison is the wrong way round. | Swap > for <, or move the threshold. |
| It worked, now it does not | A wire came loose. | Check what you touched most recently, not the code you last changed. |
| It flickers on the boundary | Chatter, as in session 12. | Trigger above one number, release below a lower one. |
In this session