This part of the code is wrong. if M < 10: hr = "0" + str(M) That's correctly if M < 10: M = "0" + str(M) But, very nice work! Thank you!
@NerdCaveYT2 жыл бұрын
Thanks yes I noticed that updated it on GitHub a while back, will look at putting a note in video through KZbin studio
@muhammedirshaad3 ай бұрын
Can we use the internal RTC from the pico if we plan for the pico to be "always on"?
@NerdCaveYT3 ай бұрын
yes you can, you will then just set it using the RTC from machine
@jdo87806 ай бұрын
When I set the time the time is stuck at ([2000,0,0,0,0,0]} and it's stuck like that even after trying to modify those values. Do you know how to fix this?
@NerdCaveYT5 ай бұрын
I tried researching what it could be but did not find a solution, I know someone else had similar issues but he replaced the IC and it worked. So it is difficult to know if it is code or faulty IC but the code I showed in video is what I used
@jdo87805 ай бұрын
@@NerdCaveYT Hi, turns out it was a faulty IC! I replaced the IC and now it works fine.
@max37349 ай бұрын
Hi, thank you for the tutorial. I have an issue when trying to run my main.py file; "Traceback (most recent call last): File "", line 29, in File "pico_i2c_lcd.py", line 22, in __init__ OSError: [Errno 5] EIO" I'm not sure what's wrong, can I have assistance?
@NerdCaveYT9 ай бұрын
seems like the lcd screen giving problems can you double check the SCL and CLK pin connection
@max37349 ай бұрын
@@NerdCaveYT in the moment I had to connect a female wire to a male to the breadboard, as I didn’t have a female to male wire… could that extra extension cause issues?
@NerdCaveYT9 ай бұрын
it shouldn't be an issue the LCD screens will have pullup resistors and it will give a different error, did you try just getting the screen to work on its own.
@max37349 ай бұрын
@@NerdCaveYT Yes, so I followed your tutorial on just the LCD screen and it works, but I keep running into the same error here.
@NerdCaveYT9 ай бұрын
@@max3734 okay this is very strange if the LCD is working fine when you followed the other tutorial it should not give any problem here. Error 5 indicates a communication problem. For connection problems, check that - all four wires are place: GND, SDA, SCL and Vcc - and the LCD already have pull up. So let's try this, let's change the I2C pins connect the SDA pin to GP6 ( Physical Pin 9) connect the SCL pin to GP7 ( Physical Pin 10) and change the following in your code: i2c = I2C(1, sda=machine.Pin(6), scl=machine.Pin(7), freq=400000)
@Jai.zTechDomain Жыл бұрын
Is this tutorial still ok for me to follow as of 2024?
@NerdCaveYT Жыл бұрын
Yes still relevant
@Jai.zTechDomain Жыл бұрын
@@NerdCaveYT ok cool, is using it with an ssd1306 as simple as changing the libraries, or do I need to modify the code (complete beginner sorry)
@NerdCaveYT Жыл бұрын
Yes, you need the library for the ssd1306, I have made a video on it, then you can display the time on it using the code from the RTC@@Jai.zTechDomain
@Jai.zTechDomain Жыл бұрын
@@NerdCaveYT alright awesome thank you so much!!
@MrBobWareham2 жыл бұрын
I would love to build your clock but with a better display I have a st7735 display, but I am new to Pi Pico any chance of a tutorial on how to use the ST7735 display with it? Thanks
@NerdCaveYT2 жыл бұрын
I don't have one of those displays but usually if you search the display name and micropython you will find a GitHub repository where someone made a library
@duxoxovak Жыл бұрын
Thank you for the video, NerdCave. Reversing the connection so that Receive of one device connects to Send of the other device and vice versa fixed the problem for me. Per the instructions Raspberry Pi Pico GPIO 0 (PIN 1) which is UART0 TX was connecting to HC-05 TXD. And the GPIO 1(PIN 2) which is UART0 RX was connecting to HC-05 RXD (1m 27s and 1m40s from the start of the video). Connecting TX to TX and RX to RX caused the first message to be b'\x00'. Nothing worked after that - toggling the switch to on or off did not produce any text and did not control the LED state. Was fixed once I reversed connected UART0 TX to HC-05 RXD and UART0 RX to HC-05 TXD.
@NerdCaveYT Жыл бұрын
Thank you for the feedback, I usually make simple mistakes in the Fritzing Diagram. It might have been that I had it connected differently then the diagram, I am making sure now to check the diagrams multiple times before using them in a video
@armand99102 жыл бұрын
Good tutorial, thank you! :)
@droneview12752 жыл бұрын
thanks 😁😁
@NerdCaveYT2 жыл бұрын
No problem 😊
@carpiMusic2 жыл бұрын
Hello, do you have any idea how to do it with an SSD1306 screen?
@NerdCaveYT2 жыл бұрын
You want to display the time on the ssd1306?I have done a video on the ssd1306 so basically it is just using this code along with the ssd1306 library to display the time on their
@burnsfamily1616 Жыл бұрын
Will it work with DS3231SN?
@NerdCaveYT Жыл бұрын
Will need to use different library github.com/pangopi/micropython-DS3231-AT24C32
@jachimpetit4702 жыл бұрын
thx help full video
@NerdCaveYT2 жыл бұрын
You're welcome!
@ronen1242 жыл бұрын
✔
@_____I_____ Жыл бұрын
does anyone knows why my date is 165/165/21
@NerdCaveYT Жыл бұрын
have you set the date? can you share your code in discord