Slight power issue: unplugging headphones resets Pi!
Slight power issue: unplugging headphones resets Pi!
So I've run into an interesting power issue...I've got the Adafruit speaker amp and it's ground wire runs through the headphone contact switch: plugging in headphones removes power from the amp completely so that it's not drawing power at all.
The problem is that when I remove the headphones, and the amp suddenly receives power, that surge that happens seems a little high for the PowerBoost: the Pi resets! I've seen something similar when you plug in a Wifi dongle...I guess the power draw is enough that whatever is supplying power can't quite handle that surge fast enough.
Anyone have any advice for stopping this from happening? Or should I just run the audio channel through the headphone contact switch instead: basically the amp will receive constant power even when not amplifying anything, but will only get an audio signal when headphones aren't plugged in.
Adafruit lists that the current draw when not even driving a speaker as "4mA quiescent and 1uA in shutdown mode" according to Adafruit docs. 4mA is a lot more than 0.
The problem is that when I remove the headphones, and the amp suddenly receives power, that surge that happens seems a little high for the PowerBoost: the Pi resets! I've seen something similar when you plug in a Wifi dongle...I guess the power draw is enough that whatever is supplying power can't quite handle that surge fast enough.
Anyone have any advice for stopping this from happening? Or should I just run the audio channel through the headphone contact switch instead: basically the amp will receive constant power even when not amplifying anything, but will only get an audio signal when headphones aren't plugged in.
Adafruit lists that the current draw when not even driving a speaker as "4mA quiescent and 1uA in shutdown mode" according to Adafruit docs. 4mA is a lot more than 0.
Re: Slight power issue: unplugging headphones resets Pi!
I would imagine a capacitor or two along the lines that power the Pi would be able to provide a little extra juice to cover that power dip while the amp starts up...but unfortunately my raw electronics knowledge isn't quite to the point where I'd be willing to start dropping capacitors in there and potentially fry my Pi. If I had a couple backups maybe, but right now this is my only one!Zeke2040 wrote:Having the same issue but had not researched why. Thank you and interested in alternate solutions as well!
[mention]Helder[/mention] or [mention]Popcorn[/mention] maybe can help?
- Helder
- Trailblazer
- Posts: 2985
- Joined: Thu May 05, 2016 8:33 am
- Location: Rogers, AR
- Has thanked: 1459 times
- Been thanked: 3114 times
Re: Slight power issue: unplugging headphones resets Pi!
Maybe a 10uf cap from power to ground to stabilize the power spike, if the 10uf holds out then maybe lowering the value of the capacitor a bit till you find that sweet spot.
Chat with me and other members On Discord
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
Re: Slight power issue: unplugging headphones resets Pi!
So no need for a diode in there, just a cap between PP1 and PP6 on the back of the Pi?Helder wrote:Maybe a 10uf cap from power to ground to stabilize the power spike, if the 10uf holds out then maybe lowering the value of the capacitor a bit till you find that sweet spot.
- Helder
- Trailblazer
- Posts: 2985
- Joined: Thu May 05, 2016 8:33 am
- Location: Rogers, AR
- Has thanked: 1459 times
- Been thanked: 3114 times
Re: Slight power issue: unplugging headphones resets Pi!
A diode protects against voltage flowing back one way and it also lowers the the actual voltage flowing through it so not sure that's what you want.
I was referring to power on the amp but if that's where the amp connects to then yes.
I was referring to power on the amp but if that's where the amp connects to then yes.
Chat with me and other members On Discord
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
Re: Slight power issue: unplugging headphones resets Pi!
Oh so you'd actually have it on the amp? I was expecting it to go on the Pi since that's what resets when the voltage drops. Figured the cap would take over and make sure the Pi stays stable until the voltage comes back up post-amp-startup...Helder wrote:A diode protects against voltage flowing back one way and it also lowers the the actual voltage flowing through it so not sure that's what you want.
I was referring to power on the amp but if that's where the amp connects to then yes.
- Helder
- Trailblazer
- Posts: 2985
- Joined: Thu May 05, 2016 8:33 am
- Location: Rogers, AR
- Has thanked: 1459 times
- Been thanked: 3114 times
Re: Slight power issue: unplugging headphones resets Pi!
Yes I guess the pi is where to put it, I just read it above as the amp was kicking the voltage up my mistake but try both ways for the hell of it.
Chat with me and other members On Discord
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
Don't contact me about obtaining my board files (as you will not get them). If my Boards or PCB Kits are sold out, they will be restocked as soon as I can get them and there is demand for them. You can join the mailing list on my Website to be notified when they are available.
Helder's Game Tech Website
We will not support any cloned work so don't come to us with technical issues to resolve, go talk to the cloner for help.
Who is online
Users browsing this forum: No registered users and 1 guest