OpenMarine
Nokia 5110 contrast - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: Nokia 5110 contrast (/showthread.php?tid=2818)



Nokia 5110 contrast - SYWindveer - 2020-08-05

I have three 5110 LCD displays, of which two were not working on my tinypilot.
I appears the contrast settings vary wildly between them.
On Arduino I can adjust the Vop untill they are readable

In home/pi/.pypilot/lcdclient.conf I see a contrast setting:
 
class LCDClient():
    def __init__(self):
        self.config = {}
        self.configfilename = os.getenv('HOME') + '/.pypilot/lcd.conf'
        self.config['contrast'] = 60

Is this the line I should change to adjust the contrast ?


RE: Nokia 5110 contrast - SYWindveer - 2020-08-05

I found that changing the contrast value in lcd.py did not work, BUT
After I installed the IR sensor you can change display modes and contrast via the menu.
I cranked up the value to 61.000 with the old display, which was then almost black.
Installed another display and it was ok.

The menu is not available on the web interface.
There are settings for an RF remote, probably for future use.
Tinypilot even speaks french and spanish, pretty neat.
Can we expect Google support in an upcoming release?


RE: Nokia 5110 contrast - seandepagnier - 2020-08-06

The contrast setting only works on some nokia5110 not all. Fortunately the ones it doesn't work on seem to not need to change the contrast.

What would be the advantage of adjusting contrast from the web? Do you mean the display cannot be read enough to get into the menu and adjust contrast?

I'm looking at getting all the languages working from countries I've sent tinypilots!

not sure what google support is


RE: Nokia 5110 contrast - SYWindveer - 2020-08-06

(2020-08-06, 04:58 AM)seandepagnier Wrote: The contrast setting only works on some nokia5110 not all.   Fortunately the ones it doesn't work on seem to not need to change the contrast.

What would be the advantage of adjusting contrast from the web?  Do you mean the display cannot be read enough to get into the menu and adjust contrast?  

I'm looking at getting all the languages working from countries I've sent tinypilots!

not sure what google support is

Sorry, I meant the html interface, not the web. The display settings are not in the configuration screen.
I did not use the IR control since it only works from line of sight.


I also have one display with the backlight against ground and two with backlight against Vcc.

Sorry, I meant the html interface, not the web.

Voice activated control like Google Assistant and Amazon Alexa, I know sailors who talk to their autopilots.


RE: Nokia 5110 contrast - rastam4n - 2020-10-26

I cannot seem to find lcdclient.conf in the directory specified above. How can I adjust the contrast without a screen to view the menu... its a bit of a catch 22...
suggestions?


RE: Nokia 5110 contrast - seandepagnier - 2020-10-26

did you manage to adjust it so much you can't read it at all? Sometimes if you view from an angle you can again see it.

Anyway, the config files are all in ~/.pypilot

you should find a hat.conf there.

Some nokia screens can't adjust the contrast, others can. The ones that can't usually are "ok" without adjustment.


RE: Nokia 5110 contrast - rastam4n - 2020-10-26

(2020-10-26, 09:04 PM)seandepagnier Wrote: did you manage to adjust it so much you can't read it at all?   Sometimes if you view from an angle you can again see it.

Anyway, the config files are all in ~/.pypilot

you should find a hat.conf there.

Some nokia screens can't adjust the contrast, others can.   The ones that can't usually are "ok" without adjustment.

Awe Ok! Thanks Sean
 I was looking for lcdclient.conf I’ll try again looking forward hat.conf.


RE: Nokia 5110 contrast - seandepagnier - 2020-10-26

it depends which version of pypilot, just look in the directory