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

What kind of hardware used #17

Open
Fraser86 opened this issue May 3, 2023 · 1 comment
Open

What kind of hardware used #17

Fraser86 opened this issue May 3, 2023 · 1 comment

Comments

@Fraser86
Copy link

Fraser86 commented May 3, 2023

Can you help me understand what type of hardware can be used for digital inputs. I have the relay outputs working and temperature but i dont understand how exactly the digital inputs come in.
Please shed some light

@kwindrem
Copy link
Owner

kwindrem commented May 3, 2023

RpiGpioSetup defines 5 digital inputs on GPIO pins. Refer to gpio_list in the package for those definitions.

Those inputs are active low. So connecting the pin to ground will activate that function. Most functions allow the input polarity to be inverted.

Isolating the input from the outside world is highly recommended to prevent damage to the CPU chip. Isolation can be in the form of a relay or an otto-isolator. In both cases, the input will need a power source to close the relay or stimulate the otto-isolator when the source of the input activates.

You can probably skip isolation if the source is close and can provide a reliable logic low to the GPIO pin. Clamping diodes between the pin and ground and the 3.3 volt supply is advised.

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