This project uses a radio frequency transmitter and receiver to control a two-wheeled car from a distance (remote control). Arduino collects the signal from the receiver and turns it into information that it can make decisions about and then output motor direction and power levels.
Materials:
1 Arduino Uno
1 L298N Motor Driver Board
1 Fly Sky Receiver and Transmitter Pair
1 Robot 2-wheeled Robot Chassis with DC Motors
1 9V Battery
Wiring:
**The wiring for this project is very similar to the wiring for the object avoiding robot that you built previously, accept for the addition of the wireless receiver.
FlySky Receiver to Arduino
Use the transmitter to find which mode the sticks are in…
Notice that the entire 2nd column is 5V and the entire 3rd column is GND…
Receiver
Arduino
GND
GND
5V
5V
Channel to
Match
Left Stick Y
A0
Channel to
Match
Right Stick X
A1
Wiring The Robot Chassis
L298N Pin
Arduino Pin
+5V
5V
GND
GND
ENA
6
IN1
4
IN2
5
IN3
7
IN4
8
ENB
9
You may have to play with these pin assignments depending on the orientation of your motors!
There should be two wires going into the ground port of the L298N motor driver… one from the battery and one to the Arduino.
Once the car is driving, the L298N will supply power from its +5V port into the Vin port on Arduino.