0
\$\begingroup\$

http://gameautomators.com/book/Electronics/4-simulation.html

Hi here is a reference to make a touch simulation with rpi and 1ch relay I can't understand how to connect gpios with relay.

There are DC+ / DC- / Ch1 / NC / NO connectors in my relay.(OMRON G3MB-202P)

PLZ SEE attached image.

Green GPIO(pin4) : DC+

Blue GND : NC

Red GND : DC-

Green Output : Ch1

is that right?

enter image description here

\$\endgroup\$
0
\$\begingroup\$

The relay you are using is in fact a phototriac. This will not work for a DC application like yours.

What you need is an electromechanical relay, or, better, a transistor or phototransistor (as suggested in the link you provided).

EDIT

Please give this a try:

enter image description here

\$\endgroup\$
  • \$\begingroup\$ Can you draw a connection diagram of transistor? \$\endgroup\$ – Jade Lee Dec 12 '18 at 1:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.