Wireless RC Car With Arduino

by Mesith Kudagama in Circuits > Arduino

554 Views, 1 Favorites, 0 Comments

Wireless RC Car With Arduino

1610695104868.JPEG

What's up guys? Today I'm going to show you how to make a Wireless RC car using Arduino. It is a very fun project to make and I hope you guys have fun making this project. So let's get into it!!

Supplies

For this project we need quiet a bit of Supplies. But don't be overwhelmed(lol). If you are using these supplies for the first time I do recommend to do some research on those modules. So, the supplies we need are:

  • 2 Arduino Uno/Nano boards
  • L298N Motor Driver
  • 2 Nrf24l01 Wireless modules
  • Joystick module
  • Wires
  • 2 Gear motors
  • 2 Casper wheels

Making the Circuit

1610693564122.JPEG
1610693563597.JPEG

Guys, first of all we will be making the circuit. In here we have used 2 Arduino boards. 1 Arduino board to transmit signals as the remote(Transmitter) and the other Arduino board to receive the signals and work as the car(Receiver). Fix the circuit according to the below instructions. Check the hyper links to get a better understanding of the modules(Property of lastminuteengineers.com).

Transmitter Circuit--

  1. Nrf24l01 module
  • GND - GND pin in Arduino
  • VCC - 3.3v pin in Arduino(Do not connect 5V pin)
  • CE - Digital pin 9
  • CSN - Digital pin 8
  • SCK - Digital pin 13
  • MOSI - Digital pin 11
  • MISO - Digital pin 12

2.Joystick module

  • GND - GND pin in Arduino
  • VCC - 5v pin in Arduino
  • VRY - Analogue pin A2
  • VRX - Analogue pin A1

Those were the connections that should be made in the transmitter circuit. Now let's check out the connections that should be made in the receiver circuit.

Receiver Circuit

  1. Nrf24l01 module
  • GND - GND pin in Arduino
  • VCC - 3.3v pin in Arduino(Do not connect 5V pin)
  • CE - Digital pin 9
  • CSN - Digital pin 8
  • SCK - Digital pin 13
  • MOSI - Digital pin 11
  • MISO - Digital pin 12

2. L298N Motor Driver

  • 12V - 5V pin in Arduino
  • GND - GND pin in Arduino
  • N1 - Digital pin 7
  • N2 - Digital pin 6
  • N3 - Digital pin 5
  • N4 - Digital pin 4
  • OUT1 - 1 Gear motor pin
  • OUT2 - 1 Gear motor pin
  • OUT3 - 2 Gear motor pin
  • OUT4 - 2 Gear motor pin

As a power supply I used a Power pack. You can use a 12V or 9V battery.

Writing the Code

Before writing the code let me explain you guys how this is going to work. So firstly, In the Transmitter circuit I'm going to take the readings from the joystick module and map them from 0-180. Then I'm going to transmit those values using the Nrf24l01 module to the Receiver circuit. Then after receiving these signals by the Nrf24l01 module in the Receiver circuit I'm going to give instructions to the Arduino board to move the gear motors according to the values received. Download the codes and upload them to the Arduino board. For the power supply I used a power bank to power up the car and fixed the Receiver circuit to my laptop. If you are using batteries I recommend to use a 12V battery to the car and a 9v/12v battery to the remote.

That's All!!

arduino logo.jpg

So that's it. Hope you guys made it and had fun. If you have any questions regarding the project ask them in the comment section.