Reply To: PIC16F877A with DC Gear Motor

Home Forums Microcontrollers PIC Microcontroller PIC16F877A with DC Gear Motor Reply To: PIC16F877A with DC Gear Motor

#11453
Shengo
Participant

Can you show me how should I connect my circuit and an example of code with 2 input to control 2 output should be please? Thanks

I know those 2 outputs should be connected to my L293d, just confused how the input should be connected and how the code should be, cause once if I turn on the switch, it will send signal to input 1 and the motor turn forward (clockwise direction), but what if I need to send another signal from sensor 1 to input 2 to turn the motor anti clockwise? Will those 2 signal overlap? By overlapping I mean both input is high.

Thanks very much.

>