Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Initialize relays at RasPi startup
Hello.? My goal is to initialize relays at the startup of the RasPi.? Automatically,, when RasPi starts up would be great.? But I can work with a solution which would be a dashboard button, called for example "initialize relays".? The flow would inject true or false uniquely for each relay.? I have began with Alan's 8 relay flow.? And have a dashboard to uniquely control each relay.?
On the surface I think this would be quite simple to do.? I have done it on Node-Red using inject nodes.? One to inject "false" into all the relays which should be false at start up and another inject node to set "true" for the other relays. I inject the true anf false into the 'rpi - gpio out' nodes.? I just can't get my brain around converting this to a dashboard button that will initialize all the relays with one button push on the dashboard.? Any suggestions on the node(s) I should look at to create this? -- Domenick - WA2GOT? ? 73s |
¿ªÔÆÌåÓýFor automatic just use an object node to send Boolean false. Connect it to all the Pi relay GPIO outs. Set the inject to send once after 5 second then interval to never. When you start the Node Red server it will initialize the relays after 5 seconds.?Dave wo2x Sent from my waxed string and tin cans.? On Aug 6, 2021, at 3:23 PM, Domenick Fusca <domenickfusca@...> wrote:
|
Domenick
For my GPIO based relay flow, to "initialize" a relay on Node-Red restart, just change one of the "Test" inject nodes to inject one second after start. ?This will position the relay and store he result in context memory. ?I show below an example of using the "false" or open the relay, as an example. Of note, one of the issues with Raspberry Pi GPIO pins, is the first initial "state" on boot up is undetermined, that is the purpose of waiting one second to initialize the relay. ?Keep in mind, as a result, the relay position could be anything for the first second before the "initialize" inject node fires off. Alan. WA9WUD |
¿ªÔÆÌåÓýIf you set initialize pin state under gpio it will have the correct state on node red startup regardless of flow.?--? Tormod Brunsby 9. aug. 2021 kl.?21:36 skrev Domenick Fusca <domenickfusca@...>:
|
to navigate to use esc to dismiss