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
Do you like this video? Please consider buying me a coffee, thank you! www.buymeacoffee.com/upir
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.
That´s great to hear that you were able to solve your problem and get your project running!
OMG with this i can make my project smaller, thank you 😍
You are surely welcome, good luck with your project!
All the source file are on GitHub - github.com/upiir/attiny85_oled_menu
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!
Thank you for such a nice comment, I really appreciate it!
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!
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.
Thank you so much for your videos. My egt gauge is coming along nicely and it's thanks specifically to you!
That’s great to hear, thank you for your nice words. Is the gauge something you could show? I would love to see it!
@@upir_upir ruclips.net/video/qxWzDBUgqhM/видео.html
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
Thank you for your nice comment, I´m glad the video was helpful!
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.
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.
Thank you for tutorial and source files :)
You are welcome, and good luck with your projects!
Bro i would have just uploaded those images one by one. Respect for the work.
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..
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?
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.
I think you are THE arduino GUI guru :)
Thank you!
This is awesome continuation from previous videos. Could you do a video of personalized animated startup screen upon theoretical "vehicle start up"?
Thank you, I’m glad you like it! Could you be more specific of what animation are you looking for? Thank you!
Can you do a video using squareline studio and lvgl. For non touch display with button and rotary 🤗
Yep, lvgl is on my todo list for a while, I need to record a video using it.
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?
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.
Thanks for sharing this tutorial. is it possible to use Nokia displays instead of oled displays?
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?
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?
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.
Very nice!! Is it possible to add some kind of scrolling animation when switching between menu elements?
Thank you. That should be simple for Arduino UNO, but little bit more involving for the attiny chip. Also most likely very slow.
@@upir_upir it would also be interesting how to do this with the uno (;
Finally I can make small projects 😂❤🎉
Cool! What do you plan to use the ATtiny for?
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
Sure, a lot of people are asking about that, I will record a video.
Nice!
can i make this with attiny85 digispark?
is that code changes?
or pins connection?
Yes, you can use it with digispark board. Please see my other tutorial, where I was doing exactly that - ruclips.net/video/8IKBzZKTgD0/видео.html
@@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
Do you have those menu items in PROGMEM? It should be able to fit on attiny85.. or are those just really long string?
@@upir_upir I'm making a flipper zero but with esp32 and attiny85 and some modules like power bank OLED max98357 mic and more
@@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
Lo bueno es tener un display de cuatro o más líneas, no tres.
You can easily update the sketch to show more lines if needed.
@@upir_upir Ok. ;)
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😊😊
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
@@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.
Bro can you make a video about arduboy ?
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.
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
The point of this video is to showcase that you don’t need bigger chip for something simple as menu..
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); }
^~~~
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!
@@upir_upir Thank you for replying.
#include
#include
#include
#include
all this libraries cause error. So they're not compatible with ATTiny85 right?
@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.
oled.bitnap ,its one letter mistake in Library.
In the tiny4oled library?