Connecting issues with 1,5inch Oled Module from WaveShare

Hello guys , i wanted to build my own Voltmeter like this https://www.instructables.com/id/An-Adruino-OLED-Voltmeter/
I have connected the display like the guy was saying and loaded the code but nothing happens , the display is not showing anything (Im using arduino UNO and 128x128, General 1.5inch OLED display Module from Waveshare) .. Can the problem be that i am not using the same display like the guy uses ? Sorry if the Topic is not in the right place i have just joined the Community .....
Cheers !

It is always wise to post a link to the actual item you have bought.
Google found this display

Is it correct?

Run the IDE Library Manager. Search for SSD1327
Install Olikraus's u8g2 library.

If you have a problem, ask here. Oliver is very helpful.

Your Voltmeter project uses a 128x64 SSD1306 display. If you are a beginner, it is always easier to buy the same components that are used in the Instructable.
I recommend that you buy a SSD1306 module. They are very cheap. (even if they do take a long time from China)

David.

Edit. China Post is pretty good. I ordered a SSD1351 colour OLED on 15 August. Arrived on 25 August !!
Edit. Corrected the link.

Thanks Alot David , i cant open this link but the Display i have is This : https://www.waveshare.com/1.5inch-oled-module.htm

David , i live in Bulgaria and the delivery from China tooks more than 30 days :smiley: :smiley: :smiley:
I have installed the nececary libraries .
And the Display doesnt light ...

Can you check is this the correct way for installing the display ? Thanks in advance.

IMG 4883 hosted at ImgBB — ImgBB (cant upload a picture ) IMG 4883 hosted at ImgBB — ImgBB

This is the Code :

#include "U8glib.h" // U8glib library for the OLED

int analogInput = 0;
float vout = 0.0;
float vin = 0.0;
float R1 = 100000.0; // resistance of R1 (100K)
float R2 = 10000.0; // resistance of R2 (10K)
int value = 0;

U8GLIB_SH1106_128X64 u8g(13, 11, 10, 9, 8); // D0=13, D1=11, CS=10, DC=9, Reset=8

void draw(void)
{
u8g.setFont(u8g_font_profont17r); // select font
u8g.drawStr(18, 12, "VOLTAGE");
u8g.setPrintPos(33,40);
u8g.drawRFrame(15, 20, 100, 30, 10); // draws frame with rounded edges
u8g.println(vin); //Prints the voltage
u8g.println("V");
}
void setup(){
pinMode(analogInput, INPUT);
}
void loop(){
// read the value at analog input
value = analogRead(analogInput);
vout = (value * 5.0) / 1024.0; // see text
vin = vout / (R2/(R1+R2));
if (vin<0.09) {
vin=0.0;//statement to quash undesired reading !
}
u8g.firstPage();
do
{
draw();
}
while( u8g.nextPage() );
delay(500);
}

Your wiring looks ok. I always suggest that you solder male header strip to the empty holes.

Your program is no good. It was designed for 128x64 SSD1305 or 128x64 SH1106. I strongly recommend that you buy the correct 128x64 display.

Your constructor should be like this for the 96x96 I2C version:

U8GLIB_SSD1327_96X96_2X_GR u8g(U8G_I2C_OPT_NONE);	// I2C

There does not seem to be a constructor for 128x128 SPI version. U8glib is being replaced by U8g2lib

Oliver should give a definitive answer. i.e. when it will be available for U8g2

China and HongKong post is pretty good to the UK.
30 days is a long wait for Bulgaria.
Why not buy from Germany? Or UK ? More expensive but quicker delivery.

David.

David , thanks again . I have ordered a new display and when it comes i will try it . Hope that soon there will be constructor for 128x128 displays .

Best regards ,
Marian.