Close or Esc Key

Arduino Projects   |   Raspberry Pi   |   Electronic Circuits   |   AVR   |   PIC   |   8051   |   Electronic Projects

Line Follower Robot

Description

Comments

Unable to view code n cicuit

From where I can get reg51.h file that is mentioned in the above code?

 

send me some code please

 

send me some code please

 

send me some code please

 

I DON'T KNOW IF THIS CODE IS GOING TO WORK FOR YOU OR NOT, BUT THIS IS THE CODE

 

#include "Includes.h"

sbit   iN1   = P3^0; 
sbit   iN2   = P3^1; 
sbit   iN3   = P3^2; 
sbit   iN4   = P3^3; 
sbit   L1    = P2^0; 
sbit   L2    = P2^1;  
sbit   L3    = P2^2;   
// Main function
void main()
{
 
InitLCD(); // Initialize LCD display
WriteStringToLCD("Starting..."); // Show Welcome Message
delay_sec(1); // 1 Sec delay
 
 L1 = 1;
 L2 = 1;
 L3 = 1;
ClearLCDScreen(); // Clear LCD
WriteStringToLCD("LINE FOLWER"); // Display string
delay_sec(1); // Delay of one second
ClearLCDScreen(); // Clear LCD
WriteStringToLCD("ROBOT (8951)"); // Display string
delay_sec(1); // Delay of one second
while(1)
{
 
 
 
 
if ((L1 == 0 )&&(L2 == 0 )&&(L3 == 0 ))
{
ClearLCDScreen(); // Clear LCD
WriteStringToLCD("LEFT"); // Display string
iN1 = 0;
iN2 = 1;
iN3 = 0;
iN4 = 1;
delay_sec(1);
}
if ((L1 == 0 )&&(L2 == 1 )&&(L3 == 1 ))
{
ClearLCDScreen(); // Clear LCD
WriteStringToLCD("RIGHT");
iN1 = 1;
iN2 = 0;
iN3 = 1;
iN4 = 0;
}
if ((L1 == 1 )&&(L2 == 0 )&&(L3 == 1 ))
{
ClearLCDScreen(); // Clear LCD
WriteStringToLCD("FORWARD");
iN1 = 1;
iN2 = 0;
iN3 = 0;
iN4 = 1;
}
if ((L1 == 1 )&&(L2 == 1 )&&(L3 == 0 ))
{
ClearLCDScreen(); // Clear LCD
WriteStringToLCD("LEFT");
iN1 = 0;
iN2 = 1;
iN3 = 0;
iN4 = 1;
}
if ((L1 == 1 )&&(L2 == 1 )&&(L3 == 1 ))
{
ClearLCDScreen(); // Clear LCD
WriteStringToLCD("RIFHT");
iN1 = 1;
iN2 = 0;
iN3 = 1;
iN4 = 0;
}
 
}
}
 

hello world

i slept with ur mum

<p>first i bang drums then i bang ur mum</p>

Pages

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Search Engines will index and follow ONLY links to allowed domains.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This is to ensure that you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.