All projects
Robotics & Edge / Embedded

Microcontroller-Free Obstacle-Avoiding Robot

Completed

A microcontroller-free obstacle-avoiding robot built from IR sensors, op-amp comparators and discrete transistor (RTL) logic gates driving an L298N H-bridge — CSE350.

Microcontroller-free obstacle-avoiding robot

Overview

An obstacle-avoiding robot that navigates with no microcontroller and no code at all — every decision is made by discrete electronics. It's a hands-on demonstration that autonomous behaviour doesn't always need a programmable brain, built for CSE350 (digital logic / electronics).

How it works

Infrared sensors paired with op-amp comparators turn how much light bounces back off an obstacle into clean binary (on/off) signals. Those pass through Resistor-Transistor Logic (RTL) NOT gates built from NPN transistors, which generate the motor-control logic, and an L298N H-bridge then drives the two DC motors. The result: the robot steers away from obstacles purely through analog sensing and transistor logic.

Why it's interesting

By removing every programmable component, it becomes a clear teaching model for beginners in robotics and digital electronics — and a reminder of how much you can do with comparators and a handful of logic gates. Bench testing showed reliable detection and dynamic response across a range of obstacle scenarios.

By the numbers

0Microcontrollers / lines of code
2 IRSensors → transistor logic → motors

Schematic & figures

Full circuit: IR sensors → op-amp comparators → RTL NOT gates (NPN BJTs) → L298N H-bridge → DC motors — no programmable parts.
Full circuit: IR sensors → op-amp comparators → RTL NOT gates (NPN BJTs) → L298N H-bridge → DC motors — no programmable parts.

Tech stack & key skills

Core tools, methods and skills demonstrated in this project:

Digital electronicsResistor-Transistor Logic (RTL)BJT / NPN transistorsOp-amp comparatorsIR sensingL298N motor driverCircuit designBreadboarding