The problem is that the LED blinks very fast, does the light sensor has a good timing?
I tried to read voltage output from the buzzer and the little led but it's too low, something like 0,3V at maximum.
Then, I realized a diodes rectifier and I connected it to the shock pins (AC side) and I added the LED to the DC side: the LED blinking change as I move closer to the fence.
I tried to measure the DC voltage with a multimeter and it seems to be something like 1,8V with 2,2V peaks even if the receiver battery is almost discarged.
When the receiver approaches to the wire, the number of blinking between each pause increases.
For example, at 1 meter from the wire, I have three blinkings and then a pause; at 30 centimeters, I have nine blinkings with the same pause.
It would be important for me to detect the different time between the blinkings in order to know how close to the wire my robot is.
Can you help me to know how to read this DC voltage with Arduino, please?
Do I have to connect Arduino GND to DC GND side and the analog input to the positive DC side?
(I tried in this way, but analog input changes randomly)