Skip to main content

Octopus Real-time Clock(EF04005)


OCTOPUS Real-time Clock is a clock module which can achieve counting for year, month, day, hour by using the DS1307 clock chip.

ELECFREAKS Octopus Real-Time Clock


The chip works in a low voltage equipped with 56-byte non-volatile RAM clock calendar It has a complete BCD code real-time clock chip, address and data are passed through two-wire bidirectional serial bus, providing information such as seconds, minutes, hours, etc., and can automatically adjust the number of days per month. It can automatically set the time of the leap year. The chip has built-in power checking circuit that can check the power lost condition and switch the battery.


ConnectorTwo-wire serial interface (IIC Communication)
OutputProgrammable SQW
DetectionAutomatic power failure detection and switching circuit
Power dissipationIn the standby battery mode, the power consumption is less than 500nA
Working temperature-40℃ ~80℃
Power input3v-5v
Connector typeDigital
Pins Definition1-GND 2-VCC 3-SCK 4-SDA 5-RST

Quick to Start

Materials used and the connection diagram

Connect to IIC port as the picture shows SCL pin needs to connect to SDA pin.

Take sensor:bit for example

Add Package

Click "Advanced"in the choice of the MakeCode to find more choices.

Click "Extensions", search "iot"in the dialog box and then download it.

Program as the picture shows

Set the number of second as "10" on start to show the second each minute.


You can also download the links below:


The current number of second is shown on the micro:bit each minute.

Relevant Cases

Technique Files