lumapu / ahoy

Various tools, examples, and documentation for communicating with Hoymiles microinverters
https://ahoydtu.de
Other
951 stars 224 forks source link

Nokia 5110 Display Connection and Settings #844

Closed jdrescher2006 closed 1 year ago

jdrescher2006 commented 1 year ago

Hardware

Modelname: D1 Mini NodeMcu ESP8266-12F Retailer URL: https://www.azdelivery.de/products/d1-mini

nRF24L01+ Module

Antenna:

Power Stabilization:

Connection diagram:

Connection diagram I used:

nRF24L01+ Pin ESP8266 GPIO
Pin 1 GND [*] GND
Pin 2 +3.3V +3.3V
Pin 3 CE GPIO2 CE D4
Pin 4 CSN GPIO15 CS D8
Pin 5 SCK GPIO14 SCLK D5
Pin 6 MOSI GPIO13 MOSI D7
Pin 7 MISO GPIO12 MISO D6
Pin 8 IRQ GPIO0 IRQ D3
nRF24L01+ Pin ESP32 GPIO
Pin 1 GND [*] GND
Pin 2 +3.3V +3.3V
Pin 3 CE GPIO4 CE D4
Pin 4 CSN GPIO5 CS D5
Pin 5 SCK GPIO18 SCLK D18
Pin 6 MOSI GPIO23 MOSI D23
Pin 7 MISO GPIO19 MISO D19
Pin 8 IRQ GPIO0 IRQ D0

Note: [*] GND Pin 1 has a square mark on the nRF24L01+ module

Software

Version / Git SHA:

Version: 0.6.0 Github Hash: 9c7d7a0

Build & Flash Method:

Desktop OS:

Debugging:

5111 png

Hi, I am trying to get a Nokia 5110 Display to work. I connected as in the attached wiring.

In the table you can see the configuration.

Display D1 Mini Ahoy Ahoy Auswahlbox
CE D1 CS D1 (GPIO5, SCL)
DC D2 DC D2 (GPIO4, SDA)
DIN TX DATA TX (GPIO1)
CLK RX CLOCK RX (GPIO3)

The problem is there is nothing seen on the display, it just does not work.

grafik

knickohr commented 1 year ago

Try using the D1 or D2 pin on D0. Don’t forget to Change the settings.

jdrescher2006 commented 1 year ago

Ok, so I connected CE with D0, and DC with either D1 or D2. Sometimes I have now a faint "AHOY" text on the display.

Has anyone connected this display to a D1 MINI and got it really working?

knickohr commented 1 year ago

Ahh, you have a faint picture. Maybe you have a worse Display ? Try pressing with a gentle force on the metallic Frame. A Lot of cheap Displays have this issue.

bojs15 commented 1 year ago

my screen only lights up, are these two capacitors important??

jdrescher2006 commented 1 year ago

So I followed this guide: https://thesolaruniverse.wordpress.com/2021/01/15/nokia-5510-8448-lcd-and-the-esp8266-wemos-d1-mini-microcontroller-board/ And voila: the display is working absolutely properly!

Reconnected it to ahoy: does not work. Sometimes a faint picture, thats all.

Notice that in the guide I linked, the reset pin is also connected to the D1 mini. Maybe this is needed?

bojs15 commented 1 year ago

jdrescher2006 dein link ohne funktion ??

jdrescher2006 commented 1 year ago

Sorry, habs korrigiert 👍

lumapu commented 1 year ago

solved?

jdrescher2006 commented 1 year ago

solved?

No.

I ordered an other display from china, just to make sure it's no hardware problem.

I made some tests and have the feeling that the problem may come from the used library u8g2. Because with Adafruit_PCD8544 lib the display is working absolutely properly.

jdrescher2006 commented 1 year ago

Its working properly now. It was a hardware problem with my display. My connection is looking like: Clock: D1 Data: D2 CS: RX DC: TX