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

Published

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

About: Arduino fan!

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.

Step 1: What You Will Need

Arduino UNO

Jumper wires

Smart Robot Car

L298N DC MOTOR CONTROLER

4ch 315mhz remote control module XD-YK04

Visuino program: Download Visuino

Step 2: The Circuit

  • 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

Step 3: Start Visuino, and Select the Arduino UNO Board Type

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.com 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

Step 4: In Visuino Add Components

  • Add 2X DigitalMultiSource
  • Add 5X "OR" Gate

Step 5: In Visuino: ​Connecting Components

  • 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]

Step 6: Generate, Compile, and Upload the Arduino Code

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)

Step 7: 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 Stepper motor project with Visuino. Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.com

Share

    Recommendations

    • Oil Contest

      Oil Contest
    • Planter Challenge

      Planter Challenge
    • Make it Move Contest

      Make it Move Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    I like ur concept, but I hate the lazy way of programming using visual tools

    Anyways good work