VISUINO Smart Robot Car 315mhz Remote Control Module XD-YK04

by RonFrtek in Circuits > Arduino

3967 Views, 5 Favorites, 0 Comments

VISUINO Smart Robot Car 315mhz Remote Control Module XD-YK04

VISUINO Smart Robot Car 4ch 315mhz remote control module XD-YK04

In this tutorial we will use Smart Robot Car, L298N DC MOTOR CONTROL module, 4ch 315mhz remote control module XD-YK04, Arduino Uno and Visuino to control the robot car with a remote control. Watch a demonstration video.

What You Will Need

a000066_featured (1).jpg
1200px-A_few_Jumper_Wires.jpg
l298n.jpg
remote.jpg
motor_car_robot.jpg

Arduino UNO

Jumper wires

Smart Robot Car

L298N DC MOTOR CONTROLER

4ch 315mhz remote control module XD-YK04

Visuino program: Download Visuino

The Circuit

robot-car-remote.jpg
  • Connect GND from Arduino to remote control module pin (gnd)
  • Connect 5V from Arduino to the to remote control module pin (VC)
  • Connect digital pin(9) from Arduino to remote control module pin (D3)
  • Connect digital pin(8) from Arduino to remote control module pin (D2)
  • Connect digital pin(7) from Arduino to remote control module pin (D1)
  • Connect digital pin(6) from Arduino to remote control module pin (D0)
  • Connect Power supply (batteries) pin (gnd) to motor driver controler pin (gnd)
  • Connect Power supply (batteries) pin (+) to motor driver controler pin (+)
  • Connect GND from Arduino to motor driver controler pin (gnd)
  • Connect digital pin(2) from Arduino to motor driver pin (IN2)
  • Connect digital pin(3) from Arduino to motor driver pin (IN1)
  • Connect digital pin(4) from Arduino to motor driver pin (IN3)
  • Connect digital pin(5) from Arduino to motor driver pin (IN4)
  • Connect DC one motor to one side of motor driver
  • Connect second DC motor to other side of motor driver

Start Visuino, and Select the Arduino UNO Board Type

FHQ8LX9JHATNGIN.LARGE.jpg
FKCSVTLJHATNGIO.LARGE.jpg

To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher, otherwise this Instructable will not work! If you have not done follow the steps in this Instructable to setup the Arduino IDE to program ESP 8266! The Visuino: https://www.visuino.eu also needs to be installed. Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino Add Components

2018-05-28_15-26-20.jpg
2018-05-28_15-26-05.jpg
robot-car-remote.png
  • Add 2X DigitalMultiSource
  • Add 5X "OR" Gate

In Visuino: ​Connecting Components

robot-car-remote.png
  • Connect Arduino digital out pin[6] to DigitalMultiSource1 pin[in]
  • Connect Arduino digital out pin[7] to DigitalMultiSource2 pin[in]
  • Connect Arduino digital out pin[8] to Or2 pin[1]
  • Connect Arduino digital out pin[9] to Or5 pin[1] and to Or4 pin[1]
  • Connect Or1 pin [out] to Arduino digital pin [3]
  • Connect Or2 pin [out] to Or1 digital pin [1] and Or3 pin [1]
  • Connect Or3 pin [out] to Arduino digital pin [4]
  • Connect Or4 pin [out] to Arduino digital pin [2]
  • Connect Or5 pin [out] to Arduino digital pin [5]
  • Connect DigitalMultiSource1 pin[0] to Or4 pin[0]
  • Connect DigitalMultiSource1 pin[1] to Or3 pin[0]
  • Connect DigitalMultiSource2 pin[0] to Or1 pin[0]
  • Connect DigitalMultiSource2 pin[1] to Or5 pin[0]

Generate, Compile, and Upload the Arduino Code

FV864OMIIDHAAFH.LARGE.jpg
FDV5SU4IIUKD6GH.LARGE.jpg

In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE

In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

Play

If you power the Arduino Uno module and add batteries for motor controller, the robot car is ready to drive. Depending on the button you press on remote controller it will go forward, backward, or turn left or right.

Congratulations! You have completed your Project. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.com