Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Project Documentation

Raspberry Pi Pico Controlled Bluetooth Robotic Vehicle with Ultrasonic Sensor and Servo Steering

Image of Raspberry Pi Pico Controlled Bluetooth Robotic Vehicle with Ultrasonic Sensor and Servo Steering

Circuit Documentation

Summary

This circuit integrates a Raspberry Pi Pico microcontroller with a variety of peripherals including a Bluetooth module, an L298N DC motor driver, two sets of motors and wheels, an HC-SR04 Ultrasonic Sensor, and an SG90 servo motor. The Raspberry Pi Pico serves as the central processing unit, controlling the motors through the L298N driver, communicating via Bluetooth, and interfacing with the ultrasonic sensor and servo motor for sensing and actuation purposes.

Component List

Raspberry Pi Pico

  • Microcontroller board based on the RP2040 microcontroller, featuring a dual-core ARM Cortex-M0+ processor and a rich set of I/O capabilities.

L298N DC Motor Driver

  • A high-power motor driver capable of driving up to two DC motors, with direction and speed control via digital logic signals.

Bluetooth Module

  • A wireless communication module that allows for Bluetooth connectivity, enabling remote control and data exchange with the microcontroller.

Motors and Wheels (2 sets)

  • DC motors connected to wheels, providing the motion capability for a robotic platform or vehicle.

HC-SR04 Ultrasonic Sensor

  • A distance measuring sensor that uses ultrasonic waves to determine the distance to an object.

SG90 Servo Motor

  • A small and lightweight servo motor capable of precise angular positioning, commonly used for steering mechanisms or small robotic arms.

Wiring Details

Raspberry Pi Pico

  • Bluetooth Module:
    • pin 1 connected to Bluetooth module's RXD
    • pin 2 connected to Bluetooth module's TXD
  • L298N DC Motor Driver:
    • pin 4 connected to ENA
    • pin 5 connected to IN1
    • pin 6 connected to IN2
    • pin 7 connected to IN3
    • pin 9 connected to IN4
    • pin 10 connected to ENB
  • SG90 Servo Motor:
    • pin 17 connected to Servo motor's PWM
  • HC-SR04 Ultrasonic Sensor:
    • pin 19 connected to TRIG
    • pin 20 connected to ECHO
  • Common Connections:
    • pin 38 connected to common GND
    • pin 40 connected to common 5V

L298N DC Motor Driver

  • Motors and Wheels:
    • OUT1 connected to first motor's GND
    • OUT2 connected to first motor's VCC
    • OUT3 connected to second motor's GND
    • OUT4 connected to second motor's VCC
  • Common Connections:
    • GND connected to common GND
    • 5V connected to common 5V

Bluetooth Module

  • Power Connections:
    • vcc connected to common 5V
    • gnd connected to common GND

Motors and Wheels

  • Each motor has two connections, vcc and GND, which are connected to the L298N motor driver's output channels.

HC-SR04 Ultrasonic Sensor

  • Power Connections:
    • VCC connected to common 5V
    • GND connected to common GND

SG90 Servo Motor

  • Power Connections:
    • 5V connected to common 5V
    • GND connected to common GND

Documented Code

Raspberry Pi Pico - sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

Raspberry Pi Pico - documentation.txt

(No additional documentation provided for the code)

This concludes the documentation for the given circuit. The wiring details provide a clear overview of how each component is connected, and the code section provides the basic structure for the Raspberry Pi Pico's program. Additional code and comments would be necessary to implement the specific functionalities of the circuit.