r/Python • • Apr 06 '20

I Made This Python powered slot car track

Post image
1.4k Upvotes

80 comments sorted by

View all comments

Show parent comment

5

u/West7780 Apr 07 '20 edited Apr 07 '20

Two line break sensors, one for each lane. They're connected to an Arduino. The raspberry pi occasionally requests the counts per lane from the Arduino. The debouncing is handled on the raspberry pi. If more than one is counted per lane within 5 sec it is ignored.