I bought a pair of KY008 laser module and a matching sensor, and I knew I had to make some cool project with it. So took the pair, and created an electric time keeping gate for the slot car track that was already on the table for my self-driving slot car project.The Hardware
The 3 main components are the laser module, laser receiver sensor and the GLCD screen.
I really love using GLCD, you can find info on the pin-out here: https://playground.arduino.cc/Code/GLCDks0108/
And you can download the library from here:
I created a nice and easy connector for it, as showed in the image below.
The KY008 laser module has 3 pins, -, + and S, I just shorten both the S and the + to the 5V. If you do not want the laser to be on all the time, connect the S pin to a digital pin on the Arduino. when ever you set it high the laser will turn on.
The sensor has 3 pins as well, GND, VCC and SIGNALE. connect to power and the input pin on the Arduino.
The hardest challenge in this build was to get it all aligned.
You can watch the final result in this clip.