Raspberry Pi-LOGO

Raspberry Pi DS3231 Precision RTC Module rau Pico

Raspberry Pi DS3231 Precision RTC Module rau Pico-PRODUCT

Cov ntaub ntawv khoom

Lub Precision RTC Module rau Pico yog lub siab precision real-time moos module tsim los siv nrog Raspberry Pi Pico microcontroller board. Nws suav nrog DS3231 siab precision RTC nti thiab txhawb I2C kev sib txuas lus. Lub module kuj suav nrog
ib qho RTC thaub qab roj teeb qhov uas txhawb nqa CR1220 khawm ntawm tes kom tswj xyuas lub sijhawm kom raug txawm tias lub zog tseem ceeb raug txiav tawm. Lub module nta lub hwj chim taw qhia uas yuav tsum tau enabled los yog disabled los ntawm soldering ib tug 0 resistor ntawm lub jumper. Nws yog
tsim nrog lub taub hau stackable kom yooj yim txuas rau Raspberry Pi Pico

Dab tsi ntawm Board:

  1. DS3231 siab precision RTC nti
  2. I2C tsheb npav rau kev sib txuas lus
  3. RTC thaub qab roj teeb qhov txhawb nqa CR1220 khawm ntawm tes
  4. Qhov taw qhia lub zog (enabled los ntawm soldering ib tug 0 resistor ntawm lub jumper, disabled los ntawm lub neej ntawd)
  5. Raspberry Pi Pico header rau kev txuas yooj yim

Pinout txhais:

Lub pinout ntawm Precision RTC Module rau Pico yog raws li nram no:

Raspberry Pi Pico Code Kev piav qhia
A Ib 2c0
B Ib 2c1
C TIAB SA 20
D P_SDA
1 TIAB SA 0
2 TIAB SA 1
3 GND
4 TIAB SA 2
5 TIAB SA 3
6 TIAB SA 4
7 TIAB SA 5
8 GND
9 TIAB SA 6
10 TIAB SA 7
11 TIAB SA 8
12 TIAB SA 9
13 GND
14 TIAB SA 10
15 TIAB SA 11
16 TIAB SA 12
17 TIAB SA 13
18 GND
19 TIAB SA 14
20 TIAB SA 15

Schematic:

Daim duab schematic ntawm Precision RTC Module rau Pico tuaj yeem ua tau viewed los ntawm nias ntawm no.

Precision RTC Module rau Pico - Cov lus qhia siv khoom

Raspberry Pi Code:

  1. Qhib lub davhlau ya nyob twg ntawm Raspberry Pi.
  2. Download tau thiab unzip cov demo codes rau phau ntawv Pico C / C ++ SDK. Nco ntsoov tias daim ntawv teev npe ntawm SDK yuav txawv rau cov neeg siv sib txawv, yog li koj yuav tsum tau kuaj xyuas cov npe tiag tiag. Feem ntau, nws yuav tsum yog ~/pico/. Siv cov lus txib hauv qab no: wget -P ~/pico https://www.waveshare.com/w/upload/2/26/Pico-rtc-ds3231_code.zip
  3. Nkag mus rau Pico C / C ++ SDK directory: cd ~/pico
  4. Unzip lub downloaded code: unzip Pico-rtc-ds3231_code.zip
  5. Tuav lub pob BOOTSEL ntawm Pico thiab txuas USB interface ntawm Pico rau Raspberry Pi. Ces tso lub khawm.
  6. Sau thiab khiav lub pico-rtc-ds3231 examples siv cov lus txib hauv qab no:
    cd ~/pico/pico-rtc-ds3231_code/c/build/ cmake .. make sudo mount /dev/sda1 /mnt/pico && sudo cp rtc.uf2 /mnt/pico/ && sudo sync && sudo umount /mnt/pico && sleep 2 && sudo minicom -b 115200 -o -D /dev/ttyACM0
  7. Qhib lub davhlau ya nyob twg thiab siv minicom los xyuas lub sensor cov ntaub ntawv.

Python:

  1. Xa mus rau Raspberry Pi cov lus qhia los teeb tsa Micropython firmware rau Pico.
  2. Qhib Thonny IDE.
  3. Luag tus demo code rau IDE thiab khiav nws ntawm Pico.
  4. Nyem lub icon khiav kom ua tiav MicroPython demo codes.

Windows:

Cov lus qhia rau kev siv Precision RTC Module rau Pico nrog Windows tsis muaj nyob rau hauv cov neeg siv phau ntawv. Thov xa mus rau cov ntaub ntawv cov khoom lossis hu rau cov chaw tsim khoom kom muaj kev pab ntxiv.

Lwm tus:

LED teeb ntawm lub module tsis siv los ntawm lub neej ntawd. Yog tias koj xav siv lawv, koj tuaj yeem muab 0R resistor ntawm R8 txoj haujlwm. Koj ua tau view daim duab schematic kom paub meej ntxiv.

Dab tsi ntawm Board

Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG1

  1. TIAB SA 3231
    high precision RTC nti, I2C tsheb npav
  2. RTC thaub qab roj teeb
    txhawb CR1220 khawm ntawm tes
  3. Lub zog ntsuas
    enabled los ntawm soldering ib tug 0Ω resistor ntawm lub jumper, neeg xiam los ntawm lub neej ntawd
  4. Raspberry Pi Pico header
    rau txuas rau Raspberry Pi Pico, stackable tsim

Pinout Txhais

Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG2

Raspberry Pi Code

  1. Qhib lub davhlau ya nyob twg ntawm Raspberry Pi
  2. Download tau thiab unzip cov demo codes rau phau ntawv Pico C / C ++ SDK

Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG3

  1. Tuav lub BOOTSEL khawm ntawm Pico, thiab txuas USB interface ntawm Pico rau Raspberry Pi ces tso lub pob.
  2. Sau thiab khiav lub pico-rtc-ds3231 examples

    Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG4

  3. Qhib lub davhlau ya nyob twg thiab cov neeg siv minicom los xyuas cov ntaub ntawv sensor.

    Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG5

Python:

  1. Xa mus rau Raspberry Pi cov lus qhia los teeb tsa Micropython firmware rau Pico
  2. Qhib Thonny IDE, thiab luag tus demo rau IDE thiab khiav ntawm Pico raws li hauv qab no.

    Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG6
    Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG7

  3. Nyem rau "khiav" icon kom khiav MicroPython demo codes.

    Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG8

Qhov rai

  • Download tau thiab unzip lub demo rau koj lub Windows desktop, xa mus rau Raspberry Pi cov lus qhia los teeb tsa Windows software ib puag ncig chaw.
  • Nias thiab tuav lub pob BOOTSEL ntawm Pico, txuas lub USB ntawm Pico rau lub PC nrog MicroUSB cable. Ntshuam c lossis python program rau Pico kom nws khiav.
  • Siv cov cuab yeej serial rau view qhov chaw nres nkoj virtual ntawm Pico's USB enumeration los xyuas cov ntaub ntawv luam tawm, DTR yuav tsum tau qhib, tus nqi baud yog 115200, raws li qhia hauv daim duab hauv qab no:

    Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG9

Lwm tus

  • Lub teeb LED tsis yog siv los ntawm lub neej ntawd, yog tias koj xav siv nws, koj tuaj yeem siv 0R resistor ntawm R8 txoj haujlwm. Nyem rau view schematic daim duab.
  • Lub INT tus pin ntawm DS3231 tsis siv los ntawm lub neej ntawd. Yog tias koj xav siv nws, koj tuaj yeem ua tus 0R resistor ntawm R5, R6, R7 txoj haujlwm. Nyem rau view schematic daim duab.
    • Solder R5 resistor, txuas INT tus pin rau GP3 tus pin ntawm Pico, txhawm rau txheeb xyuas cov xwm txheej tso tawm ntawm DS3231 lub tswb moos.
    • Solder R6 resistor, txuas INT tus pin rau 3V3_EN tus pin ntawm Pico, kom tua lub zog Pico thaum lub tswb moos DS3231 tso tawm qis qis.
    • Solder R7 resistor, txuas INT tus pin mus rau RUN tus pin ntawm Pico, kom rov pib Pico thaum DS3231 tswb moos outputs qis.

Schematic

Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG10

Raspberry Pi DS3231 Precision RTC Module rau Pico-FIG11

Cov ntaub ntawv / Cov ntaub ntawv

Raspberry Pi DS3231 Precision RTC Module rau Pico [ua pdf] Tus neeg siv phau ntawv
DS3231 Precision RTC Module rau Pico, DS3231, Precision RTC Module rau Pico, Precision RTC Module, RTC Module, Module

Cov ntaub ntawv

Cia ib saib

Koj email chaw nyob yuav tsis raug luam tawm. Cov teb uas yuav tsum tau muaj yog cim *