Gearbest Screen PWM Brightness

Having trouble with your GBZ build? Ask your questions here!
Post Reply
philip640
Posts: 2
Joined: Thu Sep 20, 2018 3:45 pm

Gearbest Screen PWM Brightness

Post by philip640 » Thu Sep 20, 2018 3:54 pm

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!

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: Gearbest Screen PWM Brightness

Post by rodocop » Thu Sep 20, 2018 4:17 pm

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.

User avatar
tinkerBOY
Posts: 710
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 206 times

Re: Gearbest Screen PWM Brightness

Post by tinkerBOY » Fri Sep 21, 2018 2:03 am

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.
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

philip640
Posts: 2
Joined: Thu Sep 20, 2018 3:45 pm

Re: Gearbest Screen PWM Brightness

Post by philip640 » Sat Sep 22, 2018 5:17 pm

Thank you both for your help!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest