Hi friends, do you have any suggestions for my project, I made a code to read the gnd signal whether it is on or off but I am not sure if this is accurate or not, this project is actually a manual motorcycle tester with an LED but I want to make it digital by taking power from the led gnd on or off because what functions to turn on the led is the gnd power.
I did not make a voltage meter, I will explain a little, I have a manual tester of the ckp sensor on the motorcycle, so the sensor issues a signal gnd off and on which turns on the LED but now I want to take the gnd to the LED to the Arduino to be digitized and displayed on the LCD, I hope you understand my explanation.
digitalRead() will return HIGH or LOW depending whether the difference between the Arduino GND and one of its pins is greater or less than a certain voltage
Is the signal that you are trying to read the output of the crankshaft position sensor?
If so , I think that it is confusing to call it GND.
I would call the motorcycle frame GND, but for any other signal use a different name.
In your code you are checking for this signal being HIGH or LOW. If it really is GND, then it can't go HIGH.