Page 31 - Demo
P. 31
o IN1 HIGH + IN2 LOW %u2192 Forwardo IN1 LOW + IN2 HIGH %u2192 Reverse3. If no button is pressed, motor remains OFF.4. digitalWrite(in1, in2) defines motor direction logic. Expected Output / Learning Outcome Motor rotates Forward when Forward button is pressed. Motor rotates Reverse when Reverse button is pressed. Motor stops when no button is pressed. Students learn:%u2022 H-Bridge logic using L293D.%u2022 Directional motor control (key for robots, cars).%u2022 Handling multiple inputs for decision making. Practice Questions %u2013 Project 8 Multiple Choice Questions (MCQs)Q1. What is the role of IN1 and IN2 pins in L293D?a) They provide power to motorb) They decide motor directionc) They increase motor speedd) They protect motorAnswer: b) They decide motor directionQ2. If IN1 = HIGH and IN2 = LOW, motor will:a) Stopb) Rotate Forwardc) Rotate Reversed) Burn outAnswer: b) Rotate ForwardQ3. How many buttons are used in this project?a) 1b) 2c) 3d) 4Answer: b) 2