Comments on: Interfacing DC Motor with PIC Microcontroller using L293D https://electrosome.com/dc-motor-l293d-pic-microcontroller/ You Inspire.....We Create..... Sun, 16 Feb 2020 06:46:31 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Ligo George https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/9529 Sun, 16 Feb 2020 06:46:31 +0000 https://electrosome.com/?p=2157#comment-9529 In reply to Shani.

while(1) is same as while true…. means infinite loop…. always running loop

]]>
By: Shani https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/7469 Wed, 31 Jul 2019 13:54:48 +0000 https://electrosome.com/?p=2157#comment-7469 In reply to reko.

Purpose of while(1); ?

]]>
By: Ammar jadoon https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/7218 Wed, 19 Dec 2018 12:13:25 +0000 https://electrosome.com/?p=2157#comment-7218 Sir will this code run on pic18f452 microcontroller? Plz reply fast..

]]>
By: NIHAL SADATH CM https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/7182 Sat, 13 Oct 2018 19:15:32 +0000 https://electrosome.com/?p=2157#comment-7182 sir, how can we check whether the L293D is working or not, easily ?

]]>
By: NIHAL SADATH CM https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/7183 Sat, 13 Oct 2018 15:45:43 +0000 https://electrosome.com/?p=2157#comment-7183 How to check L293D whether working or not ? Easily ??

]]>
By: Robert https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/7107 Fri, 08 Jun 2018 03:26:33 +0000 https://electrosome.com/?p=2157#comment-7107 In reply to Ligo George.

How does define PORTC.F1 ??Which pin number are defined working?
Thank you.

]]>
By: Ligo George https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/7037 Mon, 02 Apr 2018 03:07:30 +0000 https://electrosome.com/?p=2157#comment-7037 In reply to reko.

Your pin numbers are defined working.

]]>
By: reko https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/7030 Sun, 01 Apr 2018 08:05:02 +0000 https://electrosome.com/?p=2157#comment-7030 Hello sir, I want to use a LCD with the same design above but I can’t seem to make it work, The program was built successfully but when I uplead the hex file and run on Proteus, nothing shows up.(I used port C as output.
here is the code:
sbit LCD_RS at RB4_bit;
sbit LCD_EN at RB5_bit;
sbit LCD_D4 at RB0_bit;
sbit LCD_D5 at RB1_bit;
sbit LCD_D6 at RB2_bit;
sbit LCD_D7 at RB3_bit;
sbit LCD_RS_Direction at TRISB2_bit;
sbit LCD_EN_Direction at TRISB3_bit;
sbit LCD_D4_Direction at TRISB4_bit;
sbit LCD_D5_Direction at TRISB5_bit;
sbit LCD_D6_Direction at TRISB6_bit;
sbit LCD_D7_Direction at TRISB7_bit;
void main()
{
CMCON = 0x07; // To turn off comparators
ADCON1 = 0x06; // To turn off analog to digital converters
LCD_Init();
LCD_cmd(_LCD_CLEAR);
LCD_cmd(_LCD_CURSOR_OFF);
TRISC = 0; // PORT C as output port
PORTC = 1; // Set RC0 to high
do
{
//To turn motor clockwise
PORTC.F0 = 1;
LCD_Out(1,1,”Rotate Clockwise”);
Delay_ms(1000); // 1 seconds delay

//To Stop motor
PORTC = 0; // or PORTB = 3 (3 = 0b00000011)
Delay_ms(500); // 1/2 second delay

//To turn motor anticlockwise direction
PORTC.F1 = 1;
LCD_Out(1,1,”Rotate AntiClock”);
Delay_ms(1000); // 1 seconds delay

//To Stop motor
PORTC = 0; // or PORTB = 3 (3 = 0b00000011)

Delay_ms(500); // 1/2 seconds delay

}while(1);

}
please help!!
https://uploads.disquscdn.com/images/3920c866020fe86138ee607a75f6965bdc67bb519d899c4e16dc909cd9ac2500.png

]]>
By: Ajith Kumar https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/6993 Tue, 06 Feb 2018 15:59:00 +0000 https://electrosome.com/?p=2157#comment-6993 In reply to Justin Ng Jit Qiang.

vdd should be grouned and vss should have5v

]]>
By: Yoga Sree https://electrosome.com/dc-motor-l293d-pic-microcontroller/#comments/6915 Sun, 29 Oct 2017 13:40:00 +0000 https://electrosome.com/?p=2157#comment-6915 can i use this to drive 12V, 2A Dc wiper motor along with arduino? If not can u please suggest me a IC that can work?

]]>