What microcontrollers taught me about software

I started with Arduino in 2019. Tight resources and visible bugs changed how I write software.

First project: a robot, two motors, zero docs

In 2019 I built an autonomous robot with an Arduino Mega. It read sensor data and reacted through motor drivers. Back then I didn't think of it as software; it looked like electronics. Looking back, most habits I still use were born there.

Tight resources bring discipline

The Mega had 8 KB of RAM. Accumulating even a small array of strings was a problem. So I had to think about why each variable existed. Memory is more plentiful in mobile apps today, but the habit is the same: before adding something, I ask whether it is actually needed.

Every bug is visible

In software, a bug lands quietly in a log. In robotics it is physical: the robot hits a wall, the motor spins the wrong way. That visibility built a reflex for catching mistakes early. Today when I debug, I try to observe the effect first and only then dig into the cause.

Talking to hardware is like a contract

A sensor talks over a protocol: right pin, right timing, right format. Miss one detail and it silently returns wrong data. API integrations feel the same to me now. I read the contract, test my assumptions, and stay wary of silent failures.

Tight resources teach clearer thinking.