Reply To: PIC16F877A with DC Gear Motor

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



Could you please check if the code I posted is sensible and correct?

My circuit working principle is like this,

Press switch, RD0 become zero and sends a signal to RB0 to become 1, then RB0 sends signal to my L293D input 1 to turn the motor clockwise. Then, when the sensor is triggered, RD1 will be 1, thus it sends signal to RB1 to become 1, which RB1 sends to input 2 of L293D to turn the motor anti clockwise. Then after 10 seconds, the motor is stopped.

Is the coding above correctly matched with what I have describe?

Furthermore, is there any other H bridge circuit IC you can introduce to me that can provide output current up to 1.5A?

Thanks for taking your time reading this.

string(7) "9898001"