Hardware architecture of an autonomous mobile robot
Atlasbot · 10/6/2026 · 11 min read
Before writing a single line of code, the first thing when getting acquainted with mobile robots is to clearly understand which hardware blocks combine to form a complete robot, and why they need to exist. This article goes from the power source to the wheel, following the correct order of energy and data flowing through the robot.
Key concepts
This is where all sensor data comes in and all control commands are calculated — the "brain" of the robot, depending on complexity can be:
- microcontroller (MCU) such as STM32, ESP32 — suitable for high-speed, realtime, low-cost motor control loop
- Embedded computers (SBC) such as Jetson, Raspberry Pi — suitable for running Linux, ROS2, computationally heavy SLAM/AI algorithms
Actual AMR robots often use both: an MCU that takes care of the real-time motor control part, communicating with an SBC that takes care of the "intellectual" part.
The mobile robot must be powered by a battery (Li-ion/LiPo), and comes with a BMS (Battery Management System) to balance the voltage between cells, protect against overcharging/discharging, overcurrent/overheating, and indicate the remaining capacity. Incorrect power design is the most common reason why homemade robots "die" in the middle of work - usually due to voltage drop when the starting motor pulls a large current, not an algorithm error.
How it works
Each type of sensor answers a different question:
| Sensor | Answer the question |
|---|---|
| Encoder | How many times has the wheel rotated? → estimate the distance traveled |
| IMU | How much acceleration is the robot tilting/rotating? |
| LiDAR | What objects are around the robot, and how far away? |
| Ultrasonic/infrared | Is there an obstacle right in front of you? |
| Camera | Recognize objects, read lines, QR codes |
No robot uses exactly one sensor — reliability comes from sensor fusion, as each sensor has its own blind spot.
The MCU can only output low-voltage, small-current signals — not enough to rotate a DC motor that requires several Amps. Driver motor plays the role of amplifier: receives a small control signal, outputs a large current to actually rotate the motor. Almost all errors "robot does not move even though the code is correct" lie in this stage.
MCU, SBC, sensor and driver need a "common language" to talk: UART, I2C, SPI for short distances within the board; CAN bus for industrial environments with high electrical noise; WiFi/Ethernet for the robot to report status to the outside.
Technical details
Formulas
The total power budget of the robot is the total power consumed by each block, which directly determines the battery capacity to choose:
P_tong = P_MCU + P_SBC + P_cam_bien + P_dong_co (khi tai)
For example: MCU ~1W, Jetson Orin Nano ~15W (average load), LiDAR ~8W,
4 motors ~4×15W = 60W under normal load
P_tong ≈ 1 + 15 + 8 + 60 = 84W
With 12V battery, average current consumption = 84W / 12V = 7A
Parameters
Select the communication protocol between blocks according to the correct connection characteristics:
| Connect | Proper protocol |
|---|---|
| MCU ↔ sensor on the same board | UART, I2C, SPI |
| MCU ↔ motor driver (long distance, electrical noise) | CAN bus, RS485 |
| MCU ↔ SBC | UART or USB |
| SBC ↔ external monitoring system | WiFi/Ethernet |
Practical applications
In the actual architecture of the Atlas A2 project, ESP32 takes on the role of MCU in charge of controlling the motor and processing real-time emergency stop signals, communicating with Jetson Orin Nano (playing the role of SBC running ROS2, Nav2, vision AI) via UART or USB — exactly the 2-layer model mentioned in the Main Concepts section. Choosing the right protocol between blocks (CAN for a motor driver with many long wires that are prone to interference, simple UART for a short MCU-SBC connection) directly affects the long-term operating reliability of the robot in an industrial environment with many electromagnetic interference.
Practical example
components = {
"MCU": 1,
"SBC (Jetson)": 15,
"LiDAR": 8,
"Camera": 3,
"4x Dong co (tai binh thuong)": 60,
}
tong = sum(components.values())
print(f"Tong cong suat uoc luong: {tong}W")
dien_ap_pin = 12
dong_tieu_thu = tong / dien_ap_pin
print(f"Dong tieu thu trung binh o {dien_ap_pin}V: {dong_tieu_thu:.1f}A")
dung_luong_pin_Ah = 10
thoi_gian_hoat_dong = dung_luong_pin_Ah / dong_tieu_thu
print(f"Uoc luong thoi gian hoat dong voi pin {dung_luong_pin_Ah}Ah: {thoi_gian_hoat_dong:.1f} gio")
Output:
Tong cong suat uoc luong: 87W
Dong tieu thu trung binh o 12V: 7.2A
Uoc luong thoi gian hoat dong voi pin 10Ah: 1.4 gio
This estimate shows that right from the hardware architecture design stage, the combined power consumption of each component indicates how much battery capacity is needed to achieve the desired operating time - a calculation step that needs to be done before choosing specific components, not after the assembly is completed to discover that the battery is not enough.
Common mistakes
- BMS/source does not have enough peak current when motor starts — motor starting current can be much higher than steady running current (learned in DC Motor lesson, embedded programming section) — calculate power only from the steady-state load but ignore starting peak causing voltage drop/reset of the system.
- Choose a communication protocol that is not suitable for the distance/interference environment — use I2C (designed for very short distances) for long connections across the robot frame near the high-power motor, instead of CAN/RS485 which is much more resistant to interference.
- Single point of failure design for safety function — so that the entire emergency stop logic depends on the SBC (software crash) instead of an independent hard circuit on the MCU or a completely separate circuit.
- Not isolating electrical noise between the high-power wire (motor) and the sensitive signal wire (sensor) — sharing the motor power wire bundle with the I2C/SPI signal wire of the sensor causes interference, causing intermittent incorrect readings of sensor data that are difficult to diagnose.
Conclusion
The hardware block diagram — the power that powers the central processing unit, the sensors that pour data in, the processor that commands the motor driver, everything that communicates via the right protocols — is the picture to grasp before diving into specific components. Always calculate the total power budget and choose the right communication protocol from the architectural design stage. The next article in the category delves into the Motor — the component that turns electrical energy into actual robot movement.
Get new articles and lessons by email
When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.
Unsubscribe any time with the link in each email. See our Privacy policy.