Rotary encoder mounting on gpio connectors

I’m a fool, I connected the pins wrong. It works on 5 and 6. Sorry. What pin do you have your SW connected to?

Hi @Wheaten! Mind me to ask how do i set the rpi gpio for the each volts pin like 5v,5v,3v and 3v pin to 0v or low?.
I want to attach dac hat to rpi and separate the psu using dac hat, gpio pin.

Not sure if I get the question.
You want to feed the DAC by GPIO pins, while connected to the rPi GPIO header and power the rPi by it’s default power connector?
If that’s the ask, then don’t you’ll fry either the DAC HAT, rpi or both.
There are some DAC hats that give you this option like the Innomaker DAC Pro. There you can remove a jumper to avoid the DAC is feeding 5V to the rPi.

Hi wheaten! I have 2 kinds dac hat here like this.


I don’t see any power barrel on those DAC’s. SO this means that they are both powered by the rPi’s GPIO header. So the answer is no.