I have been trying to make a lap timer for multiple RC cars, I have got it working using an IR LED on the car and an IR receiver at the start-finish line working at 38kHZ sending NEC code.
The problem I'm facing is that when I drive the RC car at high speeds past the receiver it's not getting the code fast enough, I'm using the IRremote.h library anyone knows any way I could make it faster maybe by making the code smaller?
That seems to indicate the field of view of the receiver is too small. Try moving the receiver further away, so it can see the code sooner and have more time to receiver the entire code.
If you think that will effect the accuracy of the lap time, then you need a better way to identify the car.
Paul
20210422_180527|690x388
These are the two pictures of receiving end and the sending end also below is the link for the receiving code and sending code also link to the receiver I am using.
The picture shows to receivers because I was messing around with putting them in parallel but I wasn't too sure if it would really work couldn't find anything online really. I'm using a 100-ohm resistor on the send LED and I do want to use a RAW code but I'm not too sure how to send a custom RAW code. I am quite new to Arduino and coding in general so might look a bit messy.