PIC16F877a/PIC16F887/PIC18/16F**** L293D/L298N motor driver IC interface using MikroC
Hello Folks,
I hope you all guys are great. This is my new video on PIC microcontroller series. In this video I will teach you how to interface an L293D IC using MikroC for PIC.
Here is the code:
void main() {
TRISB = 0x00; // It makes PortB a digital Port as output means it can only send either 0 or 1 from each pin
PORTB = 0x00; // Intital state must be stop of motor. So we keep H-brdige at 0 value mean stop.
while(1) // Coding inside while(1) repeats itself while above dont
{
PORTB.B0 = 1;// Sw 1 will send 1 to H bridge
PORTB.B1 = 0;// Sw 2 will send 0 to H bridge
Delay_ms(1600); // Keep the brdige in same state for 1000 ms. means motor will remain on for 1600 ms
PORTB.B0 = 0;// Sw 1 will send 1 to H bridge
PORTB.B1 = 1;// Sw 2 will send 0 to H bridge
Delay_ms(1600); // Keep the brdige in same state for 1000 ms. means motor will remain on for 1600 ms
}
}
Видео PIC16F877a/PIC16F887/PIC18/16F**** L293D/L298N motor driver IC interface using MikroC канала Learning Microcontrollers
I hope you all guys are great. This is my new video on PIC microcontroller series. In this video I will teach you how to interface an L293D IC using MikroC for PIC.
Here is the code:
void main() {
TRISB = 0x00; // It makes PortB a digital Port as output means it can only send either 0 or 1 from each pin
PORTB = 0x00; // Intital state must be stop of motor. So we keep H-brdige at 0 value mean stop.
while(1) // Coding inside while(1) repeats itself while above dont
{
PORTB.B0 = 1;// Sw 1 will send 1 to H bridge
PORTB.B1 = 0;// Sw 2 will send 0 to H bridge
Delay_ms(1600); // Keep the brdige in same state for 1000 ms. means motor will remain on for 1600 ms
PORTB.B0 = 0;// Sw 1 will send 1 to H bridge
PORTB.B1 = 1;// Sw 2 will send 0 to H bridge
Delay_ms(1600); // Keep the brdige in same state for 1000 ms. means motor will remain on for 1600 ms
}
}
Видео PIC16F877a/PIC16F887/PIC18/16F**** L293D/L298N motor driver IC interface using MikroC канала Learning Microcontrollers
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Setting up a PIC16F877A/PIC16F887/PIC18F****](https://i.ytimg.com/vi/CNwoRa1Lk3U/default.jpg)
![Speed control of DC motor using L298N with PIC16F877A || PWM || In Tamil.](https://i.ytimg.com/vi/3O-qGxqlYOc/default.jpg)
![Control Position and Speed of Stepper motor with L298N module using Arduino](https://i.ytimg.com/vi/cYTICj4DWYc/default.jpg)
![PIC16F877 part 1 Features & Pin Diagram Explanation](https://i.ytimg.com/vi/VO27u5kgGpE/default.jpg)
![digital voltmeter by PIC16F877 + mikroc + protius](https://i.ytimg.com/vi/IoXRk2laXHI/default.jpg)
![Experiment No-1.1 Arithmetic Operations using PIC16F877A (Addition and Subtraction)](https://i.ytimg.com/vi/j5A6LC_kk20/default.jpg)
![Interfacing of DC Motor with 8051 Microcontroller | Keil | Proteus](https://i.ytimg.com/vi/MZcjvQlX60k/default.jpg)
![how to interface a bipolar stepper motor with pic 18f452 in proteus using micro c](https://i.ytimg.com/vi/8aYCZFFJLXI/default.jpg)
![PIC18F4520 - HOW TO SET TIMER0 - STEP-BY-STEP- MikroC Pro for PIC - Episode#01](https://i.ytimg.com/vi/hI_gNCjo3G0/default.jpg)
![PIC16F877A/PIC16F887/18F**** interface with Water level sensor (mini project) using MikroC](https://i.ytimg.com/vi/AIGsCcdohqM/default.jpg)
![DC motor interfacing using PIC 16f877a controller programming with Proteus Simulation Tool](https://i.ytimg.com/vi/5ff_C5ia3HM/default.jpg)
![MPLAB XC8 PIC16F877A Analog Girişten PWM Üretmek | HOW TO GENERATE PWM WITH ANALOG?](https://i.ytimg.com/vi/3h_jhM7bVYE/default.jpg)
![Your first microcontroller project!](https://i.ytimg.com/vi/e4Q2dYVedPY/default.jpg)
![8- Project 1 Digital Thermometer, part 2 | mikroC Pro for PIC Tutorial](https://i.ytimg.com/vi/pvJWs3Dm2MQ/default.jpg)
![How To Use AVR Microcontroller? | Microcontroller Programming](https://i.ytimg.com/vi/yjwK9ww_-9k/default.jpg)
![PIC Ders-26 (L298 Entegresi ile DC Motor Sürümü)](https://i.ytimg.com/vi/vAXYzNQJPwM/default.jpg)
![PIC16F877A/PIC18F**** PIC to PIC UART interface. Proteus Simulation + MikroC coding + Hardware Demo.](https://i.ytimg.com/vi/6sa1lbgm_bw/default.jpg)
![DC Motor Speed and Direction Control PIC16F877A Part 8](https://i.ytimg.com/vi/dDTd5ihMf9c/default.jpg)
![DC motor speed and direction control using PIC16F877A and L293D CCS PIC C](https://i.ytimg.com/vi/H8j71bUhVeg/default.jpg)
![21- DC Motor Speed Control | mikroC Pro for PIC Tutorial](https://i.ytimg.com/vi/mHtI9m3aO3s/default.jpg)