somakeit / smib

1 stars 0 forks source link

Add option to drive GPIO from space state #237

Closed sjefferson99 closed 1 month ago

sjefferson99 commented 1 month ago

Ability to configure a GPIO pin as high or low when space state is open and vice versa when closed. Use case driving hardware based on space state, in our example an air filter with a MOSFET switching a 12v supply.

sam57719 commented 1 month ago

Would this be a new smibhid device that's connected to the air filter. Eventually this can be triggered by mqtt.

On Tue, 1 Oct 2024, 23:46 Stephen Jefferson, @.***> wrote:

Ability to configure a GPIO pin as high or low when space state is open and vice versa when closed. Use case driving hardware based on space state, in our example an air filter with a MOSFET switching a 12v supply.

— Reply to this email directly, view it on GitHub https://github.com/somakeit/smib/issues/237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZWKRT53NYS3ILZJ2VNERDZZMQ57AVCNFSM6AAAAABPGRAZN6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DAMZUGA4TGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sjefferson99 commented 1 month ago

I am triggering the GPIO from the space open state, so mqtt would drive it once we move to mqtt for space state. It will be a few extra lines to fire the GPIO change on space state, but has scope to drive the pin entirely from new commands etc. Also not running it off the space state LED means it doesn't pulse the load when there is an error.

I have already built the new device on veroboard, planning to install tomorrow.

sam57719 commented 1 month ago

Sounds like a cool idea!

Interested to see tomororw

Need to work out how to connect the networked LED sign as well

On Tue, 1 Oct 2024, 23:51 Stephen Jefferson, @.***> wrote:

I am triggering the GPIO from the space open state, so mqtt would drive it once we move to mqtt for space state. It will be a few extra lines to fire the GPIO change on space state, but has scope to drive the pin entirely from new commands etc. Also not running it off the space state LED means it doesn't pulse the load when there is an error.

I have already built the new device on veroboard, planning to install tomorrow.

— Reply to this email directly, view it on GitHub https://github.com/somakeit/smib/issues/237#issuecomment-2387221243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZWKRVFUPLIN2X7AVOSQTLZZMRQJAVCNFSM6AAAAABPGRAZN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGIZDCMRUGM . You are receiving this because you commented.Message ID: @.***>

sjefferson99 commented 1 month ago

Added a commit to the associated branch that should work, but late now and will test in the space tomorrow. Sent you a pic of the board on slack and will probably update the docs with example board and circuit diagram as well.