Jump to content
JasonWu

GPIO connect Relay not working

Recommended Posts

Dears:

 

When I try to connect the Relay through the GPIO pin, pulling the pin high or low has no effect. The same connection method is completely normal on the Raspberry Pi 4.

pin use 39 & 40 

image.png

Share this post


Link to post
Share on other sites

Hi @JasonWu:

     Nice to meet you. Could you help to provide the test steps and the information of relay device to us!

I think the 39 (GND) should has effect for relay. Maybe you could also try 1 pin (3.3v) for your relay.

Thank a lot!

Share this post


Link to post
Share on other sites

Dear Sir:

Python Code On Asus Tinker Board 2....

image.png

Asus Tinker Board 2   device connect :

 

image.jpegimage.jpegnull

Share this post


Link to post
Share on other sites

Dear Sir:

on the Raspberry Pi 4

Python Code:

image.png

Device Connect:

image.jpeg

GPIO  ReadAll Status:

1、Not Running Code:

image.png

2、Running Code:

image.png

Share this post


Link to post
Share on other sites

Dear Sir:

Asus Tinker Board 2 

GPIO ReadAll Status:

1. not running code:

image.png

2. running python code:

image.png

Share this post


Link to post
Share on other sites

Hi @JasonWu:

     Excuse me! Didn't you connect any device to 40 pin and then the pin status can change normally by gpio readall?

I  look your code to pull low the 40 pin from your picture.

The GPIO.output(SEEP, GPIO.LOW) should let the 40 pin to low. Did RPI4 GPIO.output(SEEP, GPIO.LOW)  let the value to high?

Thank a lot!

Share this post


Link to post
Share on other sites

Dear Sir:

Python Code  default set pin 40 is output .

first output pin 40 is High , then sleep 8 second , change to low 

on PRI 4 

But can't running on Asus Tinker Board 2S 

 

Share this post


Link to post
Share on other sites

Hi Sir:

We just found out that if the relay switch is plugged in, it won't do anything
Removed the wiring for pin40. At this point test buzzer.py that its gpio readall is correct.

if relay switch connect 38 or 40 pins. always ..is 0 can't use.

image.png

Share this post


Link to post
Share on other sites

Dear Sir:

We know, we have two sets of devices on our hands.
One is Raspberry Pi and one is Tinker Board 2
Connect a set of Buzzer relay devices to each. Only Tinker Board 2 cannot be used.

I have tried other Tinker Board 2s on hand, but none of them can be used.

Share this post


Link to post
Share on other sites

Dear Sir:

1、Not running python code ....

nullimage.jpeg

2、Running Python Code....

image.jpeg

3.  We suspect that the GPIO voltage is insufficient. The GPIO voltage of the Raspberry Pi is the normal output 3.3

Share this post


Link to post
Share on other sites

Hi @JasonWu:

     Have nice day! Thank you for your test. I think it's a compatible question with some hardware devices.

Maybe you can change the relay for your project on Tinker Board 2 at first.

Thank a lot!

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...