kidsbits blocks coding I2C 3231 clock module is fully compatible with kidsbits control board and Lego building blocks.
You can easily connect it to kidsbits control board for communication using an RJ11 cable without worrying about wrong connection and damage.
The kidsbits DS3231 module is a low-cost, extremely accurate I2C real-time clock (RTC) with an integrated temperature-compensated crystal oscillator (TCXO) and crystal.
A real-time clock (RTC) is a computer clock (most often in the form of an integrated circuit) that keeps track of the current time.
It integrated with a battery input, which can maintain accurate timekeeping when power off. The integrated crystal resonator ensures the accuracy of clock. So this RTC solution should be worth to try.
The DS3231 is available in both commercial and industrial temperature ranges and is available in a 16-pin 300 mil SO package.
For easy use, we provide you with the detailed Mixly code below to test the module.
2. Technical Parameters
- Interface: EASY plug
- Operating voltage: DC 5V
- Support I2C protocol
- Communication interface: I2C bus interface, the maximum transmission speed is 400KHz (when the working voltage is 5V)
- Clock accuracy: 0-40℃, accuracy 2ppm, annual error of about 1 minute.
3. Wiring Diagram
4. Import kidsbits library
Begin with the Mixly blocks coding, you should first import the corresponding kidsbits library for those sensor modules.
Connect the control board to your computer using a USB cable.
Then open the Mixly blocks software 0.998, set the board to UNO R3, select your correct COM port. On the upper right corner you can switch the language.
After that, click Import, import the keyes-kidsbits library. Shown below.
If import custom library successfully, you should see the sensor module library shown below.
Click on the special module block of keyes_kidsbits, you can directly use the corresponding module. Shown below.
5. Test Code
Open the code folder we provided, you are able to directly open or drag the code to Mixly window.
You can click the Code to check the C language.
6. Test Result
Hook it up and upload the code success, open the monitor and set the baud rate to 9600.
The monitor window will show the date and time, and start to run. You are able to set the starting time in the code.