omarbenhamid / micropython-ds1302-rtc Goto Github PK
View Code? Open in Web Editor NEWDS1302 RTC Clock driver for Micropython
License: MIT License
DS1302 RTC Clock driver for Micropython
License: MIT License
Hello,
thanks for your code.
I try to figure out the wiring, because some pins on my pico are already connected.
In your code we read:
ds = ds1302.DS1302(Pin(5),Pin(18),Pin(19))
Which are pins 5, 18 et 19 ?
5 is GP2 / SPI0-SCK OR GP3/SPI0-Tx OR GP5 ?
18 is gnd OR I2C SDA/SPI-SCK/GP14 OR GP18 ?
19 is I2C SDA/SPI-SCK/GP14 OR I2C SCL/SPI-TX/GP15 OR GP19 ?
I've tried with the following wiring:
Pico ==>>> UTC
GND -> GND
3.3V -> VCC
I2C0-SDA (pin 1) -> DAT
I2C0-SCL (pin 2) -> CLK
GP4 (pin 6) -> RST
with no success.
Thanks for you help.
I have a esp8266 with micropython on and this does not work at all , the date can not be set at all
keep getting [2000, 0, 0, 0, 0, 0, 0] as the date even if I explicitly set the date with ds.date_time([2022, 0, 0, 0, 0, 0, 0])
ds.year() still returns 2000
My Pins config
RTC CONNECTIONS:
DS1302 CLK/SCLK --> D5
DS1302 DAT/IO --> D4
DS1302 RST/CE --> D2
DS1302 VCC --> 3.3v - 5v
DS1302 GND --> GND
ds = DS1302(Pin(5), Pin(4), Pin(2))
ds.start()
ds.date_time() output is [2000, 0, 0, 0, 0, 0, 0]
Could you please upload this to pypi.org so that one can easily install the package from e. g. Thonny? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.