Hello , I have a topic stating I need to built an intelligent traffic light controller with camera detection of emergency vehicle . For this topic , I was told to consider esp32 board . I’m looking for guidance - which esp 32 micro controller will best suit this project and also any suggestions regarding the process of implementing this project would be highly appreciated. Thank uh in advance
I would start with a traditional traffic light with e.g. an Arduino UNO R3.
Keep some IO lines free to overrule behavior.
Then use an ESP32 or a Raspberry PI for image detection and analysis.
If an Emergency vehicle (EV) is detected, it gives triggers the UNO to adjust the lights accordingly. Be aware that the EV can come from 4 different directions and are not always come alone. Also note that the EV must get GREEN and all others RED light.
Please also define your requirements for the case when multiple EV's come from more than one side. Which will be first etc.
PS,
note that using different controllers for different task allows you to break up one complex design in multiple simpler designs.
Continuing the discussion from Building a traffic light controller - which micro controller best suits this project ?:
Hello robtillaart,
thanks for your valuable response . the thing is this is my master project i have to build intelligent traffic light controller with a camera to detect emeergency vehicles. for this i was given initially a esp 32 wrover b micro controller and ov 2640 camera .
i had connected my given esp 32 wrover b to ov 2640 camera on bread board with the help of connecting wires and then later , i had tarined a model in edge impulse studio to detect emergency vehicles like ambulance,police vehicle and fire engine.
as edge impulse studio supports officially only esp 32 eye ..i found it hard to deploy the tarined model onto my esp 32 wrover b ....as i need to modify all the code that i have obtained from tarining the model.
so what is my output?
my idea is that ... initially i will train a model to detect emergency vehicle , and then deploy the model as a ardunio librarry file .
in ardunio ide, i will add the libraries from the model trained files and also the tarined model code i will extract from the model tarined file
and then compile this trained model code in ardunio ide and then in serial monitor, when ever i point my camera to an emergency vehicle video, since the model is trained and deployed onto the esp 32 board....so in serial monitor i expect the camera to detect the vehicle and state either it is ambulance or fire egine
and then nce camera makes the necessary detections then, i will arrange three leds and resistors on bread baord and write program code as whenever a ambulance or police vehicle id detected .... the green led should turn on
so this is my idea regarding my project..... so the problem is esp32 wrover b ..when i deployed the code onto esp32 wrover b its showing in serial monitor guru medittaion eroor and sometimes even ftal errorand flash memory error.
note all camera connection are made acurately.
thanks once agin for ur patince and for reading my mial completely.
can uh suggest me a esp 32 micro controller that has enough 7gpio pind and is officillay supported by edge impulse studio. so that all my requiremnts will be satisfied. onve again thank uh or ut time
Your two or more topics on the same or similar subject have been merged.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.
Thank you.
What is the photographic clue that a vehicle is an emergency vehicle? In my state of Oregon, any vehicle with an "E" license plate is an emergency vehicle. Certain vehicles with a specific pattern strobe light will give a green light to that vehicle path and a red to all others. Is this what you are after? A camera will not tell you a strobe light pattern.