Please help me to interface L293D and HM2007 voice recognition module with PIC 16F877A microcontroller. The motor should change its direction for each output of HM2007.
You can directly connect the output of HM2007 module to input pins of pic microcontroller. Don’t forget to configure those pins as input by writing to TRIS register. It will be easy to program if you use same port for all those input pins. Then you can easily change the output of L293D for each inputs as per your requirements.
You can use HC-05 or HC-06 bluetooth module for that. Just pair that bluetooth module with your android device first. You can connect the RX of bluetooth module to the TX of microcontroller and vice versa. Then if you send any data from android you can easily read from the serial port of microcontroller and vice versa.