1
\$\begingroup\$

Consider I have 2 inputs, A and B. I need help with a circuit that does the following if only A is active (A,B : 1,0), then the motor should run clockwise if only B is active (A,B : 0,1), then the motor should run anti-clockwise. for other situations, let the motor be in off state.. I'm using a raspberry pi's GPIO pins to send inputs ( i.e. A and B)

Also, since I'm using a power bank, i would like to know is there any way or a device that converts usb port to get Vcc and GND terminals.

The DC motor I have is the ones usually found in toys, maybe called miniature low torque flat motor, and the power bank I have has 3 USB ports,5V 2A, 5V 1A, 5V 1A.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.