ARDUINO CLOCK OLED DISPLAY AND ANIMATION - Arduino project

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 มิ.ย. 2024
  • Learn how to build two different clocks. The first clock can adjust the time by using an hours and minutes button. You also learn how to create an animation. The second clock makes it possible to adjust the hours, minutes and seconds by using a menu. You also learn how to use interrupts and debounce for your buttons.
    We also going to replace delay() with millis(), and learn how to detect whether a button hasn't been pressed for a certain period of time.
    I explain the mistakes I've made while creating this project, so you don't have to make them as well.
    The Arduino for beginners tutorials series guides you through the world of Arduino. A video shows you step-by-step how to build the circuit and write the code. The website contains the course material, circuit diagram, Arduino code and shopping list of all the components used in the tutorial.
    ⬇️ Arduino code, circuit diagram and part list: arduino-tutorials.net/project...
    👉 More tutorials and projects on arduino-tutorials.net
    🇳🇱 Deze tutorial is ook in het Nederlands beschikbaar • 🇳🇱 DIGITALE ARDUINO KL...
    CHAPTERS:
    00:00 Introduction
    01:07 Components
    01:28 Project design - part 1
    04:40 Building the circuit
    06:33 Arduino code - delay()
    13:40 Arduino code - millis()
    18:29 Arduino code - animation
    21:29 Arduino code - button debounce
    24:18 Arduino code - interrupts
    28:26 Project design - part 2
    29:59 Arduino code - mode / set
    37:47 Arduino code - interrupts and timeout
    42:48 Conclusion
    COMPONENTS
    🇨🇳 Arduino Uno (clone)
    arduino-tutorials.net/r/KnSgtg
    🇳🇱 Arduino Uno (clone)
    arduino-tutorials.net/r/8237Hd
    🇨🇳 3x breadboard
    arduino-tutorials.net/r/k8rZRv
    🇨🇳 1x breadboard large
    arduino-tutorials.net/r/ZnW9L4
    🇨🇳 Jumper wire male-male
    arduino-tutorials.net/r/pkoGV4
    🇨🇳 128x64 I2C OLED (blue)
    arduino-tutorials.net/r/pI8QsC
    🇳🇱 128x64 I2C OLED (blue)
    arduino-tutorials.net/r/923Hfg
    🇨🇳 128x64 I2C OLED (white)
    arduino-tutorials.net/r/iBVfqI
    🇳🇱 128x64 I2C OLED (white)
    arduino-tutorials.net/r/38HFks
    🇨🇳 128x64 I2C OLED (white)
    arduino-tutorials.net/r/HtqZ8o
    🇨🇳 128x64 I2C OLED (yellow-blue)
    arduino-tutorials.net/r/0GpTIH
    🇳🇱 15x colored tactile switches
    arduino-tutorials.net/r/PU7wZM
    🇳🇱 5x colored tactile switches
    arduino-tutorials.net/r/834jFH
    🇨🇳 50x colored tactile switches
    arduino-tutorials.net/r/TmUMFO
    #arduino #BasOnTech

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

  • @BasonTech
    @BasonTech  4 ปีที่แล้ว

    👉 Don't forget to check arduino-tutorials.net for more Arduino tutorials and projects.
    If you have questions, don't hesitate to ask them in de comments. Remember: There are no stupid questions 😃
    🔔 Want to stay up-to-date with the latest videos? Subscribe to the Bas on Tech channel!

  • @carloscastrocastro6093
    @carloscastrocastro6093 ปีที่แล้ว +1

    saludos desde Chile , gracias por tu aporte , probaré este programa.

  • @furkanbakr4380
    @furkanbakr4380 4 ปีที่แล้ว

    Thank you. Great video.❤

    • @BasonTech
      @BasonTech  4 ปีที่แล้ว

      Glad you enjoyed it! 😃

  • @Thor682510
    @Thor682510 3 ปีที่แล้ว

    Just awesome, thank you.

    • @BasonTech
      @BasonTech  3 ปีที่แล้ว

      Thanks! Great to hear 😃

  • @user-pb5ib3zy7l
    @user-pb5ib3zy7l 6 หลายเดือนก่อน

    Thank you❤
    That's very useful for me🌹🥰

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

      Great to hear! Have fun! 😃

  • @ledc131
    @ledc131 3 ปีที่แล้ว

    Very interesting to learn from here. good for dummy like me.
    Wait for more about Time Menu , Stopwatch ,countdown, set time using push button with RTC module
    Man ..a lot to learn, Thanks.

    • @BasonTech
      @BasonTech  3 ปีที่แล้ว

      Hi Dean, great to hear thanks! 😃

  • @ledc131
    @ledc131 3 ปีที่แล้ว

    Good tutor for beginner. Please make more like this.

    • @BasonTech
      @BasonTech  3 ปีที่แล้ว

      Hi Dean, thanks! I will definitely do when I have more spare time 😃

  • @pablofpv
    @pablofpv 4 ปีที่แล้ว

    Thanks for your time and effort.
    This will really help me ,I have been playing around with a 1306 OLED and u8x8 library .Now I have moved on and want to
    display graphics ,but I struggled to find good examples of the U8g2 library until I came across your channel.
    The u8g2reference page is very comprehensive ,but lacking in any guide.
    Have you, or are you planning to cover viewing other pages with this library and display?

    • @BasonTech
      @BasonTech  4 ปีที่แล้ว

      Hi Pablo, great my video helpend! I've a video in mind which explains U8g2. Unfortunately I'm currently recording the Blender tutorials so it will take a while before I am recording this U8g2 video.

  • @daykoyazlakov9658
    @daykoyazlakov9658 4 ปีที่แล้ว

    Thanks for video

    • @BasonTech
      @BasonTech  4 ปีที่แล้ว

      You're welcome, thanks! 😃

  • @badushashaik8429
    @badushashaik8429 ปีที่แล้ว

    AMAZING WORK THANK SIR

  • @kunalrai3389
    @kunalrai3389 3 ปีที่แล้ว

    Great video, can i add temperature codes in this code by using dht11 sensor

    • @BasonTech
      @BasonTech  3 ปีที่แล้ว

      Thanks! I shouldn't know why this won't be possible 😃

  • @nadirsalim7419
    @nadirsalim7419 4 ปีที่แล้ว

    Looking good. I'm using NodeMCU (12F) and need the U8g2lib library please.

    • @BasonTech
      @BasonTech  4 ปีที่แล้ว

      According to nodemcu.readthedocs.io/en/master/modules/u8g2/ the U8g2 lib should just work

    • @nadirsalim7419
      @nadirsalim7419 4 ปีที่แล้ว

      @@BasonTech It compiles fine for Uno, However, I get "'EIFR' was not declared in this scope
      " error for the NodeMcu. F.Y.I.

    • @BasonTech
      @BasonTech  4 ปีที่แล้ว

      On github.com/adafruit/Adafruit-MCP23017-Arduino-Library/issues/28 I saw that the EIFR register is non existent in ARM micro controllers Did you try to run example code of U8g2?

    • @nadirsalim7419
      @nadirsalim7419 4 ปีที่แล้ว

      @@BasonTech Thats funny; FontUsage demo file gives "FontUsage:493:3: error: 'u8g2' was not declared in this scope
      ". So it seems that I have library problems with the ESP. Thanks for your reply anyway.

    • @HersonBagay
      @HersonBagay 4 ปีที่แล้ว

      @@nadirsalim7419 According to the Atmega 328P datasheets, the EIFR is the External Interrupt Flag Register. The library is definitely built for the AVR MCUs (Arduino).

  • @AnilKumar-ks8wb
    @AnilKumar-ks8wb 2 ปีที่แล้ว

    I want ardino nano 3.0 use for clock

  • @sz72909
    @sz72909 4 ปีที่แล้ว

    Is it an Ardino or an Arduino? thanks.

    • @BasonTech
      @BasonTech  4 ปีที่แล้ว

      If you refer to the pronunciation there is a whole topic / discussion about this at forum.arduino.cc/index.php?topic=7016.0 😃

  • @kornizz5549
    @kornizz5549 3 ปีที่แล้ว

    Links in your description dont work. All of them.

    • @BasonTech
      @BasonTech  3 ปีที่แล้ว

      Hi, I've just checked and here they all seem to work

    • @kornizz5549
      @kornizz5549 3 ปีที่แล้ว

      @@BasonTech oh yes, now its working. Before when I clicked on them I got 'server time out'

  • @daykoyazlakov9658
    @daykoyazlakov9658 4 ปีที่แล้ว

    We made the clock but the time counts slowly. If you know the reason, tell me. Please

    • @BasonTech
      @BasonTech  4 ปีที่แล้ว

      Thats weird! You don't use delay in your code?

    • @overbeckmusic
      @overbeckmusic ปีที่แล้ว

      You just slowed time.........

  • @nadishsawant3595
    @nadishsawant3595 3 ปีที่แล้ว

    Hello sir , i am getting an error while uploading the code

    • @BasonTech
      @BasonTech  3 ปีที่แล้ว

      Hard to help without posting the error 😉

    • @nadishsawant3595
      @nadishsawant3595 3 ปีที่แล้ว

      @@BasonTech Sir ,now it is working perfectly, Thank you very much! This video was very helpful

  • @SparkOutUs
    @SparkOutUs 2 ปีที่แล้ว

    How did any of you learn anything when the whole time the code was on screen it was blurry?

    • @BasonTech
      @BasonTech  2 ปีที่แล้ว

      Hi Nick, it looks like the video quality or your bandwidth was too low to watch the video. I've skipped through and the code was fine to read. Please keep in mind that the video description contains a link to the website where you can view/download the code as well 😃

    • @SparkOutUs
      @SparkOutUs 2 ปีที่แล้ว

      @@BasonTech sorry if i was rude, just fruatrated