RC Car
A RC Car controlled by a Web Application
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
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
Bill of Materials
Device | Usage | Price |
---|---|---|
1 x Mini Aluminum Premium Twin Robot Mini Kit | The kit contains the chassis, two servomotors and a wheel | 69 RON |
1 x Rapspberry Pi Pico W | The microcontroller | 35 RON |
1 x L298N Motor Driver | Control motor motion | 9 RON |
1 x DC-DC Boost Module | Connecting the batteries to the board | 13 RON |
2 x 9V Alkaline Battery Varta 6LR61 4922 | The juice supplying the car | 13 RON |
1 x Mounting Bracket for HC-SR04 Ultrasonic Sensor (Red) | Holds the ultrasonic sensor | 2 RON |
1 x HC-SR04 Ultrasonic Sensor | Radar for the car | 7 RON |
2 x 400p HQ Breadboard | Accomodate hardware devices | 10 RON |
1 x Male-Male Wires | Do the connection | 7 RON |
1 x FS90 Micro Servomotor with Plastic Reducer | Rotates the ultrasonic sensor | 27 RON |
1 x 5 V Passive Buzzer | Honk | 2 RON |
1 x 10 mm Hexagonal Head Screw | Fixing the components in place | 1 RON |
Software
Links
- Instructables | Arduino RC Car Project
- OCW CS PUB | Grave Digger (Monster Car)
- YouTube | How to make an ultrasonic Radar
- YouTube | Create an RC Robot Car Using Pi Pico W and Robo Pico | Control it with a Webpage
- YouTube | Rust on ESP32 - Building an RC car in ESP-RS: The controller
- YouTube | Rust on ESP32 - Servo intro & deep dive
- Joseph Yiu, The De nitive Guide to ARM® Cortex®-M0 and Cortex-M0+ Processors, 2nd Edition