Arduino ATtiny85 OLED Menu

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Do you like video? Please consider buying me coffee, thanks! www.buymeacoff...
    PCBWay - www.pcbway.com...
    Source files: github.com/upi...
    WOKWI sketch: wokwi.com/proj...
    ---------------------------------------------------------------------------------
    Links from the video:
    - ATtiny85 chip: s.click.aliexp...
    - Arduino UNO: s.click.aliexp...
    - Arduino prototyping shield: s.click.aliexp...
    - USB to 5V power cable with crocodile clips: s.click.aliexp...
    - Image2cpp (convert array to image): javl.github.io...
    - Photopea (online graphics editor like Photoshop): www.photopea.com
    - Transparent OLED display: s.click.aliexp...
    - 128x64 SSD1306 OLED Display 1.54": s.click.aliexp...
    - 128x64 SSD1306 OLED Display 0.96": s.click.aliexp...
    - 128x64 SSD1306 OLED Display 2.42": s.click.aliexp...
    - Additional boards URL for attiny85: raw.githubuser...
    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

Комментарии • 64

  • @upir_upir
    @upir_upir  7 месяцев назад +2

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

  • @bizarro_bread
    @bizarro_bread 9 месяцев назад +9

    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  9 месяцев назад +1

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

  • @bimokayoba
    @bimokayoba 9 месяцев назад +9

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

    • @upir_upir
      @upir_upir  9 месяцев назад +1

      You are surely welcome, good luck with your project!

  • @upir_upir
    @upir_upir  9 месяцев назад +9

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

  • @karim1485
    @karim1485 3 месяца назад +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  3 месяца назад

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

  • @macxsi
    @macxsi 4 месяца назад +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  4 месяца назад +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 9 месяцев назад +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  9 месяцев назад

      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 9 месяцев назад

      @@upir_upir ruclips.net/video/qxWzDBUgqhM/видео.html

  • @magolide
    @magolide 9 месяцев назад +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  9 месяцев назад

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

  • @andymouse
    @andymouse 9 месяцев назад +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  9 месяцев назад

      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 9 месяцев назад +1

    Thank you for tutorial and source files :)

    • @upir_upir
      @upir_upir  9 месяцев назад

      You are welcome, and good luck with your projects!

  • @maciejd7823
    @maciejd7823 9 месяцев назад +1

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

    • @upir_upir
      @upir_upir  9 месяцев назад +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 8 месяцев назад +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  8 месяцев назад

      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.

  • @roostertechchan
    @roostertechchan 9 месяцев назад +1

    I think you are THE arduino GUI guru :)

  • @lmapes
    @lmapes 9 месяцев назад +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  9 месяцев назад

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

  • @kunjmon11
    @kunjmon11 9 месяцев назад +1

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

    • @upir_upir
      @upir_upir  9 месяцев назад

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

  • @guillaumep.7206
    @guillaumep.7206 9 месяцев назад +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  9 месяцев назад

      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.

  • @micultimy91
    @micultimy91 9 месяцев назад +1

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

    • @upir_upir
      @upir_upir  9 месяцев назад

      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?

  • @TheMlg556
    @TheMlg556 9 месяцев назад +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  9 месяцев назад +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.

  • @bigmac9712
    @bigmac9712 9 месяцев назад +1

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

    • @upir_upir
      @upir_upir  9 месяцев назад

      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 9 месяцев назад

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

  • @memesedikitreceh
    @memesedikitreceh 7 месяцев назад +3

    Finally I can make small projects 😂❤🎉

    • @upir_upir
      @upir_upir  7 месяцев назад

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

  • @jakyjohnson650
    @jakyjohnson650 9 месяцев назад +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  9 месяцев назад +1

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

  • @NimaJafarlou-mj7oo
    @NimaJafarlou-mj7oo 28 дней назад +1

    Nice!
    can i make this with attiny85 digispark?
    is that code changes?
    or pins connection?

    • @upir_upir
      @upir_upir  28 дней назад

      Yes, you can use it with digispark board. Please see my other tutorial, where I was doing exactly that - ruclips.net/video/8IKBzZKTgD0/видео.html

    • @NimaJafarlou-mj7oo
      @NimaJafarlou-mj7oo 28 дней назад +1

      @@upir_upir ok! I have OLED and esp32 and attiny85. I have 12 options in OLED menu but attiny85 doesn't have enough space. I Wana upload OLED menu code on esp32 with i2c communication between esp32 and attiny85 when I select an option in menu in OLED attiny85 run a function

    • @upir_upir
      @upir_upir  27 дней назад

      Do you have those menu items in PROGMEM? It should be able to fit on attiny85.. or are those just really long string?

    • @NimaJafarlou-mj7oo
      @NimaJafarlou-mj7oo 27 дней назад

      @@upir_upir I'm making a flipper zero but with esp32 and attiny85 and some modules like power bank OLED max98357 mic and more

    • @NimaJafarlou-mj7oo
      @NimaJafarlou-mj7oo 24 дня назад

      @@upir_upir now i wana add select button to attiny85 and add a section for items in menu when i pushed select button it goes to another page like oled menu in arduino uno

  • @Metaconta
    @Metaconta Месяц назад +1

    Lo bueno es tener un display de cuatro o más líneas, no tres.

    • @upir_upir
      @upir_upir  Месяц назад +1

      You can easily update the sketch to show more lines if needed.

    • @Metaconta
      @Metaconta Месяц назад

      @@upir_upir Ok. ;)

  • @rakibahamed9778
    @rakibahamed9778 9 месяцев назад +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  9 месяцев назад

      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 9 месяцев назад

      ​@@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.

  • @Playerpool
    @Playerpool 9 месяцев назад +1

    Bro can you make a video about arduboy ?

    • @upir_upir
      @upir_upir  9 месяцев назад +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.

  • @JarppaGuru
    @JarppaGuru 8 месяцев назад +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  8 месяцев назад

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

  • @jumbo999614
    @jumbo999614 7 месяцев назад +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  7 месяцев назад +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 7 месяцев назад

      @@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  7 месяцев назад +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 5 месяцев назад +1

    oled.bitnap ,its one letter mistake in Library.

    • @upir_upir
      @upir_upir  5 месяцев назад +1

      In the tiny4oled library?