JasonWu 0 Posted June 2, 2022 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 Share this post Link to post Share on other sites
yi-hsin_hung 3 Posted June 2, 2022 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
JasonWu 0 Posted June 6, 2022 Dear Sir: Python Code On Asus Tinker Board 2.... Asus Tinker Board 2 device connect : Share this post Link to post Share on other sites
JasonWu 0 Posted June 6, 2022 Dear Sir: on the Raspberry Pi 4 Python Code: Device Connect: GPIO ReadAll Status: 1、Not Running Code: 2、Running Code: Share this post Link to post Share on other sites
JasonWu 0 Posted June 6, 2022 Dear Sir: Asus Tinker Board 2 GPIO ReadAll Status: 1. not running code: 2. running python code: Share this post Link to post Share on other sites
yi-hsin_hung 3 Posted June 7, 2022 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
JasonWu 0 Posted June 9, 2022 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
yi-hsin_hung 3 Posted June 10, 2022 Hi @JasonWu: Please help to check the video(gpio40pin_python.MOV) test about 40 pin. The functions work normally on 2.0.4 version image. Did you check whether the /boot/config.txt had set something for gpio 40 pin? Thank a lot! gpio40pin_python.MOV Share this post Link to post Share on other sites
JasonWu 0 Posted June 13, 2022 Hi Sir: My /boot/config.txt Double Check my python code: Now test again: Share this post Link to post Share on other sites
yi-hsin_hung 3 Posted June 13, 2022 Hi @JasonWu: Could you help to remove the buzzer and then test again for gpio 40 pin? Thank a lot! Share this post Link to post Share on other sites
JasonWu 0 Posted June 13, 2022 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. Share this post Link to post Share on other sites
yi-hsin_hung 3 Posted June 13, 2022 Hi @JasonWu Excuse me! Did you know which pins can work normally with Buzzer relay device? Thank a lot! Share this post Link to post Share on other sites
JasonWu 0 Posted June 13, 2022 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
JasonWu 0 Posted June 13, 2022 Dear Sir: 1、Not running python code .... 2、Running Python Code.... 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
JasonWu 0 Posted June 14, 2022 Dears: We went to buy a different relay switch today for testing. Now it works fine. Share this post Link to post Share on other sites
yi-hsin_hung 3 Posted June 14, 2022 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