Posts

Showing posts with the label Debugging

“It Blinked. Now What?” — Understanding the First Steps in IoT Debugging

Image
You've written your code. You've flashed it to the board. The LED blinked. Victory! And then… nothing. Welcome to IoT debugging — where things almost work, and then don't. This moment isn't failure. It's your first clue. 🔦 The Short Version Every IoT maker hits the post-blink void. Here's the checklist that gets you out of it: 1. Open the serial monitor first. Insert Serial.println("Here!") debug prints to track where your code gets stuck. Don't forget Serial.begin() and the correct baud rate — without those, your messages disappear into the void. More than half of "mysterious" failures are solved here. 2. Check the hardware before touching the code. Loose jumper wires. Wrong GPIO pin declared. Sensor not getting enough voltage. These cause the majority of IoT failures. Many sensors won't run on 3.3V logic, and some draw more current than a microcontroller pin can supply — add a separate power source with common ground and watch ...