Difference between revisions of "Pico-RTC-Hat"

From SB-Components Wiki

 
(6 intermediate revisions by the same user not shown)
Line 23: Line 23:
 
</div>
 
</div>
 
   <div class="large-4 column">
 
   <div class="large-4 column">
[[File:Pico_RTC.png]]
+
[[File:Pico_RTC.png|thumb|left|alt=Pico RTC HAT| Buy it From : ''[https://shop.sb-components.co.uk/products/pico-rtc-hat Click Here]'']]
 
   </div>
 
   </div>
 
</div>
 
</div>
  
 
== Pinout ==
 
== Pinout ==
[[File:Pico_RTC_Pinout.png]]
+
<table class="wikitable">
 +
<tr><td>[[File:Pico_RTC_Pinout.png]]</td>
 +
<td>
 +
<table class="wikitable">
 +
<tr> <th>PICO RTC HAT </th> <th> PICO Pins </th></tr>
 +
<tr> <td> VCC </td> <td> 3V3 </td></tr>
 +
<tr> <td> GND </td> <td> GND </td></tr>
 +
<tr> <td> RTC SDA </td> <td> GP6 </td></tr>
 +
<tr> <td> RTC SCL </td> <td> GP7 </td></tr>
 +
</table>
 +
</td>
 +
</table>
  
 
== Installation ==
 
== Installation ==
Line 34: Line 45:
 
<li> Stack Raspberry Pi Pico on female header of Pico RTC HAT.. </li>
 
<li> Stack Raspberry Pi Pico on female header of Pico RTC HAT.. </li>
 
<li> Connect USB cable on Raspberry Pi Pico USB port. </li>
 
<li> Connect USB cable on Raspberry Pi Pico USB port. </li>
<li> NNow use example code "RTC-HAT.py" from Pico RTC HAT's github repository in any micropython supported ide (preferred thonny ide)<li>
+
<li> Choose interpreter as MicroPython (Raspberry Pi pico). </li>
 +
[[File:Thonny-interpreter.PNG|600px]]
 +
<li> Now use example code "RTC-HAT.py" from Pico RTC HAT's github repository in thonny ide.<li>
 
Source code : https://github.com/sbcshop/Pico-RTC-HAT
 
Source code : https://github.com/sbcshop/Pico-RTC-HAT
 
<li> Copy and paste or open code in thonny ide.</li>
 
<li> Copy and paste or open code in thonny ide.</li>
 
[[File:Pico_rtc_thonny.PNG|600px]]
 
[[File:Pico_rtc_thonny.PNG|600px]]
<li> Choose interpreter as MicroPython (Raspberry Pi pico). </li>
 
[[File:Thonny-interpreter.PNG|600px]]
 
 
<li> Click on green play button to run example of Pico RTC HAT. </li>
 
<li> Click on green play button to run example of Pico RTC HAT. </li>
 
[[File:Thonny_play.PNG]]
 
[[File:Thonny_play.PNG]]
 
<li> To change date, time or week, change variables of below line:  </li>
 
<li> To change date, time or week, change variables of below line:  </li>
 +
<syntaxhighlight inline>
 
CurrentTime = b'\x00\x00\x01\x06\x16\x04\x21' #00:00:01 friday 16/04/2021
 
CurrentTime = b'\x00\x00\x01\x06\x16\x04\x21' #00:00:01 friday 16/04/2021
 +
</syntaxhighlight>
  
 
== Resources ==
 
== Resources ==

Latest revision as of 06:48, 11 June 2021

Pico RTC HAT

Pico RTC HAT is a Real-Time clock expansion module with the powerful IC DS3231, backup battery holder, operating voltage 3.3 V, and Fast (400kHz) I2C Interface that measures the time which aligns the time of the device with the “Real-Time”. It is developed with the standard Raspberry Pi Pico header that supports the Raspberry Pi Pico series to enhance its efficiency at a low cost.

Features

  • Accuracy ±2ppm from 0°C to +40°C.
  • Accuracy ±3.5ppm from -40°C to +85°C.
  • Battery Backup Input for Continuous Timekeeping.
  • Operating Temperature Ranges Commercial: 0°C to +70°C Industrial: -40°C to +85°C.
  • Real-Time Clock Counts Seconds, Minutes, Hours, Day, Date, Month, and Year with Leap Year Compensation Valid Up to 2100.
  • Programmable Square-Wave Output.
  • Digital Temp Sensor Output: ±3°C Accuracy.

  • Specifications

  • Operating Voltage - 3.3 V
  • Inbuilt IC - DS3231
  • Battery - CR1220 coin cell
  • I2C Interface - 400 Khz
  • Backup Battery Voltage - 2.3V~5.5V
  • Pico RTC HAT
    Buy it From : Click Here

    Pinout

    Pico RTC Pinout.png
    PICO RTC HAT PICO Pins
    VCC 3V3
    GND GND
    RTC SDA GP6
    RTC SCL GP7

    Installation

    MicroPython

  • Stack Raspberry Pi Pico on female header of Pico RTC HAT..
  • Connect USB cable on Raspberry Pi Pico USB port.
  • Choose interpreter as MicroPython (Raspberry Pi pico).
  • Thonny-interpreter.PNG

  • Now use example code "RTC-HAT.py" from Pico RTC HAT's github repository in thonny ide.
  • Source code : https://github.com/sbcshop/Pico-RTC-HAT
  • Copy and paste or open code in thonny ide.
  • Pico rtc thonny.PNG

  • Click on green play button to run example of Pico RTC HAT.
  • Thonny play.PNG

  • To change date, time or week, change variables of below line:
  • CurrentTime = b'\x00\x00\x01\x06\x16\x04\x21' #00:00:01 friday 16/04/2021

    Resources