By Kevin McAleer, 4 Minutes
Page last updated November 24, 2026

Every robot misbehaves sometimes. The trick isn’t never having problems. It’s finding them quickly. This lesson collects the faults you’re most likely to meet, with a short routine for finding the rest.
| Problem | Solution | Why |
|---|---|---|
RuntimeError: I2C interface couldn't be determined automatically |
Build an I2C bus with your board’s SCL and SDA pins and pass i2c_bus=i2c to every Modulino |
The library only auto-detects Arduino’s own boards. The FeatherS2 Neo is not one of them |
| The scan finds nothing | Check the Qwiic cable from the board to the first module and that the board is powered | Power and data both travel down that one cable |
| One module is missing from the scan | Unplug and re-seat its Qwiic cable | Connectors click when they are home. A half-seated one drops out |
| LED Matrix stays dark | Call matrix.show() after drawing, and give the address 0x39 |
Drawing writes to a buffer. Auto-discovery doesn’t find the matrix on every board |
| The face is upside down | Flip both axes in your drawing code | The module can’t know how it was mounted |
distance crashes the loop with TypeError |
Check for None, and catch TypeError and OSError around the read |
None means nothing in range, and a sensor timeout can raise instead of returning |
| The robot spins instead of driving straight | Flip INVERT_RIGHT |
The two motors face opposite ways |
| The robot drives backwards | Flip both invert flags | The same fix, applied to both sides |
| Motors don’t turn | Check the 9V battery is on VIN and GND on the Motors module |
The motors have their own supply, separate from Qwiic |
| The robot hesitates when it beeps | Use blocking=False for beeps inside the loop |
A blocking note holds up the loop |
| It reports left when tipped right | Swap the sign of the roll axis | Which direction is positive depends on how the module is seated |
| The robot ignores being lifted | Lower the tilt threshold and check which axis is pitch | If the axes are swapped, the code watches the wrong one |
| A second Distance module is not found | Use one per chain | Its address is fixed in the chip |
Two Modulino addresses match common parts. The Buzzer’s documented 0x3C is the usual address of small OLED displays. The Motors’ documented 0x48 is shared with some ADC and temperature chips. The Buzzer and Motors have an onboard processor, so their addresses can be changed if you hit a collision. The bare-sensor modules cannot be changed. Remember that a scan shows the 7-bit form, so 0x3C appears as 0x1E, and 0x48 as 0x24.
Before you blame a module, check these in order:
A module that appears in the scan is almost certainly alive. The problem is usually in what the code does with it.
If you hit something this course doesn’t cover, the official Modulino documentation is at docs.arduino.cc, and Arduino’s MicroPython library is on GitHub.
i2c_bus=i2c from one module. Read the error and fix it.selfcheck() function that scans the bus and prints which senses are missing, and call it at the top of main.py.
Comments