Pure Software code
 
www.puresoftwarecode.com

SOFTWARE Institute
Teach YourSelf
125 Software Programming Training Courses
For Free Download


CHRISTIANITY Institute
HUMANITIES Institute
Art Institute

All more the 500 Subjects, All for Free Download.
Lebanon  
Robot Car 4WD with Arduino, Testing
 
 
  Home :  Chapter 3: 4WD Robot Car, Testing                                                                                                                              Home
 
 
  1- Youtube Video, Testing Of the Multi-Functional 4 Wheel Drive Robot Car
 
  1.1- Watch Video on Youtube, Arduino Smart Car,  Testing  - Part 2     السيارة الذكية - روبوت تتبع الخط، الدرس 32 - الجزء 2   -   للمهندس حمزة عمار
   Video on Youtube, Arduino Smart Car, Testing  - Part 2 

https://www.youtube.com/watch?v=4StoJSLaAcA&t=0s    

 
  2- Movement Project 1 - Determine the correct direction of forward movement of the 4 WD Robot Car

 

 
 2.1- Schemas of Movements ...
 
   2.2- Connections

 
  2.3- the Code of the Current Application, using the Mixly Software Current Mixly application - (1.16 KB zip file)   download
 
  2.3.1- Picture, the Mixly Blocks(block programming) of the Current Application  2.3.2- Picture,  the Mixly Code of the Current Application, Equivalent to C / C++

 
  2.3.3- the Code  of the Current Application    -  C/C++
volatile int IN1;
volatile int IN2;
volatile int IN3;
volatile int IN4;

void setup(){
IN1 = 11;
IN2 = 6;
IN3 = 5;
IN4 = 3;
}

 


void loop() {
// Left
analogWrite(IN1,225);
analogWrite(IN2,0);
// Right
analogWrite(IN3,speed);
analogWrite(IN4,0);
}

 
  2.3.4- Test the Current Application
     1- Connect the Arduino UNO board of the 4WD robot car to computer’s USB port with USB cable to upload the code
     2- if the Code upload success, Turn the Power Slide switch ON
 
 
  3- Movement Project 2 - Test the all Movement Directions  of the 4 WD Robot Car, the Motor Drives  
 
 3.1- Schemas of Movements ...
   
 
   3.2- Connections

 
  3.3- the Code of the Current Application, using the Mixly Software Current Mixly application - (4 KB zip file)   download
 
    3.3.1- Picture, the Mixly Blocks(block programming) of the Current Application  3.3.2- Picture,  the Mixly Code of the Current Application, Equivalent to C / C++

 
  3.3.3- the Code of the Current Application    -   (C / C++)
volatile int IN1;
volatile int IN2;
volatile int IN3;
volatile int IN4;

void left_side_forward(int speed) {
// Left
analogWrite(IN1,(speed * 0.90));
analogWrite(IN2,0);
}

void right_side_forward(int speed) {
// Right
analogWrite(IN3,speed);
analogWrite(IN4,0);
}

void left_side_backward(int speed) {
// Left
analogWrite(IN1,0);
analogWrite(IN2,(speed * 0.90));
}

void right_side_backward(int speed) {
// Right
analogWrite(IN3,0);
analogWrite(IN4,speed);
}

void forward(int speed) {
left_side_forward(speed);
right_side_forward(speed);
}

void backward(int speed) {
left_side_backward(speed);
right_side_backward(speed);
}

void turn_left(int speed) {
left_side_backward(speed);
right_side_forward(speed);
}

void turn_right(int speed) {
left_side_forward(speed);
right_side_backward(speed);
}

void stop() {
left_side_forward(0);
right_side_forward(0);
}

void setup(){
IN1 = 11;
IN2 = 6;
IN3 = 5;
IN4 = 3;
}

void loop(){
forward(200);
delay(1000);
backward(200);
delay(1000);
turn_left(200);
delay(1000);
turn_right(200);
delay(1000);
stop();
delay(1000);

}
 
  3.3.4- Test the Current Application
     1- Connect the Arduino UNO board of the 4WD robot car to computer’s USB port with USB cable to upload the code
     2- if the Code upload success, Turn the Power Slide switch ON
 
 
  4- Testing the 3 Line Trackings

 
  4.1- Connections

 
 4.2- the Code  of the Current Application, using the Mixly Software

Current Mixly application - (1 KB zip file)   download

 
 4.2.1- Picture, the Mixly Blocks(block programming) of the Current Application  4.2.2- Picture,  the Mixly Code of the Current Application, Equivalent to C / C++

 
  4.2.3- Test the Current Application
     1- Connect the Arduino UNO board of the 4WD robot car to computer’s USB port with USB cable to upload the code
     2- if the Code upload success, Turn the Power Slide switch ON
 
 
  5- Testing the Servo Motor

 
  5.1- Connection

 
  5.2- the Code  of the Current Application, using the Mixly Software Current Mixly application - (1 KB zip file)   download
 
 5.2.1- Picture, the Mixly Blocks(block programming) of the Current Application  5.2.2- Picture,  the Mixly Code of the Current Application, Equivalent to C / C++

 
  5.2.3- Test the Current Application
     1- Connect the Arduino UNO board of the 4WD robot car to computer’s USB port with USB cable to upload the code
     2- if the Code upload success, Turn the Power Slide switch ON
 
 
  6- Testing the Ultrasonic HS04

 
  6.1- Connection

 
 
 6.2- the Code  of the Current Application, using the Mixly Software Current Mixly application - (1 KB zip file)   download
 
 6.2.1- Picture, the Mixly Blocks(block programming) of the Current Application

 
   6.2.2- Picture,  the Mixly Code of the Current Application, Equivalent to C / C++

 
  6.2.3- Test the Current Application
     1- Connect the Arduino UNO board of the 4WD robot car to computer’s USB port with USB cable to upload the code
     2- if the Code upload success, Turn the Power Slide switch ON
 
 
 7- Testing the IR Receiver and IR Controller

 
 
  7.1- Connection of IR Receiver

 
  7.2.1- Testing IR Receiver
 

 
  7.2.1.1- the Code  of the Current Application, using the Mixly Software

Current Mixly application - (1 KB zip file)   download

 
  7.2.1.2- Picture, the Mixly Blocks(block programming) of the Current Application

 

 
 7.2.1.3- Picture,  the Mixly Code of the Current Application, Equivalent to C / C++
 

 
  7.2.1.4- Test the Current Application and Result
 
     1- Connect the Arduino UNO board of the 4WD robot car to computer’s USB port with USB cable to upload the code
     2- if the Code upload success, Turn the Power Slide switch ON
 
     3- After powering on, open the serial monitor and set baud rate to 9600.
     4- Take out the remote control, and send signal to the infrared receiver sensor. You can see the key value of the corresponding key

 
  7.2.2- Project - Controlling a Multi-Functional 4 Wheel Drive Robot Arduino Car with a Remote control (IR Controller)
 

 
  7.2.2.1- the Code  of the Current Application, using the Mixly Software Current Mixly application - (4 KB zip file)   download
 
  Note: 
    1- Because the IR Receiver is a digital sensor, thus, the output received from it will either be 1 (hight) or 0 (low)
    2- in Arduino programming language, the digitalWrite() is used for controlling digital pins,

    3- IR Receiver conflict with analogueWrite

    4- The difference between digitalWrite() and analogWrite() in Arduino programming language is that digitalWrite() is used for controlling digital pins, while analogWrite() is used for controlling PWM (pulse-width modulation) pins for smooth control of analog-like signals.

 
 
  7.2.2.2- Picture, the Mixly Blocks(block programming) of the Current Application

 

 
 7.2.2.3- Picture,  the Mixly Code of the Current Application, Equivalent to C / C++
 

 
  7.2.2.4- Test the Current Application
 
     1- Connect the Arduino UNO board of the 4WD robot car to computer’s USB port with USB cable to upload the code
     2- if the Code upload success, Turn the Power Slide switch ON
 
  7.2.2.5- Watch the Current Application in Video
 
 
 
The Chapters :      1  2   3   4   5   6 
 
 www.puresoftwarecode.com  :  CHRISTIANITY Institute  HUMANITIES Institute  ART Institute & Others
 SOFTWARE Institute - "All Courses Free"    History of the MARONITES in Arabic  Basilica Architecture, in the Shape of a Cross

 Python, Teach yourSelf  Programs in 6 pages

 Holy BIBLE in 22 Languages and Studies ...  Le HANDICAP c'est quoi ?   (in French)  
 VISUAL STUDIO 2019, C# Programs, in English  220 Holy Christian ICONS  Drugs and Treatment in English, french, Arabic  Old Traditional Lebanese houses
 VISUAL STUDIO 2010 in English  Catholic Syrian MARONITE Church   Classification of Wastes from the Source in Arabic  5 DRAWING Courses & 3 Galleries
 VISUAL STUDIO .NET, Windows & ASP in En  HOLY MASS of  Maronite Church - Audio in Arabic  Christianity in the Arabian Peninsula in Arabic  Meteora, Christianity Monasteries - En, Ar, Fr
 VISUAL STUDIO 6.0 in English  VIRGIN MARY, Mother of JESUS CHRIST GOD  Summary of the Lebanese history in Arabic  Monasteries of Mount Athos & Pilgrimage
 Microsoft ACCESS in English  SAINTS of the Church  LEBANON EVENTS 1840 & 1860, in Arabic  Carved Rock Churches, Lalibela - Ethiopia
 PHP & MySQL in English  Saint SHARBEL - Sharbelogy in 10 languages, Books  Great FAMINE in LEBANON 1916,  in Arabic   4 Different STUDIES
 SOFTWARE GAMES in English  Catholic RADIO in Arabic, Sawt el Rab  Great FAMINE and Germny Role 1916,  in Arabic   SOLAR Energy & Gas Studies
 WEB DESIGN in English  Saint SHARBEL Family - Evangelization  Armenian Genocide 1915  in Arabic  Personal Protective Equipment
 JAVA SCRIPT in English  Читать - БИБЛИЯ и Шарбэль cвятой, in Russe  Sayfo or Assyrian Genocide 1915 in Arabic  WELCOME to LEBANON
 FLASH - ANIMATION in English  Apparitions of  Virgin Mary - Ar  Christianity in Turkey in Arabic  YAHCHOUCH, my Lebanese Village
 PLAY, 5 GAMES  Neocatechumenal Way   Prononce English and French and Arabic Letters  ZOUEIN, my Family - History & Trees
 Multi-Functional 4 Wheel Drive Robot Car              New  Holy BIBLE, for the Maronite Liturgical Year  Andree Zouein Foundation  
 HERMEZ Steel, Steel  Decor Artwork  Holy BIBLE, according to Maronite Calendar, (2023)  GIGI  L'AMOROSO Fashion and Jewellery   my PRODUCTS, and Statistiques ...
 SAADEH BEJJANE Architecture  Holy BIBLE, Online Translation in 133 Languages  Josette Zoueïn. Psychanalyste Psychologue  REPORT, Cyber Attack Attacks the Current Site
CARLOS SLIM HELU Site.  new design      
       Chucri Simon Zouein, Computer engineer
     
echkzouein@gmail.com
© pure software code - Since 2003