Skip to main content

RC Car

A RC Car controlled by a Web Application

info

Author: Mihai-Antonio GEORGESCU
GitHub Project Link: https://github.com/UPB-FILS-MA/project-sadtoni/

Description

  • Using the Raspberry Pi Pico W microcontroller, I built a remote-controlled car, operated via a web application.

  • The connection is realized with Pico’s integrated Wi-Fi capabilities, since it is ten times faster than using Bluetooth and is easier to control via a web browser on an iPhone.

  • On the bonnet, an ultrasonic sensor is placed to provide distance information to the user, allowing them to control the car even if it is out of sight.

Motivation

The motivation behind my RC Car project comes from my desire to play, create and explore, and building the project gives me the opportunity to learn by building and coding everything from scratch.

Architecture

image

Log

Week 6 - 12 May

  • I placed the orders for the components, and I started to plan on how the car will look and function.

Week 7 - 19 May

  • Started to assembly the car components.
  • Did the KiCad schematic for the car.

Week 20 - 26 May

Hardware

  • Raspberry Pi Pico W:

Description: A microcontroller board based on the Raspberry Pi RP2040 chip, featuring Wi-Fi connectivity. Function: Serves as the central control unit for the RC car, processing inputs and controlling outputs to various components.

  • L298N Motor Driver:

Description: A dual H-bridge motor driver module capable of controlling the speed and direction of two DC motors. Function: Interfaces between the Raspberry Pi Pico W and the motors, allowing for control of motor operations through GPIO pins.

  • Servomotors:

Description: Rotary actuators that allow for precise control of angular position, typically used for steering and other precise movements. Function: Used for controlling the direction of the RC car.

  • Ultrasonic Sensor:

Description: A sensor that uses ultrasonic waves to measure the distance to an object. Function: Mounted on a servo motor to scan the environment and detect obstacles, providing data for obstacle avoidance.

  • LEDs:

Description: Light-emitting diodes used as headlights. Function: Provide illumination and visual feedback, connected to GPIO pins GP7 and GP8.

  • Buzzer:

Description: An electronic device that produces sound. Function: Used for auditory signals or alerts.

  • Aluminum Chassis:

Description: The structural frame of the RC car made from aluminum. Function: Provides a sturdy and lightweight structure to mount all the components.

  • Shopping Cart Wheel:

Description: A free-spinning wheel similar to those found on shopping carts. Function: Provides stability and support to the rear of the RC car.

Schematics

image

Bill of Materials

DeviceUsagePrice
1 x Mini Aluminum Premium Twin Robot Mini KitThe kit contains the chassis, two servomotors and a wheel69 RON
1 x Rapspberry Pi Pico WThe microcontroller35 RON
1 x L298N Motor DriverControl motor motion9 RON
1 x DC-DC Boost Module Connecting the batteries to the board13 RON
2 x 9V Alkaline Battery Varta 6LR61 4922The juice supplying the car13 RON
1 x Mounting Bracket for HC-SR04 Ultrasonic Sensor (Red)Holds the ultrasonic sensor2 RON
1 x HC-SR04 Ultrasonic SensorRadar for the car7 RON
2 x 400p HQ BreadboardAccomodate hardware devices10 RON
1 x Male-Male WiresDo the connection7 RON
1 x FS90 Micro Servomotor with Plastic ReducerRotates the ultrasonic sensor27 RON
1 x 5 V Passive BuzzerHonk2 RON
1 x 10 mm Hexagonal Head ScrewFixing the components in place1 RON

Software

  1. Instructables | Arduino RC Car Project
  2. OCW CS PUB | Grave Digger (Monster Car)
  3. YouTube | How to make an ultrasonic Radar
  4. YouTube | Create an RC Robot Car Using Pi Pico W and Robo Pico | Control it with a Webpage
  5. YouTube | Rust on ESP32 - Building an RC car in ESP-RS: The controller
  6. YouTube | Rust on ESP32 - Servo intro & deep dive
  7. Joseph Yiu, The De nitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition