Hello ,
I am using Raspberry pi3 in my project, I connected a Buzzer on gpio4. when i tried to acivate the buzzer, this pin will go to output mode and set as high, buzzer work for few seconds and then it stops. When I check gpio readall , it showing the pin is in input mode and value is 0.
I tried the above steps in my another pi, it also showing same.
Kindly help me to fix this problem.