0 votes
by (200 points)
How do you use a Raspberry Pi with a motor?

1 Answer

0 votes
by (1.3k points)
The design of the circuit for controlling a DC Motor with Raspberry Pi is very simple. First, connect the pins 8 and 16 (VCC2 and VCC1) of L293D to external 5V supply (assuming you are using a 5V Motor). There are four ground pins on L293D. Connect pin 4 to the GND of supply.Sep 7, 2017');})();(function(){window.jsl.dh('12','');})();(function(){window.jsl.dh('_txagYPK1O5Dx-gS-xZmQDQ45','
');})();(function(){window.jsl.dh('14','
A motor can't be controlled directly from the Raspberry Pi's GPIO pins, because it needs a variable supply of 5 volts. This means you need to power it separately. However, motor controller add-on boards can be used to provide this functionality.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Jun 29, 2021 by motorcontroller (140 points)
0 votes
1 answer
0 votes
0 answers
asked Dec 22, 2020 by speed (440 points)
0 votes
0 answers
...