How I ended up building a robot

My people, it is me again. Today I want to talk about some hardware and how I ended up building a small crawler/robot/rover (many names honestly). I learn by building. This is the best way for me. I can read about a thing for hours and it just sits there in my head doing nothing, but the moment I have to actually make it work, it sticks. And for as long as I can remember I've been into technology. Not in a "I memorised the spec sheet" way, more in a "what happens if I poke it here" way. Inquisitive mostly tbh.

Here's the thing though. All of that was software for me. I write code for a living and I'm comfortable there. But hardware, electronics, power, the actual physical stuff that software eventually has to run on, I knew basically nothing about it. I mean I knew a little but not enough to feel comfortable. If you'd asked me what a common ground was, or why you can't just plug everything into the same 5 volts, I'd struggle to explain because my understanding isn't deep enough

So I decided to fix that. And the way I fix things is I build something. I got myself a remote-controlled crawler and a pile of Arduino boards and told myself I was going to turn this toy car into a little robot I could drive from my phone. Learn a bunch of hardware along the way, have fun doing it. That became Romulus.

Everything I started with: the crawler, its remote, an Arduino starter kit, a breadboard and a bag of sensors

Was there a real problem? Not really

I'll be honest with you. I mostly just wanted to build something cool. That's the real reason. There wasn't some big pain point I was solving. Sometimes just build for fun

But if I think about it a bit more seriously, there is a thing. If you're a software engineer, your day job almost never gives you a reason to touch hardware. You're up in the clouds, in the abstractions, in the nice clean world where electricity is somebody else's problem. Which is fine, but it means a whole layer of how computers actually work stays invisible to you forever unless you go looking for it.

Nobody was going to hand me that opportunity so I made it myself. That's kind of the whole point of Romulus. It's a problem I invented so I'd have an excuse to learn.

What I actually set out to build

Keep it simple: a remote-controlled crawler I could drive from my phone, with a live video feed, that could eventually drive itself around the house.

Romulus is a 1:10 scale rock crawler built on a WLToys 104010 chassis. The brains are an Arduino Uno Q, which is a funny little board because it's actually two computers in one. There's a small Linux computer on it (the kind of thing that can run proper programs and talk to WiFi), and there's a tiny microcontroller (the kind of thing that's really good at talking to sensors and motors but can't do much else). I'll come back to why having both matters.

Romulus with its guts on: the breadboard, the Arduino Uno Q and the power bank all strapped onto the crawler

The long-term dream is a house-scale recon robot. Something that can roll around on its own, see where it's going, and let me grab the controls from my phone whenever I want. There's a separate AI assistant I've built called Alfred that talks to Romulus over WiFi, but that's a story for another day. If you know me you know my trusted butler Alfred.

So what does this thing actually need?

Let me walk you through the shopping list, because every single item taught me something.

On the hardware side I needed the crawler itself, the WLToys 104010. Then the Arduino Uno Q for the brains. Then a second board, a plain Arduino Uno R3, which ended up being more important than I expected (more on that later). I wanted it to see, so I got a webcam for the front and a little gimbal camera that can pan around for looking about. I needed power, so I got a big 30,000 mAh power bank. I needed a way to split that power out to everything, so a USB hub that does both power and data. And finally some time-of-flight sensors, which are these tiny little things that fire out invisible light and time how long it takes to bounce back, so the robot can tell how far away a wall is.

One of the time-of-flight distance sensors. The whole robot's sense of "there's a wall ahead" comes from these tiny things.

And here's the little pan-and-tilt camera that sits up top and looks around. It's on a tiny gimbal, so it can swivel to have a nosey without the whole robot having to turn.

The pan-tilt camera up top, next to the power bank strapped into the roll cage

The little camera that pans around to look about.

On the software side, first I needed something to actually drive it with. I already had my Alfred iOS app, so I used that as the controller.

Now here's where the two-brains thing comes back. Because Romulus has two brains, it needs two separate lots of software that cooperate.

The Arduino Uno Q, the big brain. That little square grid is an LED matrix, and the chip underneath is a proper Qualcomm processor running Linux

The Linux side of the Uno Q runs the bigger programs. There's one small program whose whole job is to expose a set of controls, basically a menu of things you can ask the robot to do: go to a spot, stop, drive manually, tell me your status, describe what you can see, change power mode, nudge the steering trim. Then there's a second program that just grabs video and streams it to my phone.

The microcontroller on the Uno Q was originally supposed to drive the car too, actually steer and throttle it. But that turned out to be too much to pile onto it, so I handed that job off to the R3. These days the Uno Q's microcontroller just reads the distance sensors and reports what it sees.

The R3 is the muscle. It sits there listening to the Linux brain for commands, and when a command comes in it turns that into actual steering and throttle, including the speed caps so I don't launch my robot into a wall at full tilt.

The Arduino Uno R3, wired up to one of the distance sensors with a handful of jumper cables. This little board does nothing but drive the car

How the data actually moves

There are really three loops happening at once, and once I could see them clearly in my head, the whole thing made sense.

 My phone (Alfred app) | | WiFi v +---------------------------+ | Arduino Uno Q | the big brain | (a little Linux box) | runs the controls + streams video +---------------------------+ | | USB cable (commands go down) v +---------------------------+ | Arduino Uno R3 | the muscle | (tiny microcontroller) | turns commands into motor + steering +---------------------------+ | v Motor + steering servo -> the car actually moves 

The first is the command loop. I push the sticks on my phone. That goes to my server. The server does a safety check against the sensors (am I about to drive into something?). If it's happy, it passes the command down to the R3, and the wheels move. That's your drive going from thumb to tyre.

The second is the sensor and telemetry loop. The distance sensors and cameras are constantly feeding data in. That runs through the safety logic, and a stream of "here's what I'm sensing" flows back up to the Linux brain so everything upstairs knows what's going on down below.

The third is the video loop. A camera frame gets grabbed, marked up, and published. The server picks it up, and sends it on to my phone so I can see what Romulus sees. The front eye is just a cheap webcam I cracked open and bolted to the front of the cage, naked circuit board and all.

The front webcam, stripped out of its case and strapped to the front of the roll cage. This is the eye that feeds my phone.

A webcam with its case ripped off, zip-tied to the front. This is the eye.

 1) DRIVE phone -> Uno Q -> (safety check vs sensors) -> R3 -> wheels 2) SENSING distance sensors + cameras -> Uno Q (so it knows what's around) 3) VIDEO camera -> Uno Q -> phone (the live picture I watch) 

The wiring, which is where I learned the most

Honestly the wiring is where hardware stopped being abstract for me. Here's the big lesson: there are two completely separate power stories going on in this robot, and they must not get mixed up.

The Arduino Uno Q bolted onto the back of the crawler, breadboard and all, with the wiring running everywhere

The brain, bolted straight onto the car. The little white board is the breadboard where everything shares a ground.

 POWER 1 - the brains power bank --5V--> USB hub --+--> Uno Q +--> R3 +--> the two cameras Uno Q --+--> distance sensors +--> kill switch + little screen POWER 2 - the muscles car battery --> speed controller --+--> drive motor +--> steering servo Everything shares ONE common ground on the breadboard. 

One power path is for the brains. The power bank is the main source. It feeds a hub over USB-C at 5 volts, and the hub splits that 5 volts out to the Uno Q, the R3, and the two cameras. The Uno Q then feeds its own little things from there: the distance sensors, a manual kill switch, and a small LED screen.

The back of the power bank. 30,000 mAh, 5 volts out. This is what keeps all the computers alive

The power bank that runs all the brains. 30,000 mAh is a lot of phone charges, or one robot that stays on for ages.

The other power path is for the car's muscles. That's the car's own battery going into the speed controller, which then drives the motor and the steering servo.

Down in the belly of the car: the big drive motor, the speed controller it plugs into, and the battery's red connector. This is the muscle side

The muscle end of things. That black cylinder is the drive motor, the red plug is the battery, and the box in between is the speed controller that decides how hard the motor pulls.

The car's muscles run off their own 2S battery, 7.4 volts of lithium, and you charge that on a little balance charger so the two cells stay even. I was terrified that this would catch fire lmao

Charging the car's battery on a balance charger. 7.4 volts, two cells, topping up nicely

The car battery getting topped up. Two cells, 7.4 volts, charged slow and even.

Why keep them apart? Because motors are rude. When a motor or a servo suddenly pulls a load, it yanks a big spike of current and makes the voltage dip for a moment. If your delicate little computer is sharing that same power line, that dip can brown it out and reset it mid-drive. So you give the hungry, spiky stuff its own supply, and you keep the brains on a clean one. That one idea explains so much of how real electronics are built.

The one thing that does have to be shared is ground. Everything on the robot connects to a common ground on a little breadboard, otherwise the two halves have no shared reference and the signals between them stop making sense. That was a genuine "ohhh" moment for me.

And between all the boards and chips, it's just jumper cables. Loads of them. It looks like a mess and it kind of is, but every wire is doing one specific job.

The wiring inside the car: the motor, the speed controller, the Uno Q, and a fistful of little coloured wires joining it all up

Looks like chaos. Every single wire is doing one job.

What I learned

Loads, honestly. But a couple of lessons stand out.

One was UDP. When you're driving a robot in real time you don't want your commands queuing up politely and arriving late. You want them to go out fast and if one gets dropped, who cares, another one's right behind it. That's exactly what UDP is for, and wiring up the drive path to use it taught me the difference between "make sure every message arrives" and "just get there quick," and when you actually want each one.

The other big one was giving up and letting the R3 handle the driving. I spent a while trying to make the Uno Q do everything, and it kept being flaky. The moment I stopped being stubborn and gave the driving to a dedicated little board whose only job is to make clean steering and throttle signals, everything got more reliable. Sometimes the right move in hardware, same as in software, is to stop overloading one thing and split the work.

I also learned to just get my hands in there. Early on I was scared of the electronics, like I'd touch the wrong thing and break it. Somewhere along the way that fear went away. Plugging a jumper into the right pin, measuring a voltage with a multimeter to check a wire was actually alive, tracing a connection that wasn't working, that stuff turned me from someone who was nervous around the hardware into someone who could actually debug it.

Plugging one of the little jumper connectors into the board. By this point I'd stopped being scared of the wiring

Hands in the wiring. This is the bit that stopped being scary.

Where this is going

Right now Romulus drives when I tell it to. The next chapter is getting it to drive itself.

The way I'm thinking about autonomy is in layers, kind of like how you don't think about every muscle when you catch a ball. There's a bottom layer of pure reflexes, the "wall right in front of me, stop, don't argue" stuff that has to be instant. Above that there's a faster decision loop that handles the steady "keep heading roughly this way, nudge around that" driving. And above that there's a slower, smarter brain that actually looks at the camera, works out what's in the room, and decides where to go next.

The goal is that I can set Romulus down in the house, tell it "go have a look around," and it figures the rest out, while I can always grab my phone and take over whenever I want.

What Romulus sees when it's rolling around the house on its own

It's a toy car with a couple of cheap computers bolted to it. But building it took me from knowing nothing about hardware to actually understanding how power, sensors and motors fit together. And I had a stupid amount of fun doing it. If you're a software person who's curious about the physical layer under everything you write, go make yourself a problem like this. I'm telling you, it's super worth it!.