Hey, i need some help with the connection here. I wish to measure the speed of rotation of wheel using LM393 Comparator Speed Sensor Module. But I m not sure about the connection of the speed sensor to the Arduino Uno and the coding that should be used. Can anyone shows the connection? Your help is much appreciated
Can you post a link to the sensor module and/or its data sheet?
This Chinese web-shop seems to have the same one and shows the underside with pin out descriptions in the pictures. A digital and analog output on one side. What this means for a circuit is anybodies guess though:
http://www.dx.com/nl/p/lm393-comparator … mIgfLjqhBd
I’d say write a program that continously reads the analog and digital pin and prints it to serial to the pc. Then analyse the readings to see which one is pure digital ON/OFF HIGH/LOW. It’s probably just detecting the blockage of light in the black gate. It’s not reading speed directly. Only gives pulses at RPM rates if something interrupts the light with every revolution.