﻿ How to make a Line Follower Robot: Project with Circuit Diagram & Source Code of Simple Line Follower Robot
Close or Esc Key

Line Follower Robot

Description

Unable to view code n cicuit

Unable to view code n cicuit

From where I can get reg51.h

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

I DON'T KNOW IF THIS CODE IS

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

i slept with ur mum

<p>first i bang drums then i

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