• ESP01 2 only pin and we get GUI + Remote

    10/28/2020 at 15:57 0 comments

    Yes, i have create a simple way to enable GUI on Nokia LCD (1202 or 1661) + IR Remote on ESP8266, that only use 2 Pin (any pin that can be Input and Output).
    Nokia 1202 and 1661 i have tested, and its use 9bit SPI, thats why we dont need extra 1pin to send Command/Data. Now, we only need to start communicating to the LCD by connect RST to High and CS to LOW. But there is a problem, when booting the MCU use the PIN and if we put LCD-CS in LOW, they will receive the "unknown" data and process it. Thats why we need to "Software reset" the LCD before we can use it. The only way to reset communication to the LCD is to put CS HIGH and then LOW.

    So we need a simple way to make sure CS is LOW, but when we need it we can make it HIGH, without interfere with SCK and SDA. So this is my circuit. It use RC and when we need CS high, we send HIGH on SCK for about 100ms and then LOW for 200ms. 

    On normal SCK operation it will at least have pulse at few Mhz, and 50% duty Cycle and wont be able to fill the Capacitor to make the CS HIGH. And after work, the SCK is always LOW. Thats so convinient.

    And thats it. The code for the Library that already implement that can be found here:

    https://github.com/ryannining/esp8266-oled-ssd1306

    Also, after every update to the LCD (calling the display() ). We can reuse the SDA pin as input pin. So we can use IR remote there.

    And the demo video is here: