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.

  • 1
    Why not just use another pin? – Milliways May 10 '17 at 23:31
  • I'm not aware that you can do that. I thought the GPIO18 was special sending PWM (pulse wave modulation). – Nelson May 11 '17 at 0:31
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.