avrdude: Version 6.3-20171130

New at this, it says that the sketch has been uploaded but my OLED still has black screen it would not display anything. The error code i have it below. I used the adafruit GFX libraries and the adafruit_sd1306 libraries.

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM1
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\pooja\AppData\Local\Temp\arduino_build_860917/kdarjioled.ino.hex"
avrdude: writing flash (20744 bytes):

Writing | ################################################## | 100% 3.47s

avrdude: 20744 bytes of flash written
avrdude: verifying flash memory against C:\Users\pooja\AppData\Local\Temp\arduino_build_860917/kdarjioled.ino.hex:
avrdude: load data flash data from input file C:\Users\pooja\AppData\Local\Temp\arduino_build_860917/kdarjioled.ino.hex:
avrdude: input file C:\Users\pooja\AppData\Local\Temp\arduino_build_860917/kdarjioled.ino.hex contains 20744 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 2.72s

avrdude: verifying ...
avrdude: 20744 bytes of flash verified

avrdude done.  Thank you.

This is not an "error code". This is the output from a successful upload.

If the upload process succeeds, the Arduino IDE shows a teal bar with "Done uploading" written on it.

If the upload process fails, the Arduino IDE shows an orange bar with "Problem uploading to board" written on it.

Are you seeing an orange bar? If not, the problem is not with uploading. The problem is either something in your sketch code or your hardware.

well it is not in orange thats for sure and yes i do get the upload successful but for some reason my OLED is still black it would not turn on even tho there are some test display codes written. is there a way to upload the code i am using here besides the codes icon, because in this it says over 9000 characters used. I have attached my pde, if you could help me see if there is any problem with my code.

kdarjioled.ino (12.2 KB)

Post a link to your actual display.
Quote which library example by name.

If you have edited the library example, copy-paste the changed lines.
Then we can replicate your exact code.

David.

david_prentice:
Post a link to your actual display.
Quote which library example by name.

If you have edited the library example, copy-paste the changed lines.
Then we can replicate your exact code.

David.

well i have not changed any of the library examples. and here is the OLED didsplay that i am using.

kdarji:
is there a way to upload the code i am using here besides the codes icon, because in this it says over 9000 characters used. I have attached my pde

That was exactly the right thing to do. You should always post directly to the forum when possible, but when it exceeds the 9000 character limit the best approach is to attach it.

From your link:

This board/chip uses I2C 7-bit address between 0x3C-0x3D, selectable with jumpers

Without seeing the pcb I do not know whether your display is configured for 0x3C or 0x3D.

I asked for the library example name

It is always wise to run library examples first.
Your sketch kdarjioled.ino attached in #2 does not appear in the Adafruit_SSD1306 examples.

David.

maybe this might help? I do not know what pcb stands for, sorry for being such an idiot here.

Adafruit_SSD1306-master.zip (37.7 KB)

Adafruit-GFX-Library-master (1).zip (340 KB)

maybe this might help? I do not know what pcb stands for, sorry for being such an idiot here.

Google "pcb"

Please quote library by name and version.
I only trust a library that is available through the IDE Library Manager.

If there is no photo of the pcb on the Adafruit site, post a photo of the pcb on your desk.

David.

here is the PC and libraries installed snips.

Imgur: The magic of the Internet
Imgur: The magic of the Internet

Please just quote text. This is all you need to describe a Library from the Manager:
e.g. Adafruit_SSD1306 v2.3.1
e.g. Adafruit_GFX v1.10.0

You still have not quoted any library example name that you have tried
e.g. ssd1306_128x64_i2c.ino

Thanks for the photo of the pcb.
It is genuine Adafruit 128x64 which defaults to Slave address = 0x3D

**Non-**Adafruit SSD1306 displays default to Slave address = 0x3C

From the library example ssd1306_128x64_i2c.ino

void setup() {
  Serial.begin(9600);

  // SSD1306_SWITCHCAPVCC = generate display voltage from 3.3V internally
  if(!display.begin(SSD1306_SWITCHCAPVCC, 0x3D)) { // Address 0x3D for 128x64

If your display is 0x3C you should alter the display.begin() statement to 0x3C.

All the information is contained in a few lines of my message. Anyone, anywhere in the world can replicate your project.

David.

so on the back of my display it says address is 0x3D. Also here is the example ino. In my project i used the whole zip that i attached earlier. but specifcally i used this. i will attach some inos. i have used the spi i think. Did you take a look at the code code i used?

ssd1306_128x64_i2c.ino (11.4 KB)

ssd1306_128x64_spi.ino (11.7 KB)

Please read and understand the advice you have been given.

  1. install libraries via Manager
  2. connect external hardware as described in example code.
  3. run all the Library examples unchanged.
  4. if you do edit an example, just paste the changed line(s) for the example quoted by name.

Show us your wiring from Uno to OLED display. e.g. a photo

Obviously you can only run the I2C examples that match your 128x64 display.
There are only 4 wires. So it is not difficult.

Be honest. If you think that you might have fried the board, say so. We have all made mistakes.

David.

david_prentice:
Please read and understand the advice you have been given.

  1. install libraries via Manager
  2. connect external hardware as described in example code.
  3. run all the Library examples unchanged.
  4. if you do edit an example, just paste the changed line(s) for the example quoted by name.

Show us your wiring from Uno to OLED display. e.g. a photo

Obviously you can only run the I2C examples that match your 128x64 display.
There are only 4 wires. So it is not difficult.

Be honest. If you think that you might have fried the board, say so. We have all made mistakes.

David.

  1. i have installed it from manager
  2. did connect it as it was shown.
  3. Did not change the code what so ever
  4. did not edit examples

There are 5 wires, and i do not think i have fried the board because the OLED display light is green and the uno board has lights on as well. Next post i will attach a picture of the wiring.

OLED UNO board
data----------------------------------pin 9
CLK-----------------------------------pin 10
DC------------------------------------pin 11
CS------------------------------------pin 12
Reset---------------------------------pin 13

Imgur
Imgur
Imgur

Thanks for the photos. You have an I2C display according to your photo in #9

Please quote the example by name e.g. ssd1306_128x64_i2c.ino

Your wiring matches the ssd1306_128x64_spi.ino example. But your photo could have been at a better angle to show the colours of each wire plugged into digital #9 - 13

Everything looks ok for ssd1306_128x64_spi.ino if you configure your Adafruit module for SPI.

Of course you have not said which example you were building.

Your photo shows an unmodified module. So it will be default I2C with address 0x3D. You need to wire for ssd1306_128x64_i2c.ino

David.

p.s. Adafruit show you how to wire their I2C display