Smart Traffic Control System Using V2X – Feasibility and Suggestions?

Hey everyone, I’m working on a project for my undergrad course and had this idea for a ‘Smart Traffic Control System using V2X.’ The concept is to send traffic signals and speed limits directly to vehicles at an intersection.

I’m planning to simulate a four-way intersection with four cars, one on each road. I’ve attached a picture of the setup. The cars will be controlled by Arduinos, and I’ll have a Raspberry Pi with a camera positioned above the intersection to track the vehicles. The cars will communicate their intended directions to the Raspberry Pi using NRF24L01 modules. The Pi will process this info, assign priorities and speeds to the cars, and send it back to them to ensure they move through the intersection smoothly and without collisions.

So, I’m wondering: Is this idea too complicated or maybe unnecessary? Is it realistic for me to pull this off? I’d love to hear any suggestions or improvements you might have. Thanks in advance!

As a project to teach you micro controllers, imagine recognition, real time control systems and programming it think it's an excellent idea. As an exercise in the reality of driving and driver behaviour not so much.

Following with interest although I don't have any particular advice to offer.

That inspires confidence! Thank you for the response!

Interesting. I'd say ok for a simple exercise ( small scale ), for a second step ( a large scale exercise ) that includes more than 1 intersections the system should address 'the right cars at the right intersection'.
Also the system could verify if each car is following the 'recommendations' and warn the other vehicles if not.

That sounds interesting and complicated at the same time. I'll definitely give it a shot if I manage to pull this off.

In my opinion this is a very large project. I would start with something smaller.

Some time ago I have written a traffic simulation. A city map with several intersections and lot of "cars" with several tasks. Each car drives to its own target without causing crashes and according to the possible ways, stopping at traffic lights ...

Here is an overview on that:
https://werner.rothschopf.net/microcontroller/202105_arduino_traffic_city_en.htm

Hardware can be built in short time.
When I remember correctly this was the order of the implementation

  • Software wise I have started with one traffic light with Neopixel,
  • then I come up with an intersection,
  • then with "cars"
  • I realized that I need a "city map" so cars are in constant movement and not only apear on one end of the screen
  • introduced tasks for firetrucks
  • and in the and a "lifecycle" of events

What do you think would be a good starting point? Would a Raspberry Pi and one car be a good option?

create your full story and calculcate how long your pupils will need to do each task.
Sum it together and calculate how long it will take.
Does this fit in your time constraints? A year?

When you have your time estimation, pick out the smallest "stand alone" thing to start with. Start with the "Minium Viable Product" which draws your pupils attention to your project.

And now I suggest you read again the link I have provided in my previous post.

My view is something like this:

  • first level ( single intersection super simplified )
    1.1) develop pc/raspberry 'system' program
    1.2) develop arduino 'car' program
    Both should be super simplified tasks ( no rf communication needed at this level, is enough a 'serial/textual' communication of some kind ), cars are already 'identified' ( right car is 'R1', left is 'L1'... ) define a series of task each program should do and define a basic set of commands to interact between the two. Also defining a 'test procedure' to verify that everything is working as expected
    2.1) convert the pc program to parspberry ( if not already developed on a raspberry )
    2.2) develop rf communication ( simple but... )
    2.3) develop a method to identify cars ( not that simple at all )
  1. ...

second level ( second year? )
...

P.S.
also consider that driving on the left side is very dangerous ; - )

Thank you for the guidance, will definitely read your work.

Thank you for the detailed steps, it's really insightful. And yeah I'll try not to drive on the left side lol.

Are you also building the 4 cars at the same time as you build the controlling system? Pretty big project!

Actually, we are a team of four and I plan to delegate the work among my team members as well.

And a very good plan. Are the car builders aware they are going to build something that cannot be tested until the whole project is completed? Or are you going to design test facilities so the cars can be tested in steps as they are being built?

We are planning on testing each component as it's completed.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.