An automatic gardening device, comprising: a housing, in which a primary cavity (31, 31') and a secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') are formed; a moving module, mounted on the housing, and configured to actuate the automatic gardening device to move; a primary working module, mounted on the housing, and configured to perform a work task; and a control module, comprising a main control board, and configured to control the moving module to actuate the automatic gardening device to move, and control the primary working module to perform the work task, wherein: the main control board is disposed in the primary cavity(31, 31'); the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') is configured to mount a functional module (11, 13, 15, 17) different from the moving module and the primary working module; the automatic gardening device comprises a first interface corresponding to the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') and capable of detachably connecting to a second interface of the functional module to mount the functional module to the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35'); and the housing comprises an opening between the primary and secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') for a lead wire from the main control board to pass through the housing between the primary and secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') and the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') is isolated from the primary cavity (31. 31') in a sealed manner to prevent water vapor, dirt, and the like from entering the primary cavity (31, 31') through the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35'). a housing, in which a primary cavity (31, 31') and a secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') are formed; a moving module, mounted on the housing, and configured to actuate the automatic gardening device to move; a primary working module, mounted on the housing, and configured to perform a work task; and a control module, comprising a main control board, and configured to control the moving module to actuate the automatic gardening device to move, and control the primary working module to perform the work task, wherein: the main control board is disposed in the primary cavity(31, 31'); the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') is configured to mount a functional module (11, 13, 15, 17) different from the moving module and the primary working module; the automatic gardening device comprises a first interface corresponding to the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') and capable of detachably connecting to a second interface of the functional module to mount the functional module to the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35'); and the housing comprises an opening between the primary and secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') for a lead wire from the main control board to pass through the housing between the primary and secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') and the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') is isolated from the primary cavity (31. 31') in a sealed manner to prevent water vapor, dirt, and the like from entering the primary cavity (31, 31') through the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35'). the main control board is disposed in the primary cavity(31, 31'); the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') is configured to mount a functional module (11, 13, 15, 17) different from the moving module and the primary working module; the automatic gardening device comprises a first interface corresponding to the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') and capable of detachably connecting to a second interface of the functional module to mount the functional module to the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35'); and the housing comprises an opening between the primary and secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') for a lead wire from the main control board to pass through the housing between the primary and secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') and the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35') is isolated from the primary cavity (31. 31') in a sealed manner to prevent water vapor, dirt, and the like from entering the primary cavity (31, 31') through the secondary cavity (32, 33, 34, 35. 32', 33', 34', 35').