Gold King
Posts: 15
Joined: Tue Nov 26, 2019 5:09 am

GPIO dry contact output Python progamming help?

Tue Nov 26, 2019 5:21 am

Hi, I have a motor that can be driven when its two terminal is connected.
The dry contact here means the motor does not start when it's NO (Normal Open) between the two terminals,
but starts when it's closed/connected.

So how can I programm the GPIO output to work on dry contact via Python?


Thanks in advance.

deepo
Posts: 574
Joined: Sun Dec 30, 2018 8:36 pm
Location: Denmark

Re: GPIO dry contact output Python progamming help?

Tue Nov 26, 2019 7:31 am

The RPi GPIO outputs are designed to either turn on or off, i.e. with a volt-meter you read +3.3V or 0V on an output. They are not dry contacts.
So my guess is that you'll need to drive a relay with GPIO and then connect the motor control wires to that relay.

There are two guides here, I don't know if you know them:
https://www.raspberrypi.org/documentati ... /README.md
https://projects.raspberrypi.org/en/pro ... -computing

/Mogens

LTolledo
Posts: 3321
Joined: Sat Mar 17, 2018 7:29 am
Location: Anime Heartland

Re: GPIO dry contact output Python progamming help?

Tue Nov 26, 2019 11:59 am

definitely you'll need a relay for this....
there are lots of samples in the forum on how to properly wire up a relay and use a program to control it (some even have sample codes)

you may ignore this if you want and do "what you believe is right"....
just accept the consequences of your action
"Don't come to me with 'issues' for I don't know how to deal with those
Come to me with 'problems' and I'll help you find solutions"

Some people be like:
"Help me! Am drowning! But dont you dare touch me nor come near me!"

User avatar
rpdom
Posts: 17029
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: GPIO dry contact output Python progamming help?

Tue Nov 26, 2019 12:05 pm

One important thing to consider is what rating the "dry contacts" (in this case a relay board) need to be.

Check the current rating and voltage to make sure it is safe to switch that load.
Unreadable squiggle

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: GPIO dry contact output Python progamming help?

Tue Nov 26, 2019 8:57 pm

More information is needed on this project
1 Size of motor Voltage Amps( hp) DC or AC
2 Voltage and current rating of the relay
3 Your program must be fail to safe

Regards BoyOh
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

Return to “Beginners”