The invention discloses an electronic
brick based on an I2C interface. The electronic
brick comprises a base and component blocks installed on the base in a pluggable mode. The component blocks are configured to different addresses; the base is provided with a
microcontroller and a single-
chip microcomputer for managing the communication data flow between the
microcontroller and the component blocks, each component block comprises a first type component block based on I2C communication, the first type component blocks and the single-
chip microcomputer are configured to be communicated in an I2C communication mode, and the
microcontroller and the single-
chip microcomputer are configured to be communicated in an I2C communication mode. Due to the fact that only two
data lines need to be arranged between the first type component block and the base, connection is easy, plugging is easy, the child's using difficulty is lowered, the playability is improved, the cost is controlled due to thesimple hardware connection requirement, and the good economy is achieved; an I2C
bus can be hooked to multiple
peripheral devices, the expansibility is good, the varieties of
peripheral modules are greatly enlarged, and product upgrading is more convenient.