Could use some help debugging my attempt at making a raspberry pi garage door opener

The Raspberry Pi is a series of credit card-sized single-board computers developed in the United Kingdom by the Raspberry Pi Foundation to promote the teaching of basic computer science in schools and developing countries.

Post Reply
User avatar
/RaspberryPi
Corporate
Posts: 2449
Joined: Wed Jun 05, 2019 1:29 am

Could use some help debugging my attempt at making a raspberry pi garage door opener

Post by /RaspberryPi »

Image Hello everyone,
I am attempting to make a "Smart Garage" door opener. I am a software engineer, focused on web dev, and have a lot of experience programming. I am out of my league when it comes to hardware.
I have a raspberry pi conencted to a relay through GPIO wired up like this to a relay switch:
https://howchoo.com/media/od/cw/mj/rasp ... quality=70
I am using ASP.NET Core 6 or just .Net i think it's called these days> I have two inputs hooked up to magnetic reed switches to tell me the state of the garage door. Those two work just fine

I have one output switch connected to a relay connected to my garage door. When I try to write to it to change the signal to open or close the garage door, I get an exception:

https://preview.redd.it/wuanrv2bev491.p ... p&99899090
It says "Can not write to pin 17 because it is not open"
I am certain it is open, and when I use my API to query pin 17, I get:

https://preview.redd.it/vzttgwveev491.p ... p&064d6ec6
If I use rasp gpio, i get ]

https://preview.redd.it/u5wa5zmiev491.p ... p&f6c498e0
I have no idea wat level or fsel indicate.

Can anyone use this information to help me trouble shoot, or potentially to discover more info to provide that might bring me closer to my problem?

Thanks!

submitted by /u/professional43
[link] [comments]

More...
Post Reply

Return to “Raspberry Pi Forum”