MCU FRIEND SUPPORT SLEEPMODE HX8347i Arduino MeGA2560

hi everyone, i'm so in awe of the work on TFT screen development for Arduino. thank you all for helping us improve on our craziest ideas.

now i'm working on an irrigation system, this has to activate a valve and after 2 weeks again to activate the valve, my problem is the sleep mode for the screen, because in TFT_Iesp my screen has'nt support, in MCUFriend i have the support for screen but i don't have any method for shutdown/sleep/idle/standby mode this screen.

i try with UTFT, but is the slowest.

and Adafruit_GFX hasn't the documentation about a Keyword.txt, so I'm lost in my ignorance.

i'm looking about merge like implement diferent solutions to this

the first crazy idea come form this:

   setRotation(uint8_t r),
     invertDisplay(boolean i);

void sleep(void) { writecommand(ST7735_SLPIN); }
void wake(void) { writecommand(ST7735_SLPOUT); }
uint16_t Color565(uint8_t r, uint8_t g, uint8_t b);

David Prentice proposal in How to turn off a TFT display? - #6 by david_prentice

But when i try to use it Platform.IO says
"writecommand was not declared in this SCOPE"

so, i don't have any idea how can i resolved.

Please Help me to find any solution for use Arduino Mega2560 with a TFT compatible.

Screens for arduino UNO put the SPI for SD in PIN 11,12,13, but in mega2560 you have to use the 51,50,52 respectively, so to try another screen compatible with UNO is a partial solution and i need save data in the SD.

Actually i'm using a Himax 8347-I exactly same model that Mcufriend 2.8 inch tftlcd for arduino Mega2560(8347i) usage

@betoso, your topic has been moved to a more suitable location on the forum.

I'm not quite sure why you thought that this relates to Avrdude, stk500, Bootloader issues.

I have never seen a green pcb from mcufriend.com
Please confirm that you have this green shield.

Yes, it should work with MCUFRIEND_kbv if you edit some library files and force tft.begin(0x9595); //HX8347-I

And I am sure that the modified UTFT from your link will work too.

Which library do you want to use ?

I can show you how to send the controller to sleep in both libraries. However there is little point in saving 10mA for the controller when you are wasting 100mA on the backlight.

There is no way to turn the backlight off on this shield via software.

David.

I have never seen a green pcb from mcufriend.com

Please confirm that you have this green shield.

Yes, it's green, it's the same, some pics:






Which library do you want to use ?

I'd like use MCUFriend Library

I can show you how to send the controller to sleep in both libraries. However there is little point in saving 10mA for the controller when you are wasting 100mA on the backlight.

i read in some place that this screen has a pin for power control backlight, but i can't understand which is this pin.

There is no way to turn the backlight off on this shield via software.

but, if this screen display hasn't form to shutdown the backlight, we can't use it for application that needs to be turn on all time for long time periods, because the screen will failure in a week, and i need use it for almost a year. :worried: :sob:

in other relevant notice, @Surbyte help me found this :

similar drivers to HX8347i

On this Spanish Post Apagar una pantalla TFT desde arduino Mega 2560 - #26 by Surbyte

page 12, number 16 / 17-20, can we use it for shutdown the Backlight?
pantalla TFT 2.8- T28-HX8347I-V12-ETC.pdf (690.0 KB)

LEDA ___________ Backlight LED Anode Input Pin (A)
LEDK1-LEDK4 ___Backlight LED Anode Input Pin (K1-K4)

Oops. My apologies. I actually have a green Shield with the same layout as yours. But the printing just says 2.8 inch tftlcd for arduino Mega2560
My shield has a SSD1289 controller.

There is not a pin to switch the backlight. And there is no LED transistor on the pcb.

The TFT controller will run for years on mains power.
The backlight will run for years on mains power.
Obviously you would want to save power if running from a battery.

David.

1 Like

ohhh thanks a lot!!!

in a Datasheet form a ILI9341 that i found, it says "maximum time on = 120h" for this I was some nervous

I have never seen that written in a datasheet.

Please quote Chapter / paragraph number.

Most electronics should work 24 hours a day for years.
Unless you exceed the temperature, voltage, ..., or hit it with a big hammer.

David,

1 Like

i love use a big hammer in TFT when the software don't compile... :rofl: :joy: :rofl: :joy:

i can't find the datasheet, so i'll take the another and slow way, i'll connet my arduino +TFT shield by one week and i'll see what happen, :face_with_monocle: ,but i believe that result will be like you say :+1:

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.