Microcontroller › PIC › Intelligent ambulance with automatic traffic control
- This topic has 4 replies, 2 voices, and was last updated 8 years, 7 months ago by
tadi.
-
AuthorPosts
-
June 27, 2016 at 3:53 pm #4497
tadi
ParticipantHello
I have been dealing with the project of intelligent ambulance which controls the traffic signals according to the lane it travels out of four lanes.Following is the link for its cicuit diagram.
http://www.engineersgarage.com/contribution/intelligent-ambulance-automatic-traffic-control
My doubts regarding this are
1.Where do we have to connect the remote in ambulance unit and how?
2.The LEDs in the circuit are 8 but we need 12(4lanes *3LEDs).So how do we connect the rest 4?
3.I am unable to figure out the colours of LEDs in the diagram.
Please help me with these doubts.
My email id: [email protected]
Thank you.
June 28, 2016 at 12:25 pm #14024Prabakaran P M
Participant1. You can place in the Dashboard of the Ambulance
2. I think in this project only red and green is used. so it becomes 8 LEDs
3. There is no coding, so you have to decide on colors
June 28, 2016 at 12:46 pm #14029tadi
ParticipantHello sir
Thank you for the reply.
Well I was asking about how is the remote conneceted to pic microcontroller in the ambulance unit?
We also have a code regardinmg this in which three colours for the traffic are mentioned.
#include “reg51.h”
#include “define.h”
main()
{
Initialise();
while(1)
Traffic_Light();
}Traffic_AC()
{
here:
YA=0;YC=0;YB=0;YD=0;
GA=1;GC=1;GB=0;GD=0; //A and C side Green; B and D side Red
RA=0;RC=0;RB=1;rD=1;
if(count<50)
{
if(Input==0)
{
while(Input==0);
if(A==1 || C==1) //Ambulance from A or C side
{
Traffic_Light();
}
if(b==1 ||=1) //Ambulance from B or D side
{
Traffic_Light1();
}
}
goto here;
}
count=0;
}
Yellow_BD()
{
here1:
YA=0;YC=0;YB=1;YD=1;
if(count<20)
{
if(Input==0)
{
while(Input==0);
if(A==1 || C==1) //Ambulance from A or C side
{
Traffic_Light();
}
if(b==1 ||=1) //Ambulance from B or D side
{
Traffic_Light1();
}
}goto here1;
}
count=0;
}
Traffic_BD()
{
here2:
YA=0;YC=0;YB=0;YD=0;
GA=0;GC=0;GB=1;GD=1; //A and C side Green; B and D side Red
RA=1;RC=1;RB=0;rD=0;
if(count<50)
{
if(Input==0)
{
while(Input==0);
if(A==1 || C==1) //Ambulance from A or C side
{
Traffic_Light();
}
if(b==1 ||=1) //Ambulance from B or D side
{
Traffic_Light1();
}
}goto here2;
}
count=0;
}
Yellow_AC()
{
here3:
YA=1;YC=1;YB=0;YD=0;
if(count<20)
{
if(Input==0)
{
while(Input==0);
if(A==1 || C==1) //Ambulance from A or C side
{
Traffic_Light();
}
if(b==1 ||=1) //Ambulance from B or D side
{
Traffic_Light1();
}
}goto here3;
}
}
Traffic_Light()
{
Traffic_AC();
Yellow_BD();
Traffic_BD();
Yellow_AC();
}Traffic_Light1()
{
Traffic_BD();
Yellow_AC();Traffic_AC();
Yellow_BD();}
Thats why we are confused with coulour and number of LEDs.
I request you to please look into it.
Thank you.
June 28, 2016 at 12:49 pm #14030Prabakaran P M
ParticipantAs per my understanding it is connected through RF 433Mhz transciever
June 28, 2016 at 12:58 pm #14031tadi
ParticipantYes sir.
It has RF433X which gets data from HT12E encoder which gets its data from PIC microcontroller.But how is PIC microcontroller able to send the data to HT12E about which lane is the ambulance travelling?
Acoording to the link i have put in the post,It said the driver has remote where the lane number is selected.But how is that remote connected to PIC microcontroller ,This we are unable to understand.
-
AuthorPosts
- You must be logged in to reply to this topic.