karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
525 stars 155 forks source link

LCD backlight #128

Closed Valenttt closed 5 years ago

Valenttt commented 5 years ago

Hi, I can’t implement the scheme for automatically turning off the backlight of the LCD display via sys.lcdout ("30").

lcd.

In the file pattern.csv, GPIO22 cleaned and applied it for highlighting.

P_I2S_DATA, data, u8,255 P_BACKLIGHT, data, u8,22

then made pattern.bin, flashed to the address 0x3a2000. After the overload, the backlight turned on, but after 30 seconds. does not turn off.

Tell me what I'm doing wrong?

pilnikov commented 5 years ago

Try this schematic diagram image 102R = 1KOhm 103R = 10kOhm Q1 - any n- channel mosfet, e.g. 2N7002

pilnikov commented 5 years ago

в исходной схеме неверно включен полевик - он всегда открыт через паразитный диод, который есть физически, но на схеме не указан.