Please written by computer source Build the code of an Arduino platform program that controls the movements of a robot. This robot has two infrared sensors, which make it follow a trajectory drawn on the ground, and two motors, one for each drive wheel. When the sensors detect the need to adjust the route, the engines must be manipulated in order to carry out the adjustment. For example, if the robot is veering to the left, the robot must move to the right until the route is fixed. For this, the motor on the right must be reversed (rotating backwards), and the one on the left must remain on (rotating forward). When the route is right, both motors must be turned forward so that the robot continues to walk straight ahead. The robot has an activation button that, while pressed, the robot must continue moving and, if released, must stop the movement. The sensors work as follows: the sensors are digital and Boolean having only value 0 and value 1; the value 0 means that the sensor did not detect deviation in the trajectory, and the value 1 means that the sensor detected a deviation in the trajectory. Possible movements are counterclockwise (reverse left engine and keep right engine forward), right (reverse right engine and keep left engine forward), forward (keep both engines forward). forward), and backward (reverse both engines).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please written by computer source

Build the code of an Arduino platform program that controls the movements of a robot. This robot has two infrared sensors, which make it follow a trajectory drawn on the ground, and two motors, one for each drive wheel. When the sensors detect the need to adjust the route, the engines must be manipulated in order to carry out the adjustment. For example, if the robot is veering to the left, the robot must move to the right until the route is fixed. For this, the motor on the right must be reversed (rotating backwards), and the one on the left must remain on (rotating forward). When the route is right, both motors must be turned forward so that the robot continues to walk straight ahead. The robot has an activation button that, while pressed, the robot must continue moving and, if released, must stop the movement. The sensors work as follows: the sensors are digital and Boolean having only value 0 and value 1; the value 0 means that the sensor did not detect deviation in the trajectory, and the value 1 means that the sensor detected a deviation in the trajectory. Possible movements are counterclockwise (reverse left engine and keep right engine forward), right (reverse right engine and keep left engine forward), forward (keep both engines forward). forward), and backward (reverse both engines).

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Adjacency Matrix
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education