Hello, I have bought the nhd 3.12 25664ucy2 display and i have tried to turn it on using the example code of new heaven display site and the 4 wire interface connection with arduino nano and arduino uno but it doesn't work. I would appreciate it if you could help me to turn on the display and finish my project. Thank you in advance.
The sketch states that it's written for a Mega and some of the pin numbers indicate that. For a Uno/Nano you need to adjust it. So I suggest that you post your sketch; don't forget to use code tags.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project.
#define OLED_DC 9 //Register Select signal
#define OLED_RESET 5 //Reset signal
#define OLED_CS 10 //Chip select signal
#define OLED_CLK 13 //Serial clock signal //PB1
#define OLED_MOSI 11 //Serial data signal //PB2
That is not a very useful comment. I tried to compile it for a Nano and the code is using more RAM than the microcontroller has.
You will have to move that NH logo to PROGMEM. See PROGMEM - Arduino Reference how to read PROGMEM.
i tried in the arduino uno and does not work
The Uno uses the same processor (and hence Arduino core) as the Nano so it will obviously have the same problem.
I sugegst that you start playing with PROGMEM.
Sketch uses 3990 bytes (12%) of program storage space. Maximum is 32256 bytes.
Global variables use 2057 bytes (100%) of dynamic memory, leaving -9 bytes for local variables. Maximum is 2048 bytes.
Not enough memory; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing your footprint.
data section exceeds available space in board
Compilation error: data section exceeds available space in board
Can you help me with a simple code to turn on the display? If i delete some lines from the char logo to reduce the memory??
How is the display configured? I personally would suggest 4-wire SPI.
Then try one of the U8g2 examples: gallery · olikraus/u8g2 Wiki · GitHub
Oliver
I use 4 wire spi and i try u8glib examples and the dislpay turns on.
Thank you very much for your help.
I try to set an audio spectrum analyzer with this display, would you have any idea??
I don't have enough experience to implement it.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.