Buah prambus Pi-LOGO

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-PRODUCT

Émbaran produk

The Precision RTC Module pikeun Pico mangrupakeun precision tinggi real-time modul jam dirancang pikeun dipaké kalawan dewan mikrokontroler buah prambus Pi Pico. Ieu incorporates chip RTC DS3231 precision tinggi tur ngarojong komunikasi I2C. modul ogé ngawengku
slot batré cadangan RTC nu ngarojong sél tombol CR1220 pikeun ngajaga timekeeping akurat sanajan kakuatan utama dipegatkeun. modul ngabogaan indikator kakuatan nu bisa diaktipkeun atawa ditumpurkeun ku soldering a 0 résistor on jumper nu. Ieu
dirancang ku lulugu stackable pikeun kantétan gampang kana buah prambus Pi Pico

Naon anu aya dina dewan:

  1. DS3231 chip RTC precision tinggi
  2. beus I2C pikeun komunikasi
  3. RTC slot batré cadangan ngarojong CR1220 sél tombol
  4. Indikator kakuatan (diaktipkeun ku soldering résistor 0 dina jumper, ditumpurkeun sacara standar)
  5. Raspberry Pi Pico lulugu pikeun kantétan gampang

Harti Pinout:

Pinout tina Modul Precision RTC pikeun Pico nyaéta kieu:

Buah prambus Pi Pico Code Katerangan
A I2C0
B I2C1
C GP20
D P_SDA
1 GP0
2 GP1
3 GND
4 GP2
5 GP3
6 GP4
7 GP5
8 GND
9 GP6
10 GP7
11 GP8
12 GP9
13 GND
14 GP10
15 GP11
16 GP12
17 GP13
18 GND
19 GP14
20 GP15

Skématik:

The schematic diagram of Precision RTC Module pikeun Pico tiasa viewed ku ngaklik Ieuh.

Precision RTC Module pikeun Pico - Parentah Pamakéan Produk

Kodeu Raspberry Pi:

  1. Buka terminal Raspberry Pi.
  2. Unduh sareng unzip kodeu demo kana diréktori Pico C/C++ SDK. Catet yén diréktori SDK bisa jadi béda pikeun pamaké béda, jadi Anjeun kudu pariksa diréktori nu sabenerna. Sacara umum, sakuduna ~/pico/. Anggo paréntah di handap ieu: wget -P ~/pico https://www.waveshare.com/w/upload/2/26/Pico-rtc-ds3231_code.zip
  3. Arahkeun ka diréktori Pico C/C++ SDK: cd ~/pico
  4. Buka zip kode anu diunduh: unzip Pico-rtc-ds3231_code.zip
  5. Tahan tombol BOOTSEL Pico tur sambungkeun panganteur USB Pico ka buah prambus Pi. Teras leupaskeun tombolna.
  6. Nyusun sareng ngajalankeun pico-rtc-ds3231 examples ngagunakeun paréntah di handap ieu:
    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. Buka terminal sareng nganggo minicom pikeun mariksa inpormasi sénsor.

Python:

  1. Tingal Panungtun Raspberry Pi pikeun nyetél firmware Micropython pikeun Pico.
  2. Buka Thonny IDE.
  3. Séred kodeu demo ka IDE tur ngajalankeun eta on Pico.
  4. Klik ikon jalankeun pikeun ngaéksekusi kode demo MicroPython.

Windows:

Parentah pikeun ngagunakeun Precision RTC Module pikeun Pico kalawan Windows teu disadiakeun dina manual pamaké. Mangga tingal dokuméntasi produk atawa ngahubungan produsén pikeun pitulung salajengna.

Lain:

Lampu LED dina modul henteu dianggo sacara standar. Lamun perlu make eta, anjeun tiasa solder résistor 0R dina posisi R8. Anjeun tiasa view diagram schematic pikeun leuwih rinci.

Naon on Board

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG1

  1. DS3231
    chip RTC precision tinggi, beus I2C
  2. batré cadangan RTC
    ngarojong sél tombol CR1220
  3. Indikator kakuatan
    diaktipkeun ku soldering a résistor 0Ω on jumper nu, ditumpurkeun sacara standar
  4. Raspberry Pi Pico lulugu
    pikeun ngagantelkeun kana buah prambus Pi Pico, desain stackable

Pinout Harti

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG2

Kode buah prambus Pi

  1. Buka terminal Raspberry Pi
  2. Unduh sareng unzip kodeu demo kana diréktori Pico C/C++ SDK

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG3

  1. Tahan tombol BOOTSEL Pico, tur sambungkeun panganteur USB Pico ka buah prambus Pi lajeng leupaskeun tombol.
  2. Nyusun sareng ngajalankeun pico-rtc-ds3231 examples

    Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG4

  3. Buka terminal sareng minicom pangguna pikeun mariksa inpormasi sénsor.

    Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG5

Python:

  1. Tingali kana pituduh Raspberry Pi pikeun nyetél firmware Micropython pikeun Pico
  2. Buka Thonny IDE, sarta sered demo ka IDE tur ngajalankeun on Pico sakumaha dihandap.

    Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG6
    Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG7

  3. Pencét ikon "ngajalankeun" pikeun ngajalankeun kode demo MicroPython.

    Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG8

Windows

  • Unduh sareng unzip demo kana desktop Windows anjeun, tingal pituduh Raspberry Pi pikeun nyetél setélan lingkungan software Windows.
  • Pencét sareng tahan tombol BOOTSEL Pico, sambungkeun USB Pico ka PC nganggo kabel MicroUSB. Impor c atawa program python kana Pico sangkan ngajalankeun.
  • Paké alat serial ka view port serial maya enumeration USB Pico pikeun pariksa informasi print, DTR kudu dibuka, laju baud nyaeta 115200, ditémbongkeun saperti dina gambar di handap ieu:

    Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG9

Lain

  • Lampu LED teu dipaké sacara standar, lamun kudu make eta, anjeun tiasa solder résistor 0R dina posisi R8. Pencét kana view diagram skéma.
  • Pin INT DS3231 henteu dianggo sacara standar. lamun perlu make eta, anjeun tiasa solder résistor 0R on R5, R6, R7 posisi. Pencét kana view diagram skéma.
    • Solder résistor R5, sambungkeun pin INT ka pin GP3 Pico, pikeun ngadeteksi status kaluaran tina jam alarm DS3231.
    • Solder résistor R6, sambungkeun pin INT ka pin 3V3_EN of Pico, pikeun mareuman kakuatan Pico nalika jam alarm DS3231 outputs tingkat low.
    • Solder résistor R7, sambungkeun pin INT ka pin RUN of Pico, pikeun ngareset Pico nalika DS3231 jam alarm outputs tingkat low.

Skematik

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG10

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico-FIG11

Dokumén / Sumberdaya

Buah prambus Pi DS3231 Precision RTC Module pikeun Pico [pdf] Manual pamaké
DS3231 Precision RTC Module pikeun Pico, DS3231, Precision RTC Module pikeun Pico, Precision RTC Module, RTC Module, Module

Rujukan

Ninggalkeun komentar

alamat surélék anjeun moal diterbitkeun. Widang diperlukeun ditandaan *