0

I would like to connect a relay, a 4-digit display, and a light sensors to a single Pi Zero W. I quickly realized that the relay and 4-digit display would conflict with one another because they are both using the GPIO18 pin. I don't want the relay and display to have the GPIO18 signal all the time.

If I "split" the GPIO18 signal in two, what hardware could I use to allow the signal to pass through only if another connected pin is 'on' (please see image).Blue signal is GPIO18 in image

Thank you in advance - having a great time playing with this.

Steve Robillard
  • 34,988
  • 18
  • 106
  • 110
Nelson
  • 3
  • 3

1 Answers1

0

While the solution you describe might not be the best one for your problem, the easy answer is that you need an AND-gate

For example the 74AHCT1G08GW from NXP or the SN74AHC1G08 from TI should do.

Bex
  • 2,929
  • 3
  • 26
  • 34