Тёмный

My First ATTINY85 Project! 

upir
Подписаться 54 тыс.
Просмотров 76 тыс.
50% 1

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
--------------------------------------------------------------------------------------------------------

Опубликовано:

 

12 окт 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 106   
@upir_upir
@upir_upir 7 месяцев назад
All the source files are on GitHub: github.com/upiir/turbo_gauge_attiny85
@CDE.Hacker
@CDE.Hacker 7 месяцев назад
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.
@upir_upir
@upir_upir 7 месяцев назад
Thank you for your comment, I do plan to record more videos, stay tuned!
@Ineedhelpallthetime
@Ineedhelpallthetime 7 месяцев назад
Your honestly one of my biggest inspiration’s for wanting to get into electronics 😊 Your videos are amazing please keep up the good work 👏
@upir_upir
@upir_upir 7 месяцев назад
Thank you for your nice words! And also good luck with your projects, creating electronic projects is great.
@Poult100
@Poult100 7 месяцев назад
A really good example of getting the most out of the least! Thank you. 👍
@upir_upir
@upir_upir 7 месяцев назад
Thank you for your nice words, I’m glad you like it!
@andymouse
@andymouse 7 месяцев назад
Great little chip, perfect for flashing the LED's and building your first thermometer !...cheers.
@upir_upir
@upir_upir 7 месяцев назад
And now you can flash an LED and build a thermometer with an OLED display. Thank you for your comment!
@trr1984
@trr1984 2 месяца назад
Great video! I like in particular the explanations. And your use of WOKWI. Great video!!!
@upir_upir
@upir_upir 2 месяца назад
Thank you very much for your nice comment! I´m glad you enjoyed the video.
@ITSALLELECTRONICS
@ITSALLELECTRONICS 7 месяцев назад
Definitely the best channel when it comes to display
@upir_upir
@upir_upir 7 месяцев назад
Thank you, I´m glad you like it!
7 месяцев назад
Finally a digispark project. Thank you
@upir_upir
@upir_upir 7 месяцев назад
You are welcome, I´m glad you like it!
@Etrehumain123
@Etrehumain123 2 месяца назад
Absolutly stunning, in less than 25 minutes. Crazy.
@upir_upir
@upir_upir 2 месяца назад
Thank you, I’m glad you like it! Do you plan to use the attiny85 for some project?
@Etrehumain123
@Etrehumain123 2 месяца назад
@@upir_upir I keep trying to find a project to do ahah, I will try to create toys for my nephew.
@mikek4icy752
@mikek4icy752 7 месяцев назад
Thanks for the great tutorial. Yes please, more ATTiny85! Also please consider an example of programming a standalone Tiny with an Arduino.
@memesedikitreceh
@memesedikitreceh 7 месяцев назад
Thank you for representing your wishes too
@upir_upir
@upir_upir 7 месяцев назад
OK, you want it, you should have it :) Expect more videos soon!
@neilnagel9857
@neilnagel9857 7 месяцев назад
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.
@upir_upir
@upir_upir 7 месяцев назад
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..
@logsnaath
@logsnaath 5 часов назад
Very good tutorial. Thanks for introducing to different tools and approach. Can I use ATTiny85 with LoRa module for a simple on/off controll?
@mini44mi1
@mini44mi1 7 месяцев назад
You're my hero, I'm almost starting a project with attiny
@upir_upir
@upir_upir 7 месяцев назад
That’s great, what kind of project do you have in mind?
@mini44mi1
@mini44mi1 7 месяцев назад
@@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
@milanpetrik7419
@milanpetrik7419 Месяц назад
Amazing, thank You very much: this is most effective way of teaching I've ever experienced 🤩
@upir_upir
@upir_upir Месяц назад
That´s great to hear, thank you for your nice words!
@schartzphilippe9603
@schartzphilippe9603 5 месяцев назад
Love your videos !
@upir_upir
@upir_upir 4 месяца назад
Thank you, that´s great!
@lucianofigueiredo7701
@lucianofigueiredo7701 5 месяцев назад
Obrigado por compartilhar seu conhecimento
@upir_upir
@upir_upir 5 месяцев назад
Thank you!
@hieptech9158
@hieptech9158 7 месяцев назад
OMG!! This is all what I need!
@upir_upir
@upir_upir 7 месяцев назад
That’s great to hear, I’m glad it was helpful!
@bimokayoba
@bimokayoba 7 месяцев назад
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 🥰😍
@upir_upir
@upir_upir 7 месяцев назад
Thank you, I´m glad you like it! I don´t understand the second sentence - could you clarify that please?
@bimokayoba
@bimokayoba 7 месяцев назад
@@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?"
@upir_upir
@upir_upir 7 месяцев назад
@@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.
@ShawankumarParida
@ShawankumarParida 7 месяцев назад
Awesome video! Now, make a Las Vegas sphere model with your displays😃.
@upir_upir
@upir_upir 7 месяцев назад
Thank you! Yep, a small version of Las Vegas sphere might be an interesting project..
@danumbertree2986
@danumbertree2986 2 месяца назад
اشكرك على هذا الشرح واضح وجميل
@upir_upir
@upir_upir 2 месяца назад
Thank you! I wonder, do you watch the video in english, or do you use automatically translated subtitles?
@danumbertree2986
@danumbertree2986 2 месяца назад
⁠@@upir_upir استخدمت الترجمة التلقائية وايضا اعرف بعض الكلمات الانجليزية
@danumbertree2986
@danumbertree2986 2 месяца назад
@@upir_upir اعرف بعض الكلمات والانجليزيه واستخدمت الترجمة التلقائية للبعض
@upir_upir
@upir_upir 2 месяца назад
@@danumbertree2986 Cool! I´m glad it was helpful.
@JarppaGuru
@JarppaGuru 4 месяца назад
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
@upir_upir
@upir_upir 4 месяца назад
Sure, chosen chip depends on the use case. It’s great that you have a lot to choose from.
@eldontyrellcorp
@eldontyrellcorp 7 месяцев назад
Great tutorial ! Is it a special version of Arduino ide with this simulator ? Or a special plugin ? Thanks
@upir_upir
@upir_upir 7 месяцев назад
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.
@temyraverdana6421
@temyraverdana6421 7 месяцев назад
You are magic!
@upir_upir
@upir_upir 7 месяцев назад
Thank you!
@nyfaz
@nyfaz 7 месяцев назад
I even searched for a small library for 18B20, 1306 and ATTiny :)
@upir_upir
@upir_upir 7 месяцев назад
That´s great to hear that it was helpful!
@Playerpool
@Playerpool 7 месяцев назад
Nice bro 👍
@upir_upir
@upir_upir 7 месяцев назад
Thank you!
@JarppaGuru
@JarppaGuru 4 месяца назад
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
@upir_upir
@upir_upir 4 месяца назад
I’m sorry but without a proper punctuation, it’s hard to understand your thought process…
@codingfun63
@codingfun63 4 месяца назад
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 .
@upir_upir
@upir_upir 4 месяца назад
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?
@etmax1
@etmax1 Месяц назад
I wrote a boot-loader for 68HC11 that fit in < 128bytes of memory, I wonder how come the Arduino one is 16 time larger?
@upir_upir
@upir_upir Месяц назад
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.
@cezaryoziemczuk6422
@cezaryoziemczuk6422 6 месяцев назад
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.
@upir_upir
@upir_upir 6 месяцев назад
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?
@cezaryoziemczuk6422
@cezaryoziemczuk6422 5 месяцев назад
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
@TBL_stevennelson
@TBL_stevennelson 7 месяцев назад
If you could output it to work as a volume control with output for another board that is a music player
@upir_upir
@upir_upir 7 месяцев назад
That might be possible. Is that a project that you are working on?
@JarppaGuru
@JarppaGuru 4 месяца назад
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
@upir_upir
@upir_upir 4 месяца назад
The background image is in progmem memory so your example would not work.
@jairogarcia1499
@jairogarcia1499 4 месяца назад
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
@upir_upir
@upir_upir 4 месяца назад
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?
@jairogarcia1499
@jairogarcia1499 4 месяца назад
Could be, thans dude@@upir_upir
@yupingliao4078
@yupingliao4078 Месяц назад
Should hand molding to the chip not cause static damage?
@upir_upir
@upir_upir Месяц назад
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.
@yupingliao4078
@yupingliao4078 Месяц назад
​yes@@upir_upir
@83nnyt30
@83nnyt30 6 месяцев назад
Is there a particular rationale why you chose a 10k potentiometer? One could as well use a 5k or even a 1k unit?
@upir_upir
@upir_upir 6 месяцев назад
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 :/
@83nnyt30
@83nnyt30 6 месяцев назад
@@upir_upir I have some 1k and 5k potentiometer spares all linear and single-turn. I will try these. Interesting channel, I subscribed.
@83nnyt30
@83nnyt30 5 месяцев назад
Do you think this could also work with SH1106 or SSD1309 displays?
@upir_upir
@upir_upir 5 месяцев назад
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.
@devilvortex1
@devilvortex1 7 месяцев назад
There is a very light library for oled. oledi2c from rinky-dink electronics.
@upir_upir
@upir_upir 7 месяцев назад
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?
@devilvortex1
@devilvortex1 7 месяцев назад
@@upir_upir I do not know. Try.
@thisnthat3530
@thisnthat3530 7 месяцев назад
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.
@upir_upir
@upir_upir 7 месяцев назад
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.
@thisnthat3530
@thisnthat3530 7 месяцев назад
@@upir_upir Interesting. I'll have to research these as well.
@devilvortex1
@devilvortex1 7 месяцев назад
Do you know what could be the cause of the display freezing?
@upir_upir
@upir_upir 7 месяцев назад
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.
@devilvortex1
@devilvortex1 7 месяцев назад
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.
@upir_upir
@upir_upir 7 месяцев назад
@@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.
@devilvortex1
@devilvortex1 7 месяцев назад
@@upir_upir You are right. I put all array of chars with progmem and it works.
@fredrikbergquist5734
@fredrikbergquist5734 Месяц назад
Would this be possible with attiny13a?
@upir_upir
@upir_upir Месяц назад
Maybe, but it has only 1kB of flash compared to 8kB on attiny85, so it would definitely be challenging.
@bob-ny6kn
@bob-ny6kn 7 месяцев назад
Can you "not" gauge_red_a, rather than using gauge_red_b? I like your ATtiny85 series.
@upir_upir
@upir_upir 7 месяцев назад
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.
@stevrgrs
@stevrgrs 2 месяца назад
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 ?
@upir_upir
@upir_upir 2 месяца назад
There is a link to the WOKWI simulation, perhaps you can try your idea and see if it works?
@nin1ten1do
@nin1ten1do 7 месяцев назад
hmmm one more pin can push TX out :)) i saee where use :)
@upir_upir
@upir_upir 7 месяцев назад
You mean where you will use it for your own project?
@JarppaGuru
@JarppaGuru 4 месяца назад
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
@upir_upir
@upir_upir 4 месяца назад
I’m glad this video inspired you to write all the comments!
@GWorxOz
@GWorxOz 17 дней назад
Cannot understand a word.
@upir_upir
@upir_upir 13 дней назад
I´m sorry to hear that, could you perhaps use the playback speed to slow it down or use subtitles instead?
@user-bp5kj4ej8g
@user-bp5kj4ej8g 4 месяца назад
You talk like a machine gun!!
@upir_upir
@upir_upir 4 месяца назад
Is that a good thing or not?
Далее
I need your help..
00:28
Просмотров 4,7 млн
САМЫЕ ТУПЫЕ МАЖОРЫ С ПАТРИКОВ
33:19
I found PERFECT display
51:32
Просмотров 205 тыс.
Try these 16 Brilliant ESP32 projects!!!
11:18
Просмотров 528 тыс.
Arduino Tutorial - ATtiny85 explained in 4 minutes!
4:28
Best ESP32 board with AMOLED display - LilyGo T4 S3
13:35
DIY haptic input knob: BLDC motor + round LCD
2:11
Просмотров 2,1 млн
Programming a 3D Printer to DESTROY Mobile Games
15:00
Просмотров 161 тыс.
I need your help..
00:28
Просмотров 4,7 млн