Question
One important issue of integrating multiple sensors and actuators within a single system is how the digital/analog pins can be arranged and how to specify
One important issue of integrating multiple sensors and actuators within a single system is how the digital/analog pins can be arranged and how to specify the required sample rate of the system. For example, the closed-loop control application in the previous module requires two digital pins to control the DC motor and one pin for encoder measurement. If we want to control a mobile robot, two sets of this combination require six digital pins. If distance sensors are required to avoid a collision, additional digital pins need to be considered. In this module, the system developed in the previous module will be expanded. We will emulate the mobile robot application and use four sensors and two actuators.
Distance Detector
In Module 4, we used ultrasonic sensors to detect the distance in front of the sensor. For a collision avoidance robot, the basic idea is similar:
- If the robot is far away from an obstacle, it runs at full speed linearly.
- If the obstacle is close to one side, then the robot needs to turn. After the obstacle is far away enough, then the robot moves linearly again.
- If the obstacle is too close to both sides, then the robot stops.
Thus, the programming of this mobile robot requires some logical judgment based on sensor feedback. We will start from a single set of the combination of an ultrasonic sensor, a DC motor, a PWM actuator, and a rotary encoder. The configuration based on what we have learned in Modules 4, 6, 7, and 8 can be put together to synthesize a complete system. You can download that configuration fromMotor Control with H-Bridge/Tinkercad.comLinks to an external site..
L2930 74HC74 74HC86 AREF 13 12 -11 RESET 3.3V 5V GND GND A1 A2 A3 A4 18 O UNO RX+0 28815 REV C WWW.PARALLAX COM PING)))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started