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!
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
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.
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.
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?
@@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.
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 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
Look on this page www.raspberrypi.com/documentation/microcontrollers/micropython.html You will note that the W version has urequests and upip preinstalled.
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!
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!
Glad it helped
The Pi is just a wonderful tool. Looking forward to more projects 💪🤞😎
This is a great start on a clock project to get time from internet for self setting. Thanks.
what a fun project. i will add a selector switch to switch between modes.
That's called awesome, something for makers. I was waiting for something like this Thanks Gary. 😎🛠
That looks like a fun project for kids to learn / practice binary and BCD.
Hi Gary very nice video as always, thanks for the video top Mark's
cool, might be something cool to integrate into smartwatches
nice project
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
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.
Binary clocks are awesome and so are Binary watches!
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.
Is Speed Test g tests returning or not?
You can also get correct clock from GPS. 🥳
Yes, but utc only. You have to do local time and DST conversions. The world time api handles these issues.
Interesting !
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?
Yes, according to the datasheet, 3.3v on those pins is supported.
@@GaryExplains What about SPI compatibility as the 7219 is not advertised as an SPI device?
Again, the datasheet is our source of information, it says,"The MAX7221 is compatible with SPI™, QSPI™, and MICROWIRE™"
@@GaryExplains That's true, but you are using a MAX7219. The data sheet says that this is not fully compatible with SPI.
@@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.
Tshirt link is dead :(
do u have a list of materials?
You need a Raspberry Pi Pico W and a MAX7219 8x8 LED Matrix like this one tyvm.ly/JzAc5SX
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?
Exactly! It' a classic nerd (in the best sense) project
Where are the speed test g videos...😏
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'
Are you using a Raspberry Pi Pico W? Have you downloaded the updated version of Micropython for the W variant?
@@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
No not Thonny. The last time I looked Thonny didn't have the new version which is specifically for the W.
Look on this page www.raspberrypi.com/documentation/microcontrollers/micropython.html You will note that the W version has urequests and upip preinstalled.
@@GaryExplains i've put that on the raspberry, but what do i use to edit the code?