esphome / esphome/feature-requests

[Components][SN74HCxx5 I/O Expander] Add possibility to work on same GPIO pins

Open
#2,130 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem you have/What new integration you would like**

The development boards [Dingtian Relay Development Board](https://github.com/dtlzp/relay_dev_demo) with number of relays/inputs, more than 4 are using SN74HC165 & SN74HC595 I/O Expanders, sharing same GPIO except "data" pin
Please check this 8x I/O board GPIO mapping:
![8ch](https://user-images.githubusercontent.com/44872879/215488445-a1c88d60-51b1-4a77-9183-9863706009ef.png)
The current SN74HCxx5 driver implementation doesn't allow to define them simultaneously, only OR-OR. Being defined together, none is working.

Can you please modify it to allow this scenario?

**Please describe your use case for this integration and alternatives you've tried:**

**Additional context**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the SN74HCxx5 driver implementation and the GPIO mapping shown for the linked 8-channel board. Confirm how SN74HC165 and SN74HC595 instances currently reject shared GPIO definitions, then define the expected simultaneous configuration and verify that both expanders operate while sharing GPIO pins other than data.

Written by the indexing model from the issue text.

Assessment

Domain
embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.