71.5k views
2 votes
Components:

Use 2 DC motors (ML,MR) and 2 Ultrasonic sensors(SL,SR) ,1 LCD, Motor Driver, and Arduino board.
Motion Test:
Fwd(): Forward motion: Run Both motors at same speed in fwd.
Back(): Backward motion: Run Both motors at same speed in backward.
Right(): Turn Right motion: MREO, ML move forward.
Left(): Turn Left motion: ML-0, MR move forward.
Display speed of both motors on LCD,
Obstacle Avoidance:
If an Object comes in FoV of SL,
Turn car to Right (will call Right() function) If an Object comes in FoV of SR, Turn car to Left (will call Left() function

User Poddroid
by
6.9k points

1 Answer

4 votes

Final answer:

This question is about creating a motion test and obstacle avoidance system for a car using various components such as DC motors, ultrasonic sensors, an LCD, a motor driver, and an Arduino board.

Step-by-step explanation:

This question is about creating a motion test and obstacle avoidance system for a car using various components such as DC motors, ultrasonic sensors, an LCD, a motor driver, and an Arduino board. To achieve forward motion, both motors are run at the same speed in the forward direction. For backward motion, both motors are run at the same speed in the backward direction. To turn right, the right motor moves forward while the left motor remains unchanged. To turn left, the left motor moves forward while the right motor remains unchanged. The speed of both motors can be displayed on the LCD.

For obstacle avoidance, if an object is detected by the left ultrasonic sensor, the car turns right by calling the Right() function. If an object is detected by the right ultrasonic sensor, the car turns left by calling the Left() function.

User Alex Kovanev
by
8.0k points