Hardware & Wiring

To bring SARAS to life, you'll need a Raspberry Pi and a few key components. This guide outlines the recommended setup and wiring connections.

Component List

Microcontroller

A Raspberry Pi (3B+ or newer recommended) serves as the brain of the robot.

Motor Driver

An L298N or similar motor driver is used to control the four DC motors of the chassis.

Ultrasonic Sensors

Three HC-SR04 ultrasonic sensors are used for 180-degree obstacle detection.

Audio I/O

A USB microphone for voice input and a speaker for audio output.

Default Wiring (Raspberry Pi)

The following GPIO connections are the default settings in config.json. You can customize these pins in your configuration file if needed.

{
    "motor_pins": {
        "front_left": [18, 19],
        "front_right": [20, 21],
        "rear_left": [22, 23],
        "rear_right": [24, 25]
    },
    "sensor_pins": {
        "front_trigger": 2,
        "front_echo": 3,
        "left_trigger": 4,
        "left_echo": 5,
        "right_trigger": 6,
        "right_echo": 7
    }
}