mirror of
https://github.com/pikvm/pikvm.git
synced 2026-03-02 18:16:56 -05:00
ATX Control is not working if made using relay #694
Labels
No labels
component:documentation
help wanted
resolution:delayed
resolution:duplicate
resolution:fixed
resolution:invalid
resolution:rejected
resolution:wontfix
success story
type:bug
type:bug
type:feature
type:question
type:question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pikvm-pikvm#694
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @justicecurcian on GitHub (Jul 19, 2023).
Originally assigned to: @mdevaev on GitHub.
Describe the bug
I am using v2 made with RPI 4. I DIYed an ATX Control using cheap relay that is being contolled by 3.3V ( https://aliexpress.ru/item/1005001994042589.html?spm=a2g2w.orderdetail.0.0.14cc4aa6jq5hm2&sku_id=12000018351924068 ), but it's not working. I manually triggered relay using 3.3V from RPI and it closed, but when I click power/reset in the web control panel the relay won't close. I am using correct pins (23 for power and 27 for reset), I tried creating my own button using gpio plugin, but had no luck setting it up correctly. I am using only two relays for buttons and nothing for power light, so this might be an issue, but I found nothing about mandatory connection of power led in the docs.
To Reproduce
Click power/reset in ATX menu
Expected behavior
Relay closed and PC power/reset button "clicked"
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
PiKVM info:
@mdevaev commented on GitHub (Jul 20, 2023):
What do you mean, did you perform the direct connection of relay coil to gpio? Without any transistors?
@justicecurcian commented on GitHub (Jul 20, 2023):
If something particular from my message is hard to understand, please quote it and I will try to rephrase it.
Yes, direct connection without any transistors, since RPI 4 gpio is 3.3V it should be able to control relay directly. 3.3V power pin from RPI in fact can close relay easily. If I connect LED to pins 23 and GROUND, then click "Click Power" it won't highlight too, so I think it's either a software problem or I am wiring it wrong. When I click on "Click Power" in ATX control is it supposed to emit 3.3V or ground pin 23?
@mdevaev commented on GitHub (Jul 20, 2023):
Don't ever do that! You can burn your Raspberry. The coil consumes a lot of power for operation, and when de-energized generates a reverse polarity current. I recommend you to buy a relay module that has a separate power input and a control wire. But it is better if you follow our scheme.
@justicecurcian commented on GitHub (Jul 20, 2023):
Oh, that's not good. I will use a separate module later, thank you. Maybe it's good it didn't work, since I could kill my kvm.
But the problem is still presented, LED is not highlighting, 23 pin is not getting power. I didn't follow docs scheme because listed parts are unavailable here.
@justicecurcian commented on GitHub (Jul 20, 2023):
On second thought, maybe relay did kill the pin, so this is why led is not highlighing...
@mdevaev commented on GitHub (Jul 20, 2023):
Yes, maybe that's the reason.
@mdevaev commented on GitHub (Jul 20, 2023):
You can use other pins, but before that, find a good relay module (with non-inverted logic).
@justicecurcian commented on GitHub (Jul 20, 2023):
How do I change pins? I thought they are hardcoded.
@justicecurcian commented on GitHub (Jul 20, 2023):
I flashed raspbian and pulled up pin 23 using raspi-gpio and it flashed LED, I've got back to pikvm and ATX control works now (without relay, dummy led). Really weird, sorry for useless issue and big thanks for telling me about relays, you saved my PI!
@mdevaev commented on GitHub (Jul 21, 2023):
No problem :)