How to Make a Binary Clock Using a Raspberry Pi Pico W

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ย. 2024

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

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

    I wanted to surprise my partner with a 'binary clock kit' for his birthday and have absolutely no idea about this stuff so I had no idea what to get - you made this so simple, even for someone who has absolutely no experience in this area! Thanks!

  • @МаксимГрищенко-н1с
    @МаксимГрищенко-н1с 5 หลายเดือนก่อน

    Your code works great, I was also pleased that the clock continues to keep time on its own after losing the network connection. Thank you!

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

      Glad it helped

  • @ArniesTech
    @ArniesTech 2 ปีที่แล้ว +5

    The Pi is just a wonderful tool. Looking forward to more projects 💪🤞😎

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

    This is a great start on a clock project to get time from internet for self setting. Thanks.

  • @TheUnofficialMaker
    @TheUnofficialMaker 2 ปีที่แล้ว +3

    what a fun project. i will add a selector switch to switch between modes.

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

    That's called awesome, something for makers. I was waiting for something like this Thanks Gary. 😎🛠

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

    That looks like a fun project for kids to learn / practice binary and BCD.

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

    Hi Gary very nice video as always, thanks for the video top Mark's

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

    cool, might be something cool to integrate into smartwatches

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

    nice project

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

    Hello Gary and thank you for a great binary project. I am just getting started in the world of C programing. I am using the Thoony as a program aid and have loaded both "py" files on the pico zero W. I have been able to make the onboard led blink using this method to program. When I try to run the binary sketch on the pie I get errors, see included;
    Traceback (most recent call last):
    File "", line 11, in
    File "/lib/network.py", line 8, in
    ImportError: no module named 'socket'
    My question is, where can I go to get a better understanding of the C programming and running programs on the pi. I have done some arduino work, this is new frontier for me. Thank you, Bill

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

      So .py files are Python files and to use the networking stuff on the Pico W you need a specific version of Micropython for the W with the networking stuff built-in. You can find it on the Raspberry Pi website.

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

    Binary clocks are awesome and so are Binary watches!

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

    Using bits of this for an alarm clock I'm making with my son. I'm using this IP based worldtimeapi like you did. Is there a faster way of converting it to a 12 hr clock without a few if else statements? I'm not sure the way the json data is reported lends itself well to using strftime, or maybe I'm using it wrong.

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

    Is Speed Test g tests returning or not?

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

    You can also get correct clock from GPS. 🥳

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

      Yes, but utc only. You have to do local time and DST conversions. The world time api handles these issues.

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

    Interesting !

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

    As you correctly state, the MAX7219 is a 5V device. The clock, data and chip select signals will be 3.3v. Is this OK?
    Also, the MAX7219 is not a true SPI device, is this OK?

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

      Yes, according to the datasheet, 3.3v on those pins is supported.

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

      @@GaryExplains What about SPI compatibility as the 7219 is not advertised as an SPI device?

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

      Again, the datasheet is our source of information, it says,"The MAX7221 is compatible with SPI™, QSPI™, and MICROWIRE™"

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

      @@GaryExplains That's true, but you are using a MAX7219. The data sheet says that this is not fully compatible with SPI.

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

      ​@@GaryExplainsI read the Max7219 datasheet, but I didn't see anywhere that the device's inputs are 3.3V compatible. In the Electrical Characteristics it is stated that for all inputs the minimum "Logic High Input Voltage VIH" is 3.5 V.
      I tested a circuit with a Raspberry Pico and a Max7219, to be honest the circuit works but, I think only due to the electrical tolerances on the input logic levels of the Max7219.

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

    Tshirt link is dead :(

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

    do u have a list of materials?

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

      You need a Raspberry Pi Pico W and a MAX7219 8x8 LED Matrix like this one tyvm.ly/JzAc5SX

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

    I didn't watch all of the video but explain why you would want a clock that reads binary in the first place...just because you can do it perhaps?

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

      Exactly! It' a classic nerd (in the best sense) project

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

    Where are the speed test g videos...😏

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

    hey Gary, great video, you have inspired me to create something awesome, and have gotten all the way to putting the code onto the raspberry pi i keep on getting this error message pop up in the console:
    Traceback (most recent call last):
    File "", line 94, in
    File "", line 52, in sync_time_with_worldtimeapi_org
    AttributeError: 'NoneType' object has no attribute 'close'

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

      Are you using a Raspberry Pi Pico W? Have you downloaded the updated version of Micropython for the W variant?

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

      @@GaryExplains yes, it is a Pico w, and I have completely redownloaded thonny, but for some reason it still won't work. see attached image for the current settings
      drive.google.com/file/d/1wGCPvh8C9FpZKaxYuWPjKzmwJZcL-9C0/view?usp=sharing

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

      No not Thonny. The last time I looked Thonny didn't have the new version which is specifically for the W.

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

      Look on this page www.raspberrypi.com/documentation/microcontrollers/micropython.html You will note that the W version has urequests and upip preinstalled.

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

      @@GaryExplains i've put that on the raspberry, but what do i use to edit the code?