Page 1 of 1

Gearbest Screen PWM Brightness

Posted: Thu Sep 20, 2018 3:54 pm
by philip640
Hi all :D
I've just finished my first build, and was resigned to having an extremely bright gearbest screen, when I saw that you could modulate brightness with a PWM signal.

My problem is that both of my pi zero PWM outputs are taken up for stereo audio. I have seen that software PWM is possible on other pins, but am worried about the CPU usage of this.

What would be the best thing to do? Would the usage of software PWM not be an issue, or would changing to mono audio be the better option?

Thanks!

Re: Gearbest Screen PWM Brightness

Posted: Thu Sep 20, 2018 4:17 pm
by rodocop
Could try one of the other pwm pins, or just swap to mono audio. I typically do mono audio anyway. Really up to you, I can't see it using too much CPU. But I really am not too sure.

Re: Gearbest Screen PWM Brightness

Posted: Fri Sep 21, 2018 2:03 am
by tinkerBOY
My initial testing with software PWM on the Pi for the GearBest screen is not very stable. It's been suggested to use the hardware PWM instead. I think there are 3 available pins you can use for PWM hardware. GPIO18,GPIO13, & GPIO19.

You can also just use one pwm pin for the audio just do Downmixing From Stereo to Mono Sound Output to combine both audio channels.

Re: Gearbest Screen PWM Brightness

Posted: Sat Sep 22, 2018 5:17 pm
by philip640
Thank you both for your help!