Back to Browse

Making remote control RC car using Bluetooth with PIC16F877A mcu. Tutorial.

1.0K views
Jan 12, 2024
27:50

Guys, My lectures are free for everyone. If you want to support my channel, then become a Youtube member by following link below: https://www.youtube.com/channel/UCpdIWTTY36Dhyb20V4EnMiA/join Seek knowledge from the cradle to the grave /// /////////////////////////////////////////////////////**********************************///////////////////////////////// Hello guys, Welcome to Learning Microcontrollers youtube Channel, Guys I have also compiled course on Udemy as well. Where you will learn under my direct supervision in a more supervised way. Here is the links to the courses I have on Udemy, By taking any of these courses you will be supporting my channel aswell. This will help me to make more videos with better hardware in the future. I hope you look forward to it. Courses Links: 1- https://www.udemy.com/course/pic16f877a-interface-lm35-temp-sensor-mikroc-collection 2- https://www.udemy.com/course/mikroc-for-pic-libraries-with-examples-using-pic16f877a-mcu 3- https://www.udemy.com/course/mikroc-for-pic-libraries-with-examples-using-pic16f877a-mcu 4- https://www.udemy.com/course/pic-microcontroller-using-mikroc-for-pic-from-scratch 5- https://www.udemy.com/course/learn-arduino-uno-coding-using-arduino-ide ///////////////////////////////////////////////////// HC-05 based Bluetooth control car using L298N module. Using PIC16F877A MCU. Pre-requisite to this video is this video Setting up your hardware video link: https://www.youtube.com/watch?v=CNwoRa1Lk3U MikroC for PIC code : char hc5; void main() { UART1_Init(9600); Delay_ms(20); // b5 = in1 b4 = in2 b3 = in3 b2 = in4 TRISB = 0b00000000; PORTB = 0b00000000; Delay_ms(20); hc5 = 'z'; while(1) { if (UART1_Data_Ready() == 1) { hc5 = UART1_Read(); } if ( hc5 == 'f' ) { PORTB = 0b00101000; Delay_ms(200); } else if ( hc5 == 'b' ) { PORTB = 0b00010100; Delay_ms(200); } else if ( hc5 == 'l' ) { PORTB = 0b00100100; Delay_ms(200); } else if ( hc5 == 'r' ) { PORTB = 0b00011000; Delay_ms(200); } else { hc5 = 'z'; PORTB = 0b00000000; } } }

Download

0 formats

No download links available.

Making remote control RC car using Bluetooth with PIC16F877A mcu. Tutorial. | NatokHD