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

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

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

    All the source files are on GitHub: github.com/upiir/turbo_gauge_attiny85

  • @CDE.Hacker
    @CDE.Hacker 7 หลายเดือนก่อน +19

    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 หลายเดือนก่อน +2

      Thank you for your comment, I do plan to record more videos, stay tuned!

  • @Poult100
    @Poult100 7 หลายเดือนก่อน +3

    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!

  • @Ineedhelpallthetime
    @Ineedhelpallthetime 7 หลายเดือนก่อน +8

    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 หลายเดือนก่อน +1

      Thank you for your nice words! And also good luck with your projects, creating electronic projects is great.

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

    Amazing, thank You very much: this is most effective way of teaching I've ever experienced 🤩

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

      That´s great to hear, thank you for your nice words!

  •  7 หลายเดือนก่อน +4

    Finally a digispark project. Thank you

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

      You are welcome, I´m glad you like it!

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

    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 6 หลายเดือนก่อน +2

    Definitely the best channel when it comes to display

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

      Thank you, I´m glad you like it!

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

    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!

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

    Absolutly stunning, in less than 25 minutes. Crazy.

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

      Thank you, I’m glad you like it! Do you plan to use the attiny85 for some project?

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

      @@upir_upir I keep trying to find a project to do ahah, I will try to create toys for my nephew.

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

    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 หลายเดือนก่อน +1

      Thank you for representing your wishes too

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

      OK, you want it, you should have it :) Expect more videos soon!

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

    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 หลายเดือนก่อน +1

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

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

    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

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

    Love your videos !

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

      Thank you, that´s great!

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

    OMG!! This is all what I need!

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

      That’s great to hear, I’m glad it was helpful!

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

    Obrigado por compartilhar seu conhecimento

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

      Thank you!

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

    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 6 หลายเดือนก่อน +1

      @@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  6 หลายเดือนก่อน +1

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

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

    Nice bro 👍

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

      Thank you!

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

    اشكرك على هذا الشرح
    واضح وجميل

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

      Thank you! I wonder, do you watch the video in english, or do you use automatically translated subtitles?

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

      ⁠@@upir_upir استخدمت الترجمة التلقائية وايضا اعرف بعض الكلمات الانجليزية

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

      @@upir_upir اعرف بعض الكلمات والانجليزيه واستخدمت الترجمة التلقائية للبعض

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

      @@danumbertree2986 Cool! I´m glad it was helpful.

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

    You are magic!

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

      Thank you!

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

    Great tutorial !
    Is it a special version of Arduino ide with this simulator ? Or a special plugin ? Thanks

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

      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.

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

    Awesome video! Now, make a Las Vegas sphere model with your displays😃.

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

      Thank you! Yep, a small version of Las Vegas sphere might be an interesting project..

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

    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 หลายเดือนก่อน +1

    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.

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

    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  5 หลายเดือนก่อน

      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

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

    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 หลายเดือนก่อน +1

      I’m sorry but without a proper punctuation, it’s hard to understand your thought process…

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

    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!

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

    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.

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

    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  3 หลายเดือนก่อน

      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 19 วันที่ผ่านมา +1

    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  17 วันที่ผ่านมา

      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.

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

    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  3 หลายเดือนก่อน

      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 3 หลายเดือนก่อน

      Could be, thans dude@@upir_upir

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

    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.

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

    Should hand molding to the chip not cause static damage?

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

      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 12 วันที่ผ่านมา

      ​yes@@upir_upir

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

    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  5 หลายเดือนก่อน +1

      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 5 หลายเดือนก่อน

      @@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 หลายเดือนก่อน +1

    Do you think this could also work with SH1106 or SSD1309 displays?

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

      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.

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

    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 หลายเดือนก่อน +1

      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 หลายเดือนก่อน +1

      @@upir_upir Interesting. I'll have to research these as well.

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

    Can you "not" gauge_red_a, rather than using gauge_red_b?
    I like your ATtiny85 series.

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

      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.

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

    Would this be possible with attiny13a?

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

      Maybe, but it has only 1kB of flash compared to 8kB on attiny85, so it would definitely be challenging.

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

    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 หลายเดือนก่อน +1

      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  6 หลายเดือนก่อน +1

      @@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 6 หลายเดือนก่อน

      @@upir_upir You are right. I put all array of chars with progmem and it works.

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

    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 หลายเดือนก่อน +1

    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 หลายเดือนก่อน +1

    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!

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

    You talk like a machine gun!!

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

      Is that a good thing or not?