Volume control while in a game?
-
Hello i wonder if it is possible to use a Gpio pin for Volume up and down? Instead of exiting a game and going to the sub menu then raising the volume. That i can use 2 of the Gpio pins for that?
-
Hello i still need some help can someone please help me with this problem???
-
It would help if you could give us an idea on what project you are working on, as some one might be able to give you a simpler solution to what you are asking. Based on what I've seen of your other posts, if you are working with a Pi zero and you are working USB audio or PWM audio you can put a volume pot into filter system .
-
Hello and you are correct that is my fault not explaining what i would like to do. I'm also working on a game system. Pwm audio using the Pi zero board. Problem is the audio amp does not have a volume control. There are 2 speakers left and right channel each one has it's own amp. But these amp's does not have a volume control. I did notice that i can go into the settings and raise and lower the volume that way. But sense I'm playing the game i don't want to exit the same just to Lower the volume down. So I'm asking If it is possible to do the volume controls using the GPIO Pins using push buttons? One for Volume up one for Volume Down and one For mute.
-
Ok not sure why you are using 2 individual amps for the speakers when you can use 1 for both, unless you only want mono sound?
Check out Sudomod.com the guys there are pretty focused on Gameboy Zero projects but alot of the stuff is transferable.
What are you building your handheld into?
-
The amps are mono. Single input, Single output. Was trying to do Stereo for left and right. Yes into a handeld the wii u case.
-
They should only be mono if you mad them that way. Even though the Gameboy zero build outputs mono on the speaker (literally cause the left and right channels are wired to the same line. The headphone jack has stereo sound.
This should help you build a new amp that does left and right channel for stereo.
The ones you've build will put put mono even with 2 speakers.
-
You are correct i have a left and right channel speakers but each channel has it's own amp. It is in Stereo. Not mono. But the audio is not the problem. The problem is controlling the volume while in the game sense there is no volume controls on the amp.
-
What I'm saying is you don't need individual amps for Left and Right. If you follow this guide it will give you a single filter/amp for both channels and enable you to put a volume control pot on this that will allow to control the volume in analog as apposed to digital. Meaning you have volume control whenever.
-
Oh I'm totally sorry i didn't understand. Now i get what you meant thank you. I do have one pot a left and right i got from radioshack a while back i never used Click here
-
It's fine dude no problem. Those pots are fine I've used them in my GBZ build
-
@josephchrzempiec At least and as I always say ... use I2S rather then PWM. The PWM sound lacks of clearness and it always brittles with hisses and pops. And you don't need two speakers because the Adafruit I2S mixes stereo channels down to own speaker output. So you have left and right audio channel together in one speaker.
I made good experince with my little foldable Popeye Pie.
-
@cyperghost I was under the impression that Pi zero doesn't have I2S that you can access without using the USB.
I've gone for PWN audio as I'm using the USB to wire the controls in.
-
@monstermadeofman You can use I2S even on a Pi Zero :) You just have to use the Hifiberry overlay and you are ready to go. The sound is more powerfull and 100% clear. You just hear one pop if the AMP is gonna activated and deactivated. In idle (in the ES game selection menu) is 100% NO noise! Follow the link to my build I made for month. In the last posting is a picture of the wired I2S DAC.
-
Ahh i see. I'm doing a GBZ build and there is no room in there for that haha.
I'm PWM audio and to take out the hissing the board I'm waiting on has the filtering plus some nice little ferrite beads to take away a lot of noise
-
@monstermadeofman Sorry I didn't get you. The I2S device from adafruit got the same size as the common PWM amps :)
-
-
@monstermadeofman Haha ... Okay :) Size matters. Were did you get this? Looks awesome!
-
@cyperghost Audi mod forum. I haven't got mine yet but a guy called helder over there designs them and sells them.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.