Raspberry Pi Pico Tutorial - DS1302 Real-time Clock

  Рет қаралды 13,246

NerdCave

NerdCave

Күн бұрын

Пікірлер: 44
@OmidAtaollahi
@OmidAtaollahi Жыл бұрын
thank you, great tutorial.
@NerdCaveYT
@NerdCaveYT Жыл бұрын
Glad it was helpful!
@adrianpuskas6996
@adrianpuskas6996 2 жыл бұрын
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!
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
Thanks yes I noticed that updated it on GitHub a while back, will look at putting a note in video through KZbin studio
@muhammedirshaad
@muhammedirshaad 3 ай бұрын
Can we use the internal RTC from the pico if we plan for the pico to be "always on"?
@NerdCaveYT
@NerdCaveYT 3 ай бұрын
yes you can, you will then just set it using the RTC from machine
@jdo8780
@jdo8780 6 ай бұрын
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?
@NerdCaveYT
@NerdCaveYT 5 ай бұрын
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
@jdo8780
@jdo8780 5 ай бұрын
@@NerdCaveYT Hi, turns out it was a faulty IC! I replaced the IC and now it works fine.
@max3734
@max3734 9 ай бұрын
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?
@NerdCaveYT
@NerdCaveYT 9 ай бұрын
seems like the lcd screen giving problems can you double check the SCL and CLK pin connection
@max3734
@max3734 9 ай бұрын
@@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?
@NerdCaveYT
@NerdCaveYT 9 ай бұрын
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.
@max3734
@max3734 9 ай бұрын
@@NerdCaveYT Yes, so I followed your tutorial on just the LCD screen and it works, but I keep running into the same error here.
@NerdCaveYT
@NerdCaveYT 9 ай бұрын
@@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
@Jai.zTechDomain Жыл бұрын
Is this tutorial still ok for me to follow as of 2024?
@NerdCaveYT
@NerdCaveYT Жыл бұрын
Yes still relevant
@Jai.zTechDomain
@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
@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
@Jai.zTechDomain Жыл бұрын
@@NerdCaveYT alright awesome thank you so much!!
@MrBobWareham
@MrBobWareham 2 жыл бұрын
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
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
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
@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
@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
@armand9910
@armand9910 2 жыл бұрын
Good tutorial, thank you! :)
@droneview1275
@droneview1275 2 жыл бұрын
thanks 😁😁
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
No problem 😊
@carpiMusic
@carpiMusic 2 жыл бұрын
Hello, do you have any idea how to do it with an SSD1306 screen?
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
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
@burnsfamily1616 Жыл бұрын
Will it work with DS3231SN?
@NerdCaveYT
@NerdCaveYT Жыл бұрын
Will need to use different library github.com/pangopi/micropython-DS3231-AT24C32
@jachimpetit470
@jachimpetit470 2 жыл бұрын
thx help full video
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
You're welcome!
@ronen124
@ronen124 2 жыл бұрын
@_____I_____
@_____I_____ Жыл бұрын
does anyone knows why my date is 165/165/21
@NerdCaveYT
@NerdCaveYT Жыл бұрын
have you set the date? can you share your code in discord
@creekworks
@creekworks Жыл бұрын
You ever figure this out?
@_____I_____
@_____I_____ Жыл бұрын
Ok i fixed it some of the code is in comment
@carelhaasbroek1575
@carelhaasbroek1575 2 жыл бұрын
i can hear the afrikaans in your voice.
@NerdCaveYT
@NerdCaveYT 2 жыл бұрын
kon jy ooit die engels hoor :)
@elektron2kim666
@elektron2kim666 Жыл бұрын
(Dutch)
Raspberry Pi Pico W: WiFi  Controlled Robot
17:56
ExplainingComputers
Рет қаралды 96 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
How to Add More Test Functions to the Mega Tester
6:20
Gadget Sideload
Рет қаралды 2
How to use Timers on the RPi PICO
17:05
Making Stuff with Chris DeHut
Рет қаралды 18 М.
Raspberry Pi Real Time Clock | Raspberry Pi Field Computer
11:09
Off-Grid Ham Radio OH8STN
Рет қаралды 18 М.
Makerverse Supercapacitor Real-Time Clock | Raspberry Pi Pico Guide
9:04
Core Electronics
Рет қаралды 4,6 М.
DS3231 Real Time Clock with Raspberry PI Pico and Badger2040
9:04
Dr Jon EA Ltd
Рет қаралды 4,2 М.
Turning a Raspberry Pi Pico into a GPU!
16:42
element14 presents
Рет қаралды 131 М.
Pi Pico + KMK = the perfect combo for Custom Keyboards
7:41
Jan Lunge
Рет қаралды 86 М.
Real Time Clock Script for Raspberry Pi
8:00
KM4ACK
Рет қаралды 25 М.
Hacking my garage door with the Raspberry Pi Pico W
11:50
Jeff Geerling
Рет қаралды 347 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН