Page 1 of 1
Brightness control via software?
Posted: Wed Jul 18, 2018 6:25 am
by Arara
I've been googling for hours but didn't really find an answer. I'm building my first Gameboy zero and I'm using
the new gearbest display (last one on that page).
My goal is to control at least the brightness of that screen. The screen doesn't have button board for controlling screen settings, but it has tx and rx ports for serial connection. I was thinking if it was possible to control screens brightness with serial connection from pi with software. If that is not possible, does anyone know how to build or buy button board for that screen.
Thank you in advance!
Re: Brightness control via software?
Posted: Tue Jul 24, 2018 5:18 pm
by tinkerBOY
Most of these screens have a led driver ic that can be dimmed via PWM.
Re: Brightness control via software?
Posted: Thu Jul 26, 2018 9:02 am
by Arara
tinkerBOY wrote: ↑Tue Jul 24, 2018 5:18 pm
Most of these screens have a led driver ic that can be dimmed via PWM.
So I could basically wire the controller pin of that ic to raspberry's gpio and write program that would control brightness with that? I tried to search but didn't really find any documents about how to do that in practice. Do you have suggestion where I should start, it sounds too easy to be true.
Re: Brightness control via software?
Posted: Thu Jul 26, 2018 11:22 am
by tinkerBOY
Arara wrote: ↑Thu Jul 26, 2018 9:02 am
tinkerBOY wrote: ↑Tue Jul 24, 2018 5:18 pm
Most of these screens have a led driver ic that can be dimmed via PWM.
So I could basically wire the controller pin of that ic to raspberry's gpio and write program that would control brightness with that? I tried to search but didn't really find any documents about how to do that in practice. Do you have suggestion where I should start, it sounds too easy to be true.
Yes that's correct. Most of the led driver ICs can be controlled with a PWM signal to adjust or reduce the current(brightness). The driver ic used on the
GearBest Screen i think is a CL6201. Look at the EN pin on the datasheet which says "The film is enabled. The EN pin can also be used for PWM dimming. Dimmed PWM square wave must be at 100Hz Between 100kHz". You can generate a pwm signal on the Pi's GPIO using a script.
If i have some free time i will try this on a GearBest screen i have.
Re: Brightness control via software?
Posted: Thu Jul 26, 2018 3:59 pm
by Arara
tinkerBOY wrote: ↑Thu Jul 26, 2018 11:22 am
Arara wrote: ↑Thu Jul 26, 2018 9:02 am
tinkerBOY wrote: ↑Tue Jul 24, 2018 5:18 pm
Most of these screens have a led driver ic that can be dimmed via PWM.
So I could basically wire the controller pin of that ic to raspberry's gpio and write program that would control brightness with that? I tried to search but didn't really find any documents about how to do that in practice. Do you have suggestion where I should start, it sounds too easy to be true.
Yes that's correct. Most of the led driver ICs can be controlled with a PWM signal to adjust or reduce the current(brightness). The driver ic used on the
GearBest Screen i think is a CL6201. Look at the EN pin on the datasheet which says "The film is enabled. The EN pin can also be used for PWM dimming. Dimmed PWM square wave must be at 100Hz Between 100kHz". You can generate a pwm signal on the Pi's GPIO using a script.
If i have some free time i will try this on a GearBest screen i have.
That helped a lot! I too will try it out once I have time to work with my project.
I really apperciate your help and that you are trying it out if you have time.
Re: Brightness control via software?
Posted: Sun Aug 19, 2018 6:15 am
by tinkerBOY
Arara wrote: ↑Thu Jul 26, 2018 3:59 pm
tinkerBOY wrote: ↑Thu Jul 26, 2018 11:22 am
Arara wrote: ↑Thu Jul 26, 2018 9:02 am
So I could basically wire the controller pin of that ic to raspberry's gpio and write program that would control brightness with that? I tried to search but didn't really find any documents about how to do that in practice. Do you have suggestion where I should start, it sounds too easy to be true.
Yes that's correct. Most of the led driver ICs can be controlled with a PWM signal to adjust or reduce the current(brightness). The driver ic used on the
GearBest Screen i think is a CL6201. Look at the EN pin on the datasheet which says "The film is enabled. The EN pin can also be used for PWM dimming. Dimmed PWM square wave must be at 100Hz Between 100kHz". You can generate a pwm signal on the Pi's GPIO using a script.
If i have some free time i will try this on a GearBest screen i have.
That helped a lot! I too will try it out once I have time to work with my project.
I really apperciate your help and that you are trying it out if you have time.
I made a tutorial on
How To Add Brightness Control For The 3.5″ GearBest Screen.
Here's a youtube demo i made:
https://www.youtube.com/watch?v=wgkNAMxIaZE
Re: Brightness control via software?
Posted: Sun Aug 26, 2018 11:12 am
by Arara
tinkerBOY wrote: ↑Sun Aug 19, 2018 6:15 am
Arara wrote: ↑Thu Jul 26, 2018 3:59 pm
tinkerBOY wrote: ↑Thu Jul 26, 2018 11:22 am
Yes that's correct. Most of the led driver ICs can be controlled with a PWM signal to adjust or reduce the current(brightness). The driver ic used on the
GearBest Screen i think is a CL6201. Look at the EN pin on the datasheet which says "The film is enabled. The EN pin can also be used for PWM dimming. Dimmed PWM square wave must be at 100Hz Between 100kHz". You can generate a pwm signal on the Pi's GPIO using a script.
If i have some free time i will try this on a GearBest screen i have.
That helped a lot! I too will try it out once I have time to work with my project.
I really apperciate your help and that you are trying it out if you have time.
I made a tutorial on
How To Add Brightness Control For The 3.5″ GearBest Screen.
Here's a youtube demo i made:
https://www.youtube.com/watch?v=wgkNAMxIaZE
Thank you so much!
This helps a lot.