Help setup a garage door opener

Hey guys,

I am a little stuck I know there is a bunch of garage door openers online but they all use other boards that I don’t believe I require... what I wish to do I believe is quite simple I am currently running a Pi with homebridge and a garage door opener with pinout to switch a relay... I would like to move on from my Pi and have decided to install Linux onto a Intel NUC with an Arduino UNO connected via USB, simply put I would like to trigger the digital pins to switch the relay, I have a magnetic reed switch that shows if the door it open or closed if that circuit is cut it’s open if it’s closed it’s closed... I know how to wire it all but need help with the script to write onto the Arduino... I know how to write the script onto the board from IDE but unsure where to start.... can someone point me in the right direction.

Thanks in advance

Look at the basic examples or Digital examples in the IDE. If you are getting the trigger via the USB (Serial), then look at the serial examples. You can also look at the great tutorial here in the forum about how to do serial communication.

Write some code.

If it doesn't work, post the code (using code tags) along with any error messages or output you get and explain how that differs from what you want.

That sounds good I will take a look later today thanks for your response how would I link the UNO to homebridge? Currently the Pi runs a config.json file that triggers the pins on the Pi but now I will be running homebridge on the Linux box and need to tell the config.json to trigger the digital pins on the UNO do I still require a script on the UNO? I am unsure where do start with “joining” the two.

The easiest way to communicate would be to plug the UNO into a usb port so it looks like a serial peripheral for the NUC

I just made this but not sure what I did wrong its coming up with a incomingByte was not declared? how do I fix that? I am going to build a working USB to serial sketch then add the door sensor in once that works and maybe use a HTTP server to link it to home bridge thoughts?