Mark_R
Member
Hold on, backup.....
????
This is not a photo diode folks.
Its a green LED. Sunlight has nothing to do with it.
The circuit showing the photo diode is the INTERNAL circuit of the MID400 optoisolator from the data sheet, not my circuit.
Look at the circuit in the original post. U6 is the MID400 optoisolator. Pins 1&3 are the input (AC). When AC is present, it drives output pin 7 low, sending a signal to GPIO #RA0 of the PIC (not shown). It also lights the plain green LED.
The question was: do I also need the 10K pullup resistor, or would the LED and series resistor do the job of pulling up RA0 to a level that the PIC would recognize as high when the AC was not present.
????
This is not a photo diode folks.
Its a green LED. Sunlight has nothing to do with it.
The circuit showing the photo diode is the INTERNAL circuit of the MID400 optoisolator from the data sheet, not my circuit.
Look at the circuit in the original post. U6 is the MID400 optoisolator. Pins 1&3 are the input (AC). When AC is present, it drives output pin 7 low, sending a signal to GPIO #RA0 of the PIC (not shown). It also lights the plain green LED.
The question was: do I also need the 10K pullup resistor, or would the LED and series resistor do the job of pulling up RA0 to a level that the PIC would recognize as high when the AC was not present.