Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Automation, sensing and robotics • Re: Need a simple php page to momentary turn on gpio outputs

$
0
0
Thanks for the scripts...unfortunately I am not getting any of these relays to turn on....I think maybe I am assigning the wrong pins to the script? If you look at the HAT device I bought (https://www.amazon.com/dp/B08PSFK2L2?ps ... ct_details), its references IO5, IO6, IO13, IO16, IO19, IO20, IO21, IO26 which based on the diagram in the listing I have mapped to pins 29, 31, 33, 36, 35, 38, 40, 37. When I try to turn on pins 29. 31, and 33 nothing happens, when i try 36 the script actually locks up and I have to reboot the pi. I think I am definitely doing something wrong or misreading something. I am just running the script from command line with "sudo python on.py" to test. It returns "ON" for the first 3 pins, but they don't turn on and then locks up when I get to pin 36. What am I doing wrong?

Statistics: Posted by electricd7 — Sun Jan 21, 2024 12:57 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles