I want to interface 12 dc motor with Raspberry pi 2. I tried by switching the transistor for forwarding and stopping the motor.How can i do it by doing with L293d ic.By giving 12v in L293d vcc2 pin does it affect my pi.please help me in solving the issue.
-
If properly connected the Pi will not be damaged. Neither would any other computer. There must be thousands of examples of hooking up a microprocessor to a L293D. Have you tried googling? – joan Mar 6 '16 at 10:53
-
1related raspberrypi.stackexchange.com/questions/8106/… raspberrypi.stackexchange.com/questions/37051/… – Ghanima♦ Mar 6 '16 at 11:45
-
The Adafruit tutorial linked from the first of Ghanima's linked questions seems to provide a pretty thorough walkthrough of hooking up an L293D to a Pi. Looks like a good starting point. – goobering Apr 6 '16 at 14:39
The Raspberry Pi pins only outputs 3.3V or 5V. If you need to control a 12V device you need to plug it to another power supply (or a power suply with different outputs for 5v and 12v as a standard PC power supply). Then you can control GPIO with WiringPi.