The situation:
I have a sensor, battery operated, that is placed 10-75 meters away, connected with a 5-wire cable, un-shielded. It periodically emits a pulse down one of the wires, voltage is on the order of 3-5 volts. A second wire carries a signal that indicates the battery state in the sensor: low/high. The other three wires are all ground. The sensor and the wires are all used outdoors.
On this end, I have a small microcontroller, probably a Raspberry Pico. I want to connect it to this end of the 5-wire so I can sense the intermittent pulses and the high/low state of the sensor battery.
Additionally, on this end also connected to the microcontroller is a 3-wire cable, short, only 2-3 meters and having a simple NO switch and an LED. The microcontroller also needs to see when the switch is pressed and when released, and to send current to the LED.
How should I hook the sensor and the switch to the microcontroller? I am worried about that much wire laying out on the ground and picking up stray signals, perhaps EM from lightning in the area, etc. I also think that I need to condition the incoming signal so that what the microcontroller 'sees' is a clean signal of predictable character.
I am not electronics-smart, need pointers to sources for learning, any help that can be offered.
Thanks.
Bill Lee
"Almost" Good Answers: