Good day all.
My project is a solar heating system for a swimming pool.
The coding all seems to work well on the work bench and next week I'm taking it out into the real world but I have one last niggling problem.
I have used a 20 x 4 I2C LCD display to monitor temeratures, pump cycles and a variable I have included that can be changed by way of a potentiometer.
I will probably only look at this display two or three times a day at most but I can't find a way to have the display OFF most of the time and just turn it ON when I want to read it.
Having it ON all the time uses power, reduces the LCD lifespan and, worse than that, is inelegant.
I have tried including a pushbutton on the VCC side but pressing and releasing it just results in the dispaly turning into garbage,
So here, finally, is my question.
How can I turn an LCD display OFF and ON at will diring the operation of a program or, if that is not possibe, what alternative method could I use to display the data I need?
Many thanks for any help you can give me.