pmgducati / Slot-Car-Finish-Line

Pole Position Tower and Finsh line for Artin Slot Car Race Track
0 stars 0 forks source link

Lap Debounce #6

Closed pmgducati closed 7 months ago

pmgducati commented 8 months ago

When a car crosses the start line the force/trigger of the lap pin will cause the adjacent lanes to trigger.

pmgducati commented 8 months ago

This seems to only be an issue in lanes 3 and 4

pmgducati commented 7 months ago

The power to the track was interfering with the Lap monitoring wiring when a car was between 30%-50% throttle the lanes would be ~5V. This would trigger false lap triggers. As I am limited to the space allotted in the original track, I opted to change the code to look for GND vs 5V on Trigger and removed the resistors and added 0.1uF Capacitors in their place. The issue has been resolved and the lap times are being consistently recorded.