How to use SSD1306 128x32 OLED Display I2C with Arduino code

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 97

  • @robertw1871
    @robertw1871 5 ปีที่แล้ว +7

    Thanks, got a couple of these modules with no data on them, you helped me identify them and gave me a starting point. It’s truly amazing how simple it is these days to drive a display, used to take hours of fiddling with registers and bit timing to get one just to initialize.

    • @robojax
      @robojax  5 ปีที่แล้ว +1

      You are welcome. I am glad you found it useful. Yes indeed Arduino makes is extremely easy.

  • @timhoward7556
    @timhoward7556 ปีที่แล้ว +1

    Excellent! Save me from binning a display module I was convinced was faulty. (The IC2 scanning save the day!) Thanks. 🙂

  • @tankalvin1444
    @tankalvin1444 6 ปีที่แล้ว +5

    Thank you for explaining this part
    #define LOGO16_GLCD_HEIGHT 32
    #define LOGO16_GLCD_WIDTH 128
    Was figuring it out for one day until I saw ur video

    • @robojax
      @robojax  6 ปีที่แล้ว

      You are welcome.

  • @peanut1120
    @peanut1120 2 ปีที่แล้ว +1

    I knew I recognise your voice from equaser very nice to come across your videos again!

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      Oh thank you!

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      Here is my Arduino Step by Step Course ($200 on Udemy but free here) which starts here: th-cam.com/video/-6qSrDUA5a8/w-d-xo.html

  • @abhayagaminisuraweera1760
    @abhayagaminisuraweera1760 5 ปีที่แล้ว +6

    Thanks for the very helpful tutorial. I was able to use this small display in my new project with the use of your code. Great display for limited space and low power.

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome.

  • @buildthis2324
    @buildthis2324 3 ปีที่แล้ว +1

    Great code here. I was looking at some really complicated examples of using ADC, but nothing this simple. Thanks.

  • @Sabhail_ar_Alba
    @Sabhail_ar_Alba 5 ปีที่แล้ว +2

    Thank you , very informative; but the problem with ADA libraries is they are bloated. This little sketch uses 67% of program memory space and 77% of dynamic memory (Nano) . I think you might agree there is little room left for the user program and there are more efficient libraries out there. Your explanation was good.

    • @robojax
      @robojax  5 ปีที่แล้ว +2

      You are welcome. Yes you are right. This needs a lot of memory.

  • @qzorn4440
    @qzorn4440 3 ปีที่แล้ว

    this will help on the heltec esp32 with i2c oled module... to read an analog voltage and display it... thanks a lot...😉

    • @robojax
      @robojax  3 ปีที่แล้ว

      you are welcome. Here is how to read any DC voltage up to 500V using Arduino th-cam.com/video/t8xwrVj2aFs/w-d-xo.html

  • @kittyask90714
    @kittyask90714 2 ปีที่แล้ว +1

    Thank you very much. I want you to display the line number in "Arduino IDE". It's hard to tell which line you moved to.

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      Hello, click on File-Preferences and then select "Show line number" or something like that. Here is long way shown in this video th-cam.com/video/NwSlW9Agw30/w-d-xo.html

  • @mohamad404
    @mohamad404 3 ปีที่แล้ว

    thank you very much for the video, please can i with this oled display show the temperature and pulsensor values ​​in the same oled screen

    • @robojax
      @robojax  3 ปีที่แล้ว

      that is exactly what I've shown. you can display as many numbers as you like and display anything you want.

  • @bigsailboatproject
    @bigsailboatproject 6 ปีที่แล้ว +1

    Good tutorial! The 8 per char is actually 5x7 chars so really it's 6 pixels per char

    • @robojax
      @robojax  6 ปีที่แล้ว

      Thank you.

  • @cole12cool
    @cole12cool 2 หลายเดือนก่อน

    hey i got a problem whenever i use your code it still doesnt turn on its bluetooth supported but other than that yea

  • @tsbimbra
    @tsbimbra 6 ปีที่แล้ว

    Thanks for this tutorial . Was very helpfull to me as Lerner

    • @robojax
      @robojax  6 ปีที่แล้ว

      you are welcome.

  • @MrBobWareham
    @MrBobWareham 5 ปีที่แล้ว +1

    Thank you for the video very helpful I have a project in mind for the display to add the display to an analogue clock to show only the date and day to show through a cutout on the face of the clock I would like to use an Arduino nano plus real-time clock, do you have a suggestion to show only the day and date please any help would be good thanks Bob in the UK

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome. I have videos on RTC see them here th-cam.com/users/robojaxTVsearch?query=clock

  • @coopduc112
    @coopduc112 ปีที่แล้ว

    Thanks for the great video! Do you know a way to make the text display color orange?

    • @robojax
      @robojax  ปีที่แล้ว

      This is not colour. You can find red or orange and other colours. Just have to buy the right one

  • @AiQuantitativeTradingSystem
    @AiQuantitativeTradingSystem 4 ปีที่แล้ว

    Special thanks for your work

    • @robojax
      @robojax  4 ปีที่แล้ว

      You are very welcome.

  • @vaxman804
    @vaxman804 9 หลายเดือนก่อน

    Where do I get the code you show at 4:50???

    • @robojax
      @robojax  9 หลายเดือนก่อน

      I have shown the "robojax.com" multiple times. Link in description.

  • @LuisPa247
    @LuisPa247 5 ปีที่แล้ว

    i am trying to make it work using a wemos mini d1, scl and sda are pin D1 and D2, but i get nothing on the screen when i use the examples. Any idea if i have the wrong pins?

    • @robojax
      @robojax  5 ปีที่แล้ว

      You should use I2C scanner to get the address robojax.com/learn/arduino/?vid=robojax-I2C-scanner and see if you get the I2C address. Then run the code with I2C address you found.

    • @sanketm1663
      @sanketm1663 2 ปีที่แล้ว

      @@robojax hello , i tried using this code for my OLED screen , after starting the scan the serial monitor shows “scanning “ but nothing happens after that, the scanning stops automatically after a few minutes

  • @jay1st1st
    @jay1st1st 5 ปีที่แล้ว

    Excellent explanation, tnx a lot !

    • @robojax
      @robojax  5 ปีที่แล้ว

      You are welcome.

  • @nskmda
    @nskmda 5 ปีที่แล้ว

    I got a similar module but labels say GND, VCC, SCK, SDA. I assume mine may be different?

    • @robojax
      @robojax  5 ปีที่แล้ว

      No. it has clock (SCK) and SDA . Exactly the same module. They just label them like that.

    • @nskmda
      @nskmda 5 ปีที่แล้ว +1

      @@robojax oh, good. i assume, i need 2 use the lib which is tailored 2 the 128x32 dimension, right?

  • @Mike4_friends
    @Mike4_friends 3 ปีที่แล้ว

    Display values do not clear before next value is written on display -how to solve

    • @robojax
      @robojax  3 ปีที่แล้ว

      Perhaps you've removed the link display.clearDisplay(); from inside the loop which clears the screen.

  • @eBuzatti
    @eBuzatti 5 ปีที่แล้ว

    Hi, I tried your sketch and the result is a bit strange because the size of the rectangle and the text inside is about vertically half sized. Width is o.k. Text can be read but abnormal. Sir, have you some idea?

    • @robojax
      @robojax  5 ปีที่แล้ว

      No it is not okay. You must have switched the 128x32 as 32x128 but it is the size settings check it.

  • @MB-lh5kw
    @MB-lh5kw 3 ปีที่แล้ว

    Hi RoboJax
    i have been using some of your code above to get used to the 1306 display, but im finding an issue i can not get around, im display a float number like 1.24 but when the number goes negative it will display it like -1.75 which is all good so far , but when the number goes posative again 1.24 it will dislplay 1.245 the 5 from the negative number is still remaining on the display , i have tried the set colour to White,black but this does not seem to fix the issue, and using the clear display makes the screen flicker which is anoying, is there a way to solve this issue please?

    • @robojax
      @robojax  3 ปีที่แล้ว

      It is because the screen is cleared. I have mentioned which line is clearing the display.

    • @MB-lh5kw
      @MB-lh5kw 3 ปีที่แล้ว

      @@robojax Thanks ill have another go :), i tried i can get all the screen to flash on display.display or just 2 of the lines to flash .. and one is steady, would you mind having a look at my code please.

    • @MB-lh5kw
      @MB-lh5kw 3 ปีที่แล้ว

      its working now but i dont know why..

  • @lexander9686
    @lexander9686 4 ปีที่แล้ว

    Thanks

    • @robojax
      @robojax  4 ปีที่แล้ว

      No problem

  • @alex.sokolov
    @alex.sokolov 4 ปีที่แล้ว

    Great video!

    • @robojax
      @robojax  4 ปีที่แล้ว

      Thank you.

  • @technophile01
    @technophile01 4 ปีที่แล้ว

    hi M shamshiri! I followed your video to the end: I did not find any trace of any clock even in the code ...

    • @robojax
      @robojax  4 ปีที่แล้ว

      Hi, I did not make a clock. this is just to display a text so you know how to use it for any other purpose. I might make a clock using this module, but let's see.

    • @technophile01
      @technophile01 4 ปีที่แล้ว

      @@robojax Sorry, I confused the oled ssd1306 with the clock module sd1302 ...

    • @robojax
      @robojax  4 ปีที่แล้ว

      no problem. This is the only image available for this. I have 2 or more clock videos. check them out.

  • @picasso120
    @picasso120 3 ปีที่แล้ว

    Do you know how can I use it with nanoframework? :)

    • @robojax
      @robojax  3 ปีที่แล้ว

      Yes

    • @picasso120
      @picasso120 3 ปีที่แล้ว

      @@robojax Will you share with us? I tried to work it out all day long, but no success.. :o Ok, I wanted to use this screen for raspberry pi pico with nanoframework, that's a big difference.

  • @shridharkulkarni5394
    @shridharkulkarni5394 5 ปีที่แล้ว

    Can we make smart glasses from this screen

    • @robojax
      @robojax  5 ปีที่แล้ว

      I don't think this can handle like 10 frame per second of new data(image). this is made for simple shapes or text.

    • @brokenboatman
      @brokenboatman 5 ปีที่แล้ว

      Theoretically you could do so, because of the size of the screen but it wouldn't be that useable and as Robojax says, it's not capable of many frames. I think you would be better off getting a higher resolution coloured one which could handle more frames...

  • @rafaelfachinelli514
    @rafaelfachinelli514 5 ปีที่แล้ว

    Hi! Great video, thanks for it!
    Do you know how to change the address on the board? I can't find it anywhere!

    • @robojax
      @robojax  5 ปีที่แล้ว

      You haven't subscribed to my channel. I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊

    • @zen_artxsan
      @zen_artxsan 4 ปีที่แล้ว

      @@robojax shut up subscriber hungry b!tch i would unsubscribe after being answered

    • @zen_artxsan
      @zen_artxsan 4 ปีที่แล้ว

      oh and rafael not you i mean the youtuber

  • @radovanrakovicky2655
    @radovanrakovicky2655 4 ปีที่แล้ว

    Guys, please, is possible to connect three displays to one Arduino board and each display will show different text? Can I address somehow each of these 3 displays? Thank you very much for an answer ;-)

    • @robojax
      @robojax  4 ปีที่แล้ว

      I think you can. I have made video for other display, but if you watch it carefully you will learn how to the same with this display Here is the video th-cam.com/video/L6ekl2ABcuY/w-d-xo.html

  • @VoidHalo
    @VoidHalo 6 ปีที่แล้ว

    Why have a link to the code, but not the library?

    • @robojax
      @robojax  6 ปีที่แล้ว

      Hi did you visit the code page? I just checked and I have provided 6 other links. Just visit the page you will see the links resources for this device.

    • @robojax
      @robojax  6 ปีที่แล้ว

      did you check it?

  • @poerwojadoel7992
    @poerwojadoel7992 6 ปีที่แล้ว

    tank u Mr robojax

    • @poerwojadoel7992
      @poerwojadoel7992 6 ปีที่แล้ว

      but I can not see the code in Get code for this project: goo.gl/rVoDC4 why?
      appears "goo.gl/rVoDC4 - this goo.gl short link has been disabled.
      Suggestion:
      Ask for reviews.
      Return to previous page.
      Try. "

    • @robojax
      @robojax  6 ปีที่แล้ว

      you are welcome.

    • @robojax
      @robojax  6 ปีที่แล้ว

      Thank you for letting me know. Just updated the links.
      Besides, as mentioned you can do directly to robojax.com/learn/arduino

  • @domel1410
    @domel1410 2 ปีที่แล้ว

    hello why do I not want to complain about these libraries from adafruit, both this Adafruit SSD 1306 no exaple compiles both 128x32 and 128x64 and also another Wmos Mini Oled error C: \ Users \ Michu \ Documents \ Arduino \ libraries \ Adafruit_GFX_Library \ Adafruit_Gray_GrayOLED_GFX_Library \ Adafruit_Gray_GrayOLED .h: 30: 32: fatal error: Adafruit_I2CDevice.h: No such file or directory
    compilation terminated. I installed libraries and from the menu through the library manager and in a folder in windows

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      when I searched for ": fatal error: Adafruit_I2CDevice.h: No such file or directory" I found this page you look at forums.adafruit.com/viewtopic.php?t=168864

    • @domel1410
      @domel1410 2 ปีที่แล้ว

      @@robojax it works thank you very much

  • @fortnitequiz6013
    @fortnitequiz6013 4 ปีที่แล้ว

    باریکلا

    • @robojax
      @robojax  4 ปีที่แล้ว

      بارک الله

  • @wrqnine7675
    @wrqnine7675 6 ปีที่แล้ว

    I think that's 128x64 guy.

    • @robojax
      @robojax  6 ปีที่แล้ว

      Here is the 128x64 pixels th-cam.com/video/UmYiHTOz-5k/w-d-xo.html

  • @Sergey_Nikolaev_eto_ya
    @Sergey_Nikolaev_eto_ya 3 ปีที่แล้ว

    Ардуино - зло!

    • @robojax
      @robojax  3 ปีที่แล้ว

      Почему? РЖУНИМАГУ. Arduino - это весело.

  • @zen_artxsan
    @zen_artxsan 4 ปีที่แล้ว

    Robojax only answers people who subscribed if they ask a question unsub NOW

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      Yes. that is what I do. if a person can't spare a click which costs him nothing while I spent hours and some times days, then that person does not deserve reply. for sure.

    • @zen_artxsan
      @zen_artxsan 4 ปีที่แล้ว

      @@robojax hmm

    • @zen_artxsan
      @zen_artxsan 4 ปีที่แล้ว

      @@robojax you

    • @zen_artxsan
      @zen_artxsan 4 ปีที่แล้ว

      @@robojax have

    • @zen_artxsan
      @zen_artxsan 4 ปีที่แล้ว

      @@robojax a

  • @vijithviswambharan775
    @vijithviswambharan775 4 ปีที่แล้ว

    You don't need 16 mins to explain this... It's lagging. Please do it under 10 mins. We prefer short videos

    • @robojax
      @robojax  4 ปีที่แล้ว +1

      I read all comments. I have made short video and there were asking 100 questions. why? how? where? so now I leave nothing and explain everyting.. People want to know. if you don't want to know, get the code from the provided link and you are done.

    • @vijithviswambharan775
      @vijithviswambharan775 4 ปีที่แล้ว

      @@robojax you are explaining too much, even you're not leaving the unwanted small things. Anyway, I just said my opinion. Adapt the change If you want to otherwise do the same. We'll watch it in 2x speed 😂