RC Car controlled with WIFI
Remote Controlled Car using WIFI and a phone app.
info
Author: George-Alexandru PETRE
GitHub Project Link: https://github.com/UPB-FILS-MA/project-GeorgePetre11
Description
An RC Car, created using Pico, that can be controlled using a Phone App with the use of WIFI. The car has controls to move forward,backward and sideways (as of this moment, in time there can also be added a sensor that can detect obstacles)
Motivation
I choose this project because I wanted to have an RC car that I could control with my phone and the idea of creating it and modifying it to my liking felt like an interesting challenge to take.
Architecture
Log
Week 6 - 12 May
- started buying the components for the project
- tested to see that all the components work properly
Week 7 - 19 May
- started building the project
- soldered wires to the motors
- made the connection between the Pico, L289N and the Motors
Week 20 - 26 May
- started the software milestone for the project
- first, made a code that moves the car 2 seconds in all directions
- then added the functions to move to lab 8 so that I can control the car using Wi-Fi.
Hardware
The main components of the hardware that I used are:
- Raspberry Pi Pico - The Pico microcontroller is a small, low-cost, high-performance microcontroller board built with the RP2040 chip developed by Raspberry Pi. It features a dual-core ARM Cortex M0+ processor, which provides ample power for handling the logic and control functions of the car.
- L289N Driver motor - The L289N is a powerful dual full-bridge driver designed to drive inductive loads such as relays, solenoids, DC, and stepping motors. In this project, this driver manages the motors by allowing the Pico microcontroller to run motors with a higher power requirement than the Pico can provide directly. It can handle a significant current load and operates over a wide voltage range, making it ideal for controlling the wheels of the car.
- Power Supply - 4 AA batteries
- 4WD Kit - This represents the chasis of the car. Contains the wheels, motors for the wheels and 2 acrylic plates that make the body of the car.
Schematics
Photos
Bill of Materials
Device | Usage | Price |
---|---|---|
Rapspberry Pi Pico WH | The microcontroller | 56 RON |
Punte H Dubla L298N | The Driver Motor | 11.53 RON |
Kit sasiu Smart Car 4WD | The chasis of the Car | 75.05 RON |
Suport baterii 4AA | Support for batteries | 11.53 RON |
4 x Cauciucuri | Wheels | In the Kit. |
2 x Placi acrilic | 2 Acrylic Plates | In the Kit. |
Fire Motoare | Wires for the Motors | In the Kit. |
4 x Encoders | 4 Encoders | In the Kit. |
8 x Suporti acrilic pentru motoare | 8 Acrylic supports for the motors | In the Kit. |
6 x Piloni hexagonali 30mm | 6 x Hexagonal Pillers 30mm | In the Kit. |
8 x Suruburi M3x30mm | 8 Screws M3x30mm | In the Kit. |
16 x Suruburi M3x5mm | 16 x Screws M3x5mm | In the Kit. |
10 x Piulite M3 | 10 x Nuts M3 | In the Kit. |
4 x AA Duracell Bateries | 4 AA Duracell Bateries | 15 RON |
Suport baterii 2AA | Support for 2 batteries | 4.99 RON |
Software
Library | Description | Usage |
---|---|---|
embassy-executor | Asynchronous executor for Rust embedded systems | Used for task scheduling and asynchronous programming |
embassy-time | Time management library | Used for time-based operations |
embassy-rp | Peripheral access library | Used for initializing and interacting with peripherals |
log | Logging facade | Used for logging messages |
embassy-usb-logger | USB logger implementation for embassy | Used for logging messages over USB |
embassy-net | Networking library | Manages Wi-Fi communications |
gpio | GPIO manipulation | Used for interacting with GPIO pins |
cyw43 | CYW43 | Used for interacting with the wi-fi chip of the pico |