My First ATTINY85 Project!
ฝัง
- เผยแพร่เมื่อ 12 ต.ค. 2023
- PCBWay - www.pcbway.com/setinvite.aspx...
SOURCE files: github.com/upiir/turbo_gauge_...
WOKWI project: wokwi.com/projects/3784748841...
Same project with Arduino UNO: • Turbo pressure gauge w...
------------------------------------------------------------------------------------------
In this project, I will show you how to create a turbo gauge indicator using SSD1306 128x64px OLED display together with Arduino ATtiny85 chip.
------------------------------------------------------------------------------------------
Links from the video:
Attiny85 Digispark board: s.click.aliexpress.com/e/_DC6...
SSD1306xled library: github.com/tinusaur/ssd1306xled
Digistump drivers: github.com/digistump/Digistum...
Additional boards json file: digistump.com/package_digistum...
128x64 SSD1306 OLED Display 1.54": s.click.aliexpress.com/e/_DCY...
Colorful breadboards: s.click.aliexpress.com/e/_DmQ...
Potentiometer 10K: s.click.aliexpress.com/e/_DkU...
Colorful knobs: s.click.aliexpress.com/e/_DlO...
Image2cpp (convert array to image): javl.github.io/image2cpp/
Photopea (online graphics editor like Photoshop): www.photopea.com/
Related videos with Arduino UNO and 128x64 OLED screen:
Arduino + OLED displays: • Arduino + OLED Displays
------------------------------------------------------------------------------------------
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 #diy
--------------------------------------------------------------------------------------------------------
All the source files are on GitHub: github.com/upiir/turbo_gauge_attiny85
Definitely, please more ATTiny85 projects. I been using ATTiny85 chips for LED control and in my main project. Using these displays could open up a lot of new ideas.
Thank you for your comment, I do plan to record more videos, stay tuned!
A really good example of getting the most out of the least!
Thank you. 👍
Thank you for your nice words, I’m glad you like it!
Your honestly one of my biggest inspiration’s for wanting to get into electronics 😊 Your videos are amazing please keep up the good work 👏
Thank you for your nice words! And also good luck with your projects, creating electronic projects is great.
Amazing, thank You very much: this is most effective way of teaching I've ever experienced 🤩
That´s great to hear, thank you for your nice words!
Finally a digispark project. Thank you
You are welcome, I´m glad you like it!
Great video! I like in particular the explanations. And your use of WOKWI. Great video!!!
Thank you very much for your nice comment! I´m glad you enjoyed the video.
Definitely the best channel when it comes to display
Thank you, I´m glad you like it!
Great little chip, perfect for flashing the LED's and building your first thermometer !...cheers.
And now you can flash an LED and build a thermometer with an OLED display. Thank you for your comment!
Absolutly stunning, in less than 25 minutes. Crazy.
Thank you, I’m glad you like it! Do you plan to use the attiny85 for some project?
@@upir_upir I keep trying to find a project to do ahah, I will try to create toys for my nephew.
Thanks for the great tutorial. Yes please, more ATTiny85! Also please consider an example of programming a standalone Tiny with an Arduino.
Thank you for representing your wishes too
OK, you want it, you should have it :) Expect more videos soon!
Thanks for this video. I have tried to use the attiny85 for small OLED projects but would always run into low memory issues. Now with your video I can make them work without resorting to a controller with more memory. I love the attiny85 bare chip and would like to you use that instead of the module. Really like your videos.
Thank you for your comment, that´s great to hear! Good luck with your projects and please feel free to share your creations. Also, creating a project with just the bare chip without the board is on my to-do list for a next video..
You're my hero, I'm almost starting a project with attiny
That’s great, what kind of project do you have in mind?
@@upir_upir My first project with attiny will monitor the movement in the room with a pir sensor(am312) if someone enters the room and it is dark, the LED strip is supposed to light up, if it is day and brightness it is supposed to do nothing. Simple small design
Love your videos !
Thank you, that´s great!
OMG!! This is all what I need!
That’s great to hear, I’m glad it was helpful!
Obrigado por compartilhar seu conhecimento
Thank you!
Finally you used ATtiny85, i was waiting a tutorial from you ♥, keep going and thanks for your efforts ♥♥
Please do a tutorial how to use multiple leds and controll them with a rotor by using one pin for all LEDs 🥰😍
Thank you, I´m glad you like it! I don´t understand the second sentence - could you clarify that please?
@@upir_upir I mean "Could you please create a tutorial on how to control multiple LEDs using a rotary component (like a potentiometer) and have all LEDs connected to a single pin on the ATtiny85 microcontroller?"
@@bimokayobaOK, I see. Yes, that should be possible. I have similar project in progress for a regular Arduino UNO, but I´m sure I can get it work on the ATTINY as well. With individually addressable LEDs, you need one or two wires for LEDs, and two for rotary encoder, so it should still fit.
Nice bro 👍
Thank you!
اشكرك على هذا الشرح
واضح وجميل
Thank you! I wonder, do you watch the video in english, or do you use automatically translated subtitles?
@@upir_upir استخدمت الترجمة التلقائية وايضا اعرف بعض الكلمات الانجليزية
@@upir_upir اعرف بعض الكلمات والانجليزيه واستخدمت الترجمة التلقائية للبعض
@@danumbertree2986 Cool! I´m glad it was helpful.
You are magic!
Thank you!
Great tutorial !
Is it a special version of Arduino ide with this simulator ? Or a special plugin ? Thanks
The WOKWI is a free online Arduino emulator running in the browser, no need to install anything. I use it for many of my projects, please feel free to watch them for more details. Once you have the sketch running, you still need to copy the code to standard Arduino IDE to upload this to the board.
Awesome video! Now, make a Las Vegas sphere model with your displays😃.
Thank you! Yep, a small version of Las Vegas sphere might be an interesting project..
If you could output it to work as a volume control with output for another board that is a music player
That might be possible. Is that a project that you are working on?
18:03 there it is basically it not matter if make bar bigger. basically you OR back ground to fill.
same as b01010101|b11111111 make white b01010101|b00000000 make black but keep backgroundimage.
and bcoz you have background image allready in memory you read BG from memory from that line OR it what you want change and write to display. depend ofc it that image data what is written to display and you change it and display driver take it and draw or is that your initial static image that you can use to OR lol
make these pixels white but keep background or make these all black but keep if there background white pixels. yes its that easy xD
The background image is in progmem memory so your example would not work.
I’m in constant search for nice potentiometer-KNOBS and I like the one you use in your project here. Could you by any chance let me know where I can buy these? 😊
Oh, sorry. I just found the link.
That´s cool, it´s nice to meet someone else who also loves potentiometer knobs. Feel free to check my other videos, I have a lot of different types and they all look cool. Do you have it for some specific project?
Hey! Nice to hear from you. Yes, I have a specific project. I work for a Music-Venue in Austria and I build little LED-dimmers with displays. They are used to illuminate stairs which lead to the stage. I allready had inernational artists taking pictures of it. :)
@@upir_upir
7:14 we can OR things you need keep on screen ofc that background pixels need be on memory. even with out use extra memory can change those "ticks" same time fill slider lol it just math and tell what pixel need be what eva color. like its not be black if there is backround image xD
I’m sorry but without a proper punctuation, it’s hard to understand your thought process…
I even searched for a small library for 18B20, 1306 and ATTiny :)
That´s great to hear that it was helpful!
22:45 yes better use chip with more pins. its not matter if use surface mount component. its small LOL. ofc its cost more "bit" but can make what you want todo. control many things lol
Sure, chosen chip depends on the use case. It’s great that you have a lot to choose from.
how do you connect the digispark attiny85 to windows 10? having nothing but trouble with drivers ,im using uno to program it instead but would like to use the usb on the digispark .
There are many different drivers, I´m using the ones from Adafruit and it works without any problems under Windows 10. I have tried installing others, but many of them were simple refused to install because of missing certificates.. What kind of problems do you have?
I wrote a boot-loader for 68HC11 that fit in < 128bytes of memory, I wonder how come the Arduino one is 16 time larger?
I don’t know, but maybe you can write smaller bootloader? I’m sure there are many people out there that would appreciate that effort.
I'm working on a STM32 project, and... How can I impleement this on this microcontroller? I use a SPI OLED ST7735s and, the library that I use is st7735 for stm32... How I can now implement u8glib in this case?. Thanks a lot
I don´t have any experience with using the u8g2 library with STM32, but a quick google search found a GitHub repo named "Example of usage u8g2 graphic library with STM32 MCU". Perhaps that could be useful?
Could be, thans dude@@upir_upir
There is a very light library for oled. oledi2c from rinky-dink electronics.
Thank you for the tip, I wasn´t aware of that library. However, I don´t see the ATtiny85 listed as supported chips, do you know if it should be working with it?
@@upir_upir I do not know. Try.
Should hand molding to the chip not cause static damage?
It can, you should probably ground yourself just to be safe. That said, I have destroyed this chip in many different ways, but static electricity was not one of them.
yes@@upir_upir
Is there a particular rationale why you chose a 10k potentiometer? One could as well use a 5k or even a 1k unit?
No perfect reason other than it´s a commonly available value that is in the "suitable" range. You can go with 1K, 5K, 20K, or even 50K, and it will work the same. Actually, everything will work as long as it´s not extremely low or extremely high resistance value. More important option is to make sure it´s linear and not exponential range. I have recently ordered a few slide potentiometers and sometimes, this property is not listed, and to my surprise, they were all exponential :/
@@upir_upir I have some 1k and 5k potentiometer spares all linear and single-turn. I will try these.
Interesting channel, I subscribed.
Do you think this could also work with SH1106 or SSD1309 displays?
It will work for sure with SSD1309 - this chip is almost identical to SSD1306. I´m not sure about the SH1106, that chip is slightly different, and my guess is that it will not work without modifications to the code.
It's a pity none of these types of displays implement a read function for the onboard memory. Having one would make them so much better with memory constrained microcontrollers.
Apparently there is a chip that allows you to do that- the SH1106. Very similar to SSD1306, but with this bonus feature. There is an article on Hackaday where someone use it to draw graphs with ATtiny85. I plan to explore this more in my future videos.
@@upir_upir Interesting. I'll have to research these as well.
Can you "not" gauge_red_a, rather than using gauge_red_b?
I like your ATtiny85 series.
That’s an interesting idea. Yep, I think that should be possible. Thank you for your comment, I do plan to record more ATtiny85 videos soon.
Would this be possible with attiny13a?
Maybe, but it has only 1kB of flash compared to 8kB on attiny85, so it would definitely be challenging.
Do you know what could be the cause of the display freezing?
Is it this particular sketch, or your own? It could be related to simply being out of memory, but it could also be dozens of other reasons.
My own sketch. The sketch use only 50%. Some issue with char *. It's the first video on my channel. Adding more menus cause a crash.
@@devilvortex1Not all variables are counted when calculating the memory usage, so if your project freeze when you add more menu items, it still might be related to memory problems. If you want to check if this is a hardware problem, you can run your sketch on WOKWI and see how it behaves there.
@@upir_upir You are right. I put all array of chars with progmem and it works.
Call me stupid but why couldn’t you just do more white pixels where the outline was in the other channel? It might be slightly longer to process but it can’t be that much more can it ?
There is a link to the WOKWI simulation, perhaps you can try your idea and see if it works?
hmmm one more pin can push TX out :)) i saee where use :)
You mean where you will use it for your own project?
8:24 this is thing never should happen. engineers not now backward compatibility. same command should work from version 0.0.1 to 12.1.1 and if new things come they would be new commands or extra parameters. NOT change everything new so old not work
I’m glad this video inspired you to write all the comments!
You talk like a machine gun!!
Is that a good thing or not?