Skip to main content

Electronic Car

Remote-controlled car built and operated via smartphone.

info

Author: Bontas Adrian-Cosmin
GitHub Project Link: https://github.com/UPB-FILS-MA/project-adriancosm1n

Description

Picture this: a car you can drive using your phone. That's exactly what I'm making! It's a cool little car you can control with an app on your personal phone. You can make it go forward or backwards, left or right, only by tapping on your screen. It is super fun to play with and it's an interesting way to learn about how things work in electronic applications!

Motivation

I picked this project simply because I love cars. They're exciting and fun, and I can't get enough of them! Building a remote-controlled car that I can control with my phone lets me combine my passion for cars with learning about technology. It's like bringing two awesome things together into one cool project. Plus, working on something I'm so passionate about makes the whole experience even more enjoyable. So, that's why I decided to go for it!

Architecture

Architecture

This project diagram illustrates the connectivity of the system utilizing a Raspberry Pi Pico W as the main controller. The Raspberry Pi Pico W is connected to various components including two LEDs which act as headlights, a buzzer acting as a horn, an ultrasonic sensor, and four DC motors with wheels through an L298N motor driver module.

Log

Week 6 - 12 May

After extensive research and careful consideration, I successfully gathered all the necessary components for my electronic car project. The collection includes the essential L289N motor driver, a reliable breadboard, and the versatile Raspberry Pi Pico W. Each part was meticulously chosen to ensure compatibility and optimal performance, setting the stage for a well-functioning and innovative build.

Week 7 - 19 May

With all components in hand, I assembled the project into a sleek and visually appealing model resembling a police Porsche 911. The connections were made seamlessly, integrating the motor driver and microcontroller to bring the car to life. The final result is a high-tech, impressive-looking car that not only functions well but also captures the iconic aesthetic of a classic police cruiser.

Week 20 - 26 May

In the final week of my electronic car project, I coded the car's functions. Rust proved to be a robust and efficient choice for handling the L298N motor driver and the Raspberry Pi Pico W. After some effort, I successfully wrote and deployed the code that allows the car to move using Wi-Fi!

Hardware

1x Raspberry Pi Pico W: acts as the primary processing unit, equipped with Wi-Fi capabilities.

1x HC-SR04 Ultrasonic Sensor: utilized for measuring distances to detect nearby objects.

1x L298N Motor Driver Module: Provides the ability to control the four wheels.

4x Wheels with motors

2x LEDs

1x Buzzer

1x Power Supply

Here are some pictures of the project car:

1

2

3

4

Schematics

Here is presented the KiCad schematic: KiCad

Bill of Materials

DeviceUsagePrice
Rapspberry Pi Pico WThe microcontroller35 RON
HC-SR04 Ultrasonic SensorThe ultrasonic sensor9.72 RON
L298N Motor Driver ModuleThe motor driver module14.11 RON
LEDThe LEDs0.45 RON x 2
BuzzerThe Buzzer3.97 RON
Male to male jumper wiresThe Wires6.98 RON
Female to female jumper wiresThe Wires6.98 RON
Power SupplyThe Power Supply14.90 RON
Wheels with motorsThe wheels and motors8.99 RON x 4

Software

LibraryDescriptionUsage
embassyEmbassyAn asynchronous executor and Hardware Abstraction Layer (HAL) designed for constructing embedded applications in Rust.
embassy-networkEmbassy NetworkA networking library designed for use with the Embassy asynchronous executor, facilitating network communication within embedded Rust applications.
embassy-executorEmbassy ExecutorUsed for task scheduling and asynchronous programming
embassy-rpEmbassy RPUsed for initializing and interacting with peripherals
gpioGPIOUsed for interacting with GPIO pins
cyw43CYW43Used for interacting with the wi-fi chip of the pico
HC-SR04HC-SR04 manipulationUsed for controlling the ultrasonic sensor
  1. Freenove 4WD Car Kit for Raspberry Pi Pico
  2. Raspberry Pi Pico - Bluetooth Controlled Car Project
  3. NerdCave