I have a circuit that has a PIC controller and a IR reflective sensor as input to it. this input will drive a motor using motor driver. My doubt is how to connect a LED in the same circuit to debug if the sensor is working (LED should glow if the sensor detects any reflective object). i did use a pull down resistor in the input port of the controller. I connected a low power LED from sensor output to GND (now sensor output is connected to CONTROLLER's one of the input port and LED). this works but is there any other way to connect this debugging LED without using the Output pins of the controller(as all other pins are already used for some other purposes).
-
Categories
-
Platforms
-
Content