Question: Use Raspberry Pi, DC motor, and 3 buttons to perform the following tasks: 1. Button 1 makes the motor turn clockwise when pushed. 2. Button
Use Raspberry Pi, DC motor, and 3 buttons to perform the following tasks:
1. Button 1 makes the motor turn clockwise when pushed.
2. Button 2 makes the motor stop when pushed.
3. Button 3 makes the motor turn counterclockwise when pushed.
Use switch statement and Interrupt to write your code.
Build the circuit to test your code. Submit your .c file and a video of your circuit.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
