Almost every beginner embedded project fails in one of seven familiar ways, and most of them are not programming errors at all. They are wiring assumptions, unread datasheets, and code you cannot see into. Knowing the list in advance saves a weekend of guessing.
Mistakes one and two: power and wiring
- 1. Assuming the pins will save you. Driving a load straight from a GPIO pin burns current the pin was never meant to supply. Use a transistor or driver for motors, relays, and anything with a coil, and check the pin’s limits in the datasheet.
- 2. Trusting wire colour instead of a meter. Jumper wires lie, breadboard rails have gaps in the middle, and a ground that looks connected is the most common cause of “my sensor returns nonsense.” Buzz every new connection with a multimeter before writing code.
Both mistakes produce symptoms that look like software: values that drift, resets when a motor starts, a board that works until you touch it. When behaviour changes with your hand near the circuit, suspect wiring first.
Mistakes three and four: reading the wrong document
- 3. Working from a tutorial’s pin numbers. Boards look alike and are not wired alike. Read the pinout for your exact board revision, and write the mapping on paper before you plug anything in.
- 4. Ignoring timing requirements. Sensors and displays need setup delays, clock speeds, and specific bus states. Code that runs too fast reads stale or zeroed registers, and the fix is usually a delay or a wait for a ready flag, not a new library.
Mistakes five and six: debugging blind
- 5. No visibility. If the only output is an LED, you cannot tell “not running” from “stuck in a loop.” Add a serial print early, print the value and the place it came from, and keep those prints behind a compile flag so you can remove them later.
- 6. Changing three things at once. Rewiring, editing, and reflashing together means you learn nothing from a success. Change one variable per attempt, even when it feels slow — it is faster than a random walk.
Keep a log of what you changed and what happened. Three lines per attempt is enough, and after an evening the pattern is usually obvious.
Mistake seven: building a scope you cannot finish
The seventh mistake is starting with a robot that has four subsystems, none of which works alone. Beginners should begin with one input, one output, and a visible result: a button that lights an LED, a sensor that prints a number, a motor that turns for a second. Each of those teaches the whole loop — wire, flash, observe, fix.
Add the next subsystem only when the current one is boring and reliable. Projects that grow one verified piece at a time finish; projects assembled from five unverified pieces stall.
A short pre-flight check
Before powering anything new: meter the supply voltage, confirm polarity, confirm ground is shared, confirm no pin is driven against a pull-up, and confirm the board revision matches your pin map. Ninety seconds of checking prevents most of the seven mistakes above.