MrDEB
Well-Known Member
need to use a photo cell to input either a logic LOW or logic HIGH but obtaining a signal level to input to pic.
Am updating my Mexican Train hub using a pic instead of the 74hc4017 circuit I ended up using.
The 74hc4017 circuit works great BUT I need to use a lower switch profile. Existing push-buttons are 3/4" long thus the board holding the Leds and switches are to high. Want to stay no higher than 3/8 inchs or less. Thus using photo calls as a switch to trigger the Leds on via the pic.
Leds OFF, cover photo cell briefly= leds on. cover photo cell again and Led turns off.
Issue is obtaining a logic level below 1.5 volts for LOW and higher than say 3v for high. want to have some lee way if possible.
Am updating my Mexican Train hub using a pic instead of the 74hc4017 circuit I ended up using.
The 74hc4017 circuit works great BUT I need to use a lower switch profile. Existing push-buttons are 3/4" long thus the board holding the Leds and switches are to high. Want to stay no higher than 3/8 inchs or less. Thus using photo calls as a switch to trigger the Leds on via the pic.
Leds OFF, cover photo cell briefly= leds on. cover photo cell again and Led turns off.
Issue is obtaining a logic level below 1.5 volts for LOW and higher than say 3v for high. want to have some lee way if possible.