Gilles Gagnon replied to the topic 'INDI & Arduino' in the forum. 2 years ago

Hi Tom,

Moving forward with the Arduino code. I can set the relays to their correct states for opening and closing the roof, as well as the limit switched status. The remaining issue is to reset the relays to their inactivated states, i.e. NC. I am not sure where in the code I should put the "put relays to sleep" function. I tried where the limit switches are checked but no luck. I need to put that code in a place that gets executed 'often' and need to add a small delay, as the limit switched change state before the roof is fully opened or closed.

I have attached my adapted version of the rolloff.ini.standard code if it may help.

Thanks again,

Gilles

Read More...