An embedded system for a simulated traffic light intersection