EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / Intelligent ambulance with automatic traffic control

Intelligent ambulance with automatic traffic control

|

Microcontroller › PIC › Intelligent ambulance with automatic traffic control

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 4 months ago by tadi.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 27, 2016 at 3:53 pm #4497
    tadi
    Participant

    Hello 

    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 #14024
    Prabakaran P M
    Participant

    1. 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 #14029
    tadi
    Participant

    Hello 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 || D==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 || D==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 || D==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 || D==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 #14030
    Prabakaran P M
    Participant

    As per my understanding it is connected through RF 433Mhz transciever

    June 28, 2016 at 12:58 pm #14031
    tadi
    Participant

    Yes 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.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • WTB: "The Theory Of Servicing AM, FM, And FM Receivers" by Clarence R. Green and Robert M. Bourque November 10, 2025
  • Anyone In The US Ordered From AliExpress Recently? November 10, 2025
  • Calculation of A Class amplifier November 10, 2025
  • strange laptop problem November 10, 2025
  • restarting this Christmas project November 10, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise