Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to adjust for relays closing low #20

Closed
tobelix87 opened this issue Jan 7, 2024 · 3 comments
Closed

How to adjust for relays closing low #20

tobelix87 opened this issue Jan 7, 2024 · 3 comments

Comments

@tobelix87
Copy link

Hi,
I read the note that this extension is currently not working for relays which close low (connecting control cable to GND). However, I do have such relays and would like to use them. I will switch just fans with it and I am not rebooting my rpi too often. So it will not be a big issue if the fans turn on for a few seconds during boot process.

I assume that I need to adjust the Overlay to activate a pull up resistor for the GPIOs. But I am not very familiar with the GPIO setting, therefore it would be great if anyone could give me a hint.

Thanks, Tobelix

@tobelix87
Copy link
Author

I solved it in the following way:

  1. created a new dtoverlay which configured the 6 output GPIOs for the relays with pull-ups. You can check the changes here: changed out GPIOs for relays to pull-up #23
  2. The switch will have inverted status. You can solve it as explained in this issue

@kwindrem
Copy link
Owner

The issue is there is a period of time during boot before the DT overlay loads where relays that activate with a pull down will close. For this reason, I can not support this as a general fix. In your application, you don't care if the fan runs momentarily but if for example the relay is used to start a generator or other significant action then such a change will not be appropriate.

@tobelix87
Copy link
Author

that is understandable and totally makes sense. Nevertheless, just wanted to document it for other people who might have similar non-critical devices behind their relays

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants