Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: backlight level 1 and 2 do not turn on backlight #131

Closed
prokrypt opened this issue Jun 14, 2024 · 8 comments
Closed

bug: backlight level 1 and 2 do not turn on backlight #131

prokrypt opened this issue Jun 14, 2024 · 8 comments
Labels
discussion Under discussion

Comments

@prokrypt
Copy link

prokrypt commented Jun 14, 2024

known issue when pwm frequency is set too high. perhaps something can be adjusted to put the brightness scale back to normal.

@armel
Copy link
Owner

armel commented Jun 14, 2024

I know, it's not perfect, but it will be hard to fix.

The choice is as follows:

  • low frequency for PWM = noise under modulation, but there is a visible diff between backlight levels 1 and 2
  • high frequency for PWM = no noise under modulation, but there is no visible diff between backlight levels 1 and 2

The maximum frequency with a visible diff between backlight level 1 and 2 is around 7 kHz... But this frequency is audible (if your young...)

My choice is quickly made.

@prokrypt
Copy link
Author

Random idea: how about increasing the pwm frequency only when transmitting?
Also, have you tested other frequencies? 12kHz-18kHz might not be very audible over radio tx. 25kHz seems a bit overkill to me.

@zardoz99
Copy link

zardoz99 commented Jun 14, 2024 via email

@armel
Copy link
Owner

armel commented Jun 14, 2024

Agreed with @zardoz99

Note that the human audible spectrum extends from 20 Hz to 20 kHz.
As I said, if the PWM frequency is above 7 kHz, there's no visible difference between backlight levels 1 and 2.
PWM frequency needs to be under 7kHz so... plain in human range.

Armel F4HWN.

@armel armel added the discussion Under discussion label Jun 14, 2024
@prokrypt
Copy link
Author

prokrypt commented Jun 14, 2024

As of right now, there is no difference between levels 0, 1, and 2... I'm not sure if that is a hardware thing though as I have a KSUN UV60D. I might have some experimentation with it a little later on.

@prokrypt
Copy link
Author

prokrypt commented Jun 14, 2024

I just did a simple test on UHF with a few different pwm values and an rtlsdr dongle and there was no difference in the squeal.
I'm not sure if the frequency is right as I haven't calibrated my SDR, but it seems there are two tones, one at ~3.75k and one at ~7.5k. What is clear though is that they remain relatively unchanged among different pwm values.
squealy

@prokrypt
Copy link
Author

prokrypt commented Jun 14, 2024

And while I'm at it, I decided to test another uv60d with LOSEHU's firmware (1000Hz backlight pwm), and some cheap "frs" radio I had nearby.
comp

armel added a commit that referenced this issue Jul 2, 2024
@armel
Copy link
Owner

armel commented Jul 2, 2024

Fixed in next release.

@armel armel closed this as completed Jul 2, 2024
@armel armel mentioned this issue Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Under discussion
Projects
None yet
Development

No branches or pull requests

3 participants