030 - MicroPython TechNotes: DS3231 RTC

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 เม.ย. 2021
  • In this video, we will learn how to the DS3231 RTC module with ESP32 using MicroPython programming language.
    For more details, visit my blog post at:
    techtotinker.com/2021/04/21/0...
    OR watch the whole playlist:
    • 000 - MicroPython Tech...
    Please do Like, Comment, Share, and Subscribe.
    Thank you.
    - George Bantique | tech.to.tinker@gmail.com
    #TechToTinker
    #MicroPython #ESP32 #GorillaCell
    #MicroPythonTutorials
    ---
    MicroPython Tutorials
    How to use DS3231 in MicroPython
    How to use RTC in MicroPython
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Thank you for your code and explanation, I have been able create a standalone sun Tracking program with continuous azimuth and elevation readout on oled, my next phase will be to add servo motors to the Pico so I can track the sun with a small solar panel

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

    Traceback (most recent call last):
    File "", line 6, in
    File "ds3231.py", line 5
    IndentationError: unexpected indent
    this error is shown

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

    Interesting tutorial, thanks. However, you dont seem to mention the LCD display in the bill of materials. Did I miss something?

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

    Very good video series. Please, add the ethernet module with micropython.

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

      @AvilaGTZ, I don't have ethernet module but why you need the ethernet if you have wifi?

  • @Tolya421.
    @Tolya421. 3 ปีที่แล้ว

    Класс! Очень помог, спасибо!

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

      @Анатолий Нестеров, Рада что вам понравилось. Спасибо

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

    So you are using same pins for the Screen as you are using for the DS3231 RTC ? Good to know you can do that. i plan to have a DS3231, and SD Card and BME280, all using I2C. Can they all use the same pins?

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

      I2C protocol can share a communication bus provided that every I2C device has unique I2C address.

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

    Great video again :-)
    Just one question, where did you download the rotary_irq module you use in your example #2 ?

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

      @Frank Vergote, you may follow that from here: th-cam.com/video/hAU23t7IkLM/w-d-xo.html. Thanks.

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

      @@TechToTinker I mean the micropython driver library rotary_irq that is used in example #2. There is no link in your blogpost for that.

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

      @Frank Vergote, the library you are looking can be found in the link in video description of that video. th-cam.com/video/hAU23t7IkLM/w-d-xo.html
      1. Follow the link to youtube.
      2. Check and click the link in video description which brings you to the companion blog post where you can get the rotary library.

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

      @@TechToTinker I did all that and got to your blogpost. In example #2 you use the library rotary_irq to handle the rotary encoder. However there is no link in your blogpost to this external library. Can you please provide the link.

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

      ok, found it in that other video. But it would be helpfull if you add the link to the encoder library also in this blogpost. Thanks.

  • @Tolya421.
    @Tolya421. 2 ปีที่แล้ว

    Скажите пожалуиста какая функция устанавливает на часы системное время компьютера

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

      Check the Example # 1, there is a commented section at the bottom part. You should be interested in 2.
      # 2. Set the current time
      # ds.set_time(YYYY, MM, DD, HH, mm, ss, WD, YD)
      # ds.set_time(2021, 04, 20, 08, 30, 00, 02, 00)

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

    Please help me. After the start of DS3231_exemple#1.py
    the following errors occur: ImportError: can't import name SoftI2C and ImportError: no module named 'ds3231'. For an answer I would be very grateful

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

      Have you follow the instruction in the video?

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

      @@TechToTinker Yes, have done, but my english is not so good.
      I have tried with Thonny and VS code with same result. As I understand it, it is because of the path, although DS3231.py and DS3231_exemple#1.py are in one folder.

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

      MicroPython is case sensitive hence, DS3231.py is different from ds3231.py.
      The file ds3231.py should be saved in Micropython root directory. Copy that from #3 in the Source Code section.

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

      Thank you very much. It has finally worked

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

      @@iRobot22 great. Thanks for letting me know. Cheers.