Arduino ATtiny85 OLED Menu

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2023
  • Do you like video? Please consider buying me coffee, thanks! www.buymeacoffee.com/upir
    PCBWay - www.pcbway.com/setinvite.aspx...
    Source files: github.com/upiir/attiny85_ole...
    WOKWI sketch: wokwi.com/projects/3828318075...
    ---------------------------------------------------------------------------------
    Links from the video:
    - ATtiny85 chip: s.click.aliexpress.com/e/_DeT...
    - Arduino UNO: s.click.aliexpress.com/e/_AXDw1h
    - Arduino prototyping shield: s.click.aliexpress.com/e/_ApbCwx
    - USB to 5V power cable with crocodile clips: s.click.aliexpress.com/e/_Dcj...
    - Image2cpp (convert array to image): javl.github.io/image2cpp/
    - Photopea (online graphics editor like Photoshop): www.photopea.com
    - Transparent OLED display: s.click.aliexpress.com/e/_Dns...
    - 128x64 SSD1306 OLED Display 1.54": s.click.aliexpress.com/e/_DCY...
    - 128x64 SSD1306 OLED Display 0.96": s.click.aliexpress.com/e/_DCK...
    - 128x64 SSD1306 OLED Display 2.42": s.click.aliexpress.com/e/_DFd...
    - Additional boards URL for attiny85: raw.githubusercontent.com/dam...
    Related videos from the video:
    - Videos using ATtiny85 chip: • ATtiny85
    - Arduino + OLED displays: • Arduino + OLED Displays
    - Arduino UNO menu with u8g: • Arduino OLED Menu Tuto...
    Arduino UNO menu with u8g2: • U8g vs. U8g2 Arduino G...
    - Xmas PCB badge: • I have missed Christma...
    ---------------------------------------------------------------------------------
    PCBWay is a service for manufacturing custom PCBs. If you click the link above, you will get a coupon for $5, which is exactly the price of 10 pieces of custom PCBs. In that case, you will only pay for shipping. Do you have any experience doing this? Please let me know in the comment section!
    ---------------------------------------------------------------------------------
    Do you have any questions? Suggestions for the next video? Please put those down in the comment section. I try to answer as many questions as I can. Thank you for watching, reading the video description and I hope to see you next time. Good luck with your projects!
    ---------------------------------------------------------------------------------
    #arduino #oled #attiny85

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

  • @upir_upir
    @upir_upir  4 หลายเดือนก่อน +2

    Do you like this video? Please consider buying me a coffee, thank you! www.buymeacoffee.com/upir

  • @bizarro_bread
    @bizarro_bread 6 หลายเดือนก่อน +6

    The craziest thing is that I was working on this kind of project yesterday for a little winter display. I fiddled with it for hours and gave up.
    But then I saw your video and was like,” I gotta give this a try.” And you won’t believe me, but I powered the Attiny85 and it displayed correctly. I then made it dynamically update after I found out how the library worked a little bit better.

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      That´s great to hear that you were able to solve your problem and get your project running!

  • @karim1485
    @karim1485 วันที่ผ่านมา +1

    You are such a king and an inspiration, thank you so much for your thorough tutorials!! Can't wait to see what you are doing next!

    • @upir_upir
      @upir_upir  วันที่ผ่านมา

      Thank you for such a nice comment, I really appreciate it!

  • @bimokayoba
    @bimokayoba 6 หลายเดือนก่อน +9

    OMG with this i can make my project smaller, thank you 😍

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน +1

      You are surely welcome, good luck with your project!

  • @upir_upir
    @upir_upir  6 หลายเดือนก่อน +9

    All the source file are on GitHub - github.com/upiir/attiny85_oled_menu

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

    I wish I had seen this video earlier.. A few months ago I was trying to make a menu for my OLED display, and spent hours apon hours on the arduino IDE and coulnd't get it to work. Really great Video, also the gearshifter ones!

    • @upir_upir
      @upir_upir  หลายเดือนก่อน +1

      Thank you for your nice words. I also have a second video about the menu project, using Arduino UNO, which has a little bit more details.

  • @NavySturmGewehr
    @NavySturmGewehr 6 หลายเดือนก่อน +3

    Thank you so much for your videos. My egt gauge is coming along nicely and it's thanks specifically to you!

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      That’s great to hear, thank you for your nice words. Is the gauge something you could show? I would love to see it!

    • @NavySturmGewehr
      @NavySturmGewehr 6 หลายเดือนก่อน

      @@upir_upir th-cam.com/video/qxWzDBUgqhM/w-d-xo.html

  • @andymouse
    @andymouse 6 หลายเดือนก่อน +1

    Another awesome tutorial that reminds me I need to find out about 'Scripts' and it's amazing what you can squash into the Tiny85 !...cheers.

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      Thank you for your nice words, a year ago, I wouldn´t think that I can squeeze the menu project into the ATtiny and here it is :) Scripts are very powerful. And regex, that is great timesaver as well.

  • @nyfaz
    @nyfaz 6 หลายเดือนก่อน +1

    Thank you for tutorial and source files :)

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      You are welcome, and good luck with your projects!

  • @magolide
    @magolide 6 หลายเดือนก่อน +1

    Pozdrav Upiru iz Južne Afrike. Želim ti zahvaliti za tvoj kanal, naučio si me puno. Nastavi s dobrim radom, brate. Ispričavam se za loše prevođenje na slavenski, dao sam sve od sebe

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      Thank you for your nice comment, I´m glad the video was helpful!

  • @lmapes
    @lmapes 6 หลายเดือนก่อน +1

    This is awesome continuation from previous videos. Could you do a video of personalized animated startup screen upon theoretical "vehicle start up"?

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      Thank you, I’m glad you like it! Could you be more specific of what animation are you looking for? Thank you!

  • @maciejd7823
    @maciejd7823 5 หลายเดือนก่อน +1

    Bro i would have just uploaded those images one by one. Respect for the work.

    • @upir_upir
      @upir_upir  5 หลายเดือนก่อน +1

      Thank you! If I woudn´t be recording a video, I would do something similar and time consuming as well. It´s just that recording a video forces me to try to find the simplest path..

  • @emanuelbarrantesdelgadillo1795
    @emanuelbarrantesdelgadillo1795 4 หลายเดือนก่อน +1

    I was very excited about the video. I would like to see the part where you make the interface for each of the options. Will you release it someday? Do you have a channel for programming-related questions or doubts?

    • @upir_upir
      @upir_upir  4 หลายเดือนก่อน

      Thank you for your comment. I have several videos on this channel describing how to make individual screen, please feel free to check those. However, those are done mostly with Arduino UNO, not with ATTINY85. Some of those screens would be hard to replicate with ATTINY.

  • @bigmac9712
    @bigmac9712 6 หลายเดือนก่อน +1

    Very nice!! Is it possible to add some kind of scrolling animation when switching between menu elements?

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      Thank you. That should be simple for Arduino UNO, but little bit more involving for the attiny chip. Also most likely very slow.

    • @bigmac9712
      @bigmac9712 6 หลายเดือนก่อน

      @@upir_upir it would also be interesting how to do this with the uno (;

  • @micultimy91
    @micultimy91 6 หลายเดือนก่อน +1

    Thanks for sharing this tutorial. is it possible to use Nokia displays instead of oled displays?

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      It is possible, and it would not be complicated, but you cannot use ATtiny85, simply because the Nokia display uses SPI connection and you don´t have enough pins on ATtiny85 if you also want to use buttons. But with something like Arduino UNO, it should not be a problem. Are people still using Nokia displays?

  • @guillaumep.7206
    @guillaumep.7206 5 หลายเดือนก่อน +1

    Very nice job and very good video. I subscribed.
    However, how to you pass the info to another MCU? I see that you only have PB1 and PB5 left. So it would have to be a serial communication of some sort. Right?

    • @upir_upir
      @upir_upir  5 หลายเดือนก่อน

      Thank you for your comment. You are right, there are not too many pins left, but if you only need to send data from ATtiny to another MCU using serial, you only need one line. Another possiblity is to use I2C connnection. If the other MCU can have a different I2C address than the display, you can use the very same pins as you use for the display, and not using any extra pins.

  • @roostertechchan
    @roostertechchan 6 หลายเดือนก่อน +1

    I think you are THE arduino GUI guru :)

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน

      Thank you!

  • @memesedikitreceh
    @memesedikitreceh 4 หลายเดือนก่อน +3

    Finally I can make small projects 😂❤🎉

    • @upir_upir
      @upir_upir  4 หลายเดือนก่อน

      Cool! What do you plan to use the ATtiny for?

  • @kunjmon11
    @kunjmon11 5 หลายเดือนก่อน +1

    Can you do a video using squareline studio and lvgl. For non touch display with button and rotary 🤗

    • @upir_upir
      @upir_upir  5 หลายเดือนก่อน

      Yep, lvgl is on my todo list for a while, I need to record a video using it.

  • @jakyjohnson650
    @jakyjohnson650 5 หลายเดือนก่อน +2

    hi mate! could you make a u8g2 sub menu tutortial? I spent a few weeks trying to modify your u8g/u8g2 menu properly but im stuck

    • @upir_upir
      @upir_upir  5 หลายเดือนก่อน +1

      Sure, a lot of people are asking about that, I will record a video.

  • @TheMlg556
    @TheMlg556 6 หลายเดือนก่อน +1

    not the way I would have done it, but very nice! maybe instead of scripting photopea you can read the png file and convert it to the c array format, using a simple language like python?

    • @upir_upir
      @upir_upir  6 หลายเดือนก่อน +1

      You can convert image to byte array using python script, but you would still need the image to start with, and the individual character sizes, so I guess in this case the Photopea script makes more sense.

  • @Playerpool
    @Playerpool 5 หลายเดือนก่อน +1

    Bro can you make a video about arduboy ?

    • @upir_upir
      @upir_upir  5 หลายเดือนก่อน +1

      Yes, that´s on my to-do list. I like the version with the expended Flash so you can fit hundreds of games and you don´t need to upload the games all the time, that´s pretty cool.

  • @rakibahamed9778
    @rakibahamed9778 5 หลายเดือนก่อน +1

    could you please make a video how to upload this code in SD card instead of uploading in chip. it will help me a lot😊😊

    • @upir_upir
      @upir_upir  5 หลายเดือนก่อน

      Could you please be a little bit more specific? I don’t fully understand what would be the reason to upload code to SD card? Thank you

    • @rakibahamed9778
      @rakibahamed9778 5 หลายเดือนก่อน

      ​@@upir_upir I'd follow your "Arduino OLED Menu Tutorial (for beginners - Arduino UNO, 128x64px SSD1306 OLED screen, u8g)" video in my ESP32. But I want this menu to work, I will add some functioning functions under each menu. for work like a flipper zero However, when I try to upload the code, it says 'Sketch too big.' That's why I need to upload it to an SD card as like flipper zero and then run it. Sorry for my English I don't know if I was able to understand you.

  • @JarppaGuru
    @JarppaGuru 4 หลายเดือนก่อน +1

    1:00 again lets use chip what you need. stop cry less memory or less pins. use bigger chip atmega328(32k/8k) goto minium arduino lol unless want use button to control 1 led thern can use tiny45/85.
    minium setup need rotary encoder with pish button,display and available pin to TX so can actually control something. its pointless have just menu that not do anything.
    1 rotaty can do many. click.click hold. double tap.double tap hold.rotate.push rotate. so many inputs from one thing xD

    • @upir_upir
      @upir_upir  4 หลายเดือนก่อน

      The point of this video is to showcase that you don’t need bigger chip for something simple as menu..

  • @jumbo999614
    @jumbo999614 3 หลายเดือนก่อน +1

    I'm trying to use ATTiny85 with OLED I2C and RFID RDM6300.
    I can compile it if Arduino UNO/Nano board is selected. But if I choose ATTiny85 it throws an error message.
    Error:
    'SPIE' was not declared in this scope
    inline static void attachInterrupt() { SPCR |= _BV(SPIE); }
    /SPI.h:310:42: note: suggested alternative: 'EECR'
    inline static void detachInterrupt() { SPCR &= ~_BV(SPIE); }
    ^~~~

    • @upir_upir
      @upir_upir  3 หลายเดือนก่อน +1

      The ATtiny85 does not have SPI, I´m assuming that´s the error that you see. Try using libraries that are optimized for the ATtiny. For the OLED display, that might be the libraries that I´m using for my videos, for the RFID chip, I don´t know what libraries are available. Good luck!

    • @jumbo999614
      @jumbo999614 3 หลายเดือนก่อน

      @@upir_upir Thank you for replying.
      #include
      #include
      #include
      #include
      all this libraries cause error. So they're not compatible with ATTiny85 right?

    • @upir_upir
      @upir_upir  3 หลายเดือนก่อน +1

      @jumbo999614 that’s correct, none of those libraries will work. Again, I would start with actually watching the video that you are commenting under, since at least the display part is described there.

  • @Bestcuriosity_1
    @Bestcuriosity_1 2 หลายเดือนก่อน +1

    oled.bitnap ,its one letter mistake in Library.

    • @upir_upir
      @upir_upir  2 หลายเดือนก่อน +1

      In the tiny4oled library?