1. Introduction
The Keyestudio Smart Home Kit is an educational and DIY (Do-It-Yourself) STEM kit designed around the open-source Micro:bit V2 hardware. This kit allows users to build and program a miniature smart home model, exploring concepts of home automation, environmental sensing, and interactive controls. It supports programming using both graphical (Makecode) and text-based (MicroPython) environments, making it accessible for various skill levels.
The kit includes a variety of sensors and modules to simulate real-world smart home functionalities, such as temperature and humidity monitoring, gas detection, motion sensing, automated window control, and interactive lighting. All detected information can be displayed on an LCD screen and monitored via a smartphone or iPad application.
This manual provides detailed instructions for assembling the kit, understanding its components, programming its functions, and troubleshooting common issues.
2. Components and Packing List
Before starting assembly, please verify that all components listed below are present in your kit. Refer to the image for visual identification.

Image: All components included in the kit.
| Component | Quantity |
|---|---|
| Micro:bit Expansion Board with IO Port | 1 |
| Wooden Board | 7 |
| Acrylic Board | 3 |
| Micro:bit Solar Energy Panel | 1 |
| I2C 1602 LCD Module | 1 |
| Analog Gas Sensor | 1 |
| 6812 RGB Module | 1 |
| Rechargeable Lithium Battery Power Module with Solar and USB Ports | 1 |
| LED Yellow Module | 1 |
| 130 Motor Module | 1 |
| PIR Motion Sensor | 1 |
| Steam Sensor | 1 |
| DHT11 Temperature and Humidity Sensor | 1 |
| USB Cable (1m) | 1 |
| Servo | 2 |
| F5 Blue to Blue LED | 2 |
| Battery Holder | 1 |
| Rocker Switch | 1 |
| Wrench | 1 |
| 3.0*40MM Screwdriver Red-Black | 1 |
| 2.0*40MM Screwdriver Purple-Black | 1 |
| 200mm 2Pin DuPont Wire | 2 |
| 15cm 3Pin F-F DuPont Wire | 4 |
| 20cm 3Pin F-F DuPont Wire | 2 |
| 20cm 4Pin F-F DuPont Wire | 1 |
| 20cm F-F DuPont Wire | 4 |
| M3*45MM Dual-pass Copper Pillar | 4 |
| M1.4*6MM Round-head Self-tapping Screw | 10 |
| M2*12MM Round-head Screw | 5 |
| M3 Nickel-plated Nut | 5 |
| M2*8MM Round-head Screw | 3 |
| M4*8MM Round-head Screw | 18 |
| M3*6MM Round-head Screw | 9 |
| M3*8MM Round-head Screw | 2 |
| M3*10MM Round-head Screw | 9 |
| M4 Nickel-plated Nut | 18 |
| M3 Nickel-plated Nut | 6 |
| M2 Nickel-plated Nut | 7 |
3. Setup and Assembly
Follow these steps to assemble your Keyestudio Smart Home Kit. A detailed tutorial with visual guides is available at: https://fs.keyestudio.com/KS4027
3.1. Wooden House Assembly
Assemble the wooden boards to form the structure of the smart home. Ensure all pieces fit snugly. Use the provided screws and screwdrivers as indicated in the assembly diagram.

Image: Step-by-step assembly diagram for the wooden house.
3.2. Module Installation
Install the various electronic modules onto the designated slots on the wooden house. Pay attention to the orientation and connection points for each sensor and module.
- Micro:bit Board: If your kit (KS4028) does not include a Micro:bit V2 board, you will need to acquire one separately. Insert the Micro:bit V2 board into the Micro:bit Expansion Board with IO Port.
- Sensors: Attach the DHT11 Temperature and Humidity Sensor, Analog Gas Sensor (MQ_2), PIR Motion Sensor, and Steam Sensor to their respective positions.
- Output Modules: Install the 1602 LCD Module, 6812 RGB Module, LED Yellow Module, 130 Motor Module (for the fan), and Servos (for window/door control).
- Solar Panel: Mount the Micro:bit Solar Energy Panel on the roof of the house.
3.3. Wiring
Connect the modules using the provided DuPont wires. Refer to the tutorial link for specific wiring diagrams for each module. Incorrect wiring can damage components.
3.4. Powering the Kit
The kit is powered by a Rechargeable Lithium Battery Power Module. This module can be charged via a Micro USB cable or the Micro:bit Solar Energy Panel. Ensure the power module is correctly connected to the main circuit.

Image: Lithium Battery Power Module with specifications.

Image: Smart Home Kit demonstrating solar and USB charging capabilities.
4. Operating Instructions
The Keyestudio Smart Home Kit is designed for interactive learning and operation through programming. You can program the Micro:bit using Makecode (graphical) or MicroPython (text-based).
4.1. Programming the Micro:bit
The official tutorial provides comprehensive guides for programming. Visit https://fs.keyestudio.com/KS4027 for detailed programming instructions and project examples.
4.1.1. Graphical Programming (Makecode)
Makecode is an intuitive block-based programming environment suitable for beginners. Drag and drop code blocks to create programs for your smart home. The tutorial includes 31 Makecode projects.

Image: Screenshot of the Makecode graphical programming interface.
4.1.2. MicroPython Programming
For more advanced users, MicroPython offers a text-based programming experience. The tutorial includes 27 Python projects.

Image: Screenshot of the MicroPython programming interface.
4.2. Smart Home Features and Projects
The kit supports various smart home functionalities:
- Morse Code Door Opening: Program the Micro:bit to open a door using Morse code input.
- Lattice Expression: Display various expressions or patterns on the Micro:bit's LED matrix.
- Rain Detection and Automated Window Closing: Utilize the steam sensor to detect rain and automatically close a window (controlled by a servo).
- Atmosphere Lamps: Control the 6812 RGB module to create different lighting effects.
- Temperature-Controlled Fan: Program the fan to activate when the temperature (detected by DHT11) exceeds a certain threshold (e.g., 30°C).
- Gas Detection: Monitor the concentration of flammable gases using the Analog Gas Sensor (MQ_2).
- Temperature and Humidity Detection: Display real-time temperature and humidity readings on the 1602 LCD.
- Smart Lights with PIR Motion Sensor: Turn on a yellow LED when motion is detected by the PIR sensor.
- APP Control: Control various functions of the smart home kit remotely via a dedicated Android application.
Video: Demonstration of various smart home kit functionalities including Morse code door opening, lattice expression, rain detection, and atmosphere lamps.

Image: Micro:bit board details, showing buttons for Morse code input.

Image: Smart Home Kit showing a window closing automatically when rain is detected.

Image: Smart Home Kit displaying various atmosphere lamp colors controlled via a smartphone.

Image: Smart Home Kit featuring a fan that activates based on temperature.

Image: Smart Home Kit demonstrating gas detection functionality.

Image: Smart Home Kit showing temperature and humidity readings on the LCD display.

Image: Smart Home Kit illustrating smart lights controlled by a PIR motion sensor.

Image: Smartphone displaying the APP control interface for the Smart Home Kit.
5. Maintenance
To ensure the longevity and proper functioning of your Keyestudio Smart Home Kit, follow these maintenance guidelines:
- Keep Dry: Avoid exposing the kit to moisture or liquids, as this can damage electronic components.
- Clean Gently: Use a soft, dry cloth to clean the wooden parts and electronic modules. Do not use harsh chemicals or abrasive materials.
- Handle with Care: Electronic components are delicate. Avoid dropping the kit or applying excessive force during assembly or operation.
- Store Properly: When not in use, store the kit in a cool, dry place away from direct sunlight and extreme temperatures.
- Battery Care: If using the rechargeable lithium battery, ensure it is charged regularly and not left completely discharged for extended periods.
6. Troubleshooting
If you encounter issues with your Smart Home Kit, try the following troubleshooting steps:
- No Power:
- Check if the battery is charged or if the USB cable is properly connected.
- Ensure the power switch on the Rechargeable Lithium Battery Power Module is in the 'ON' position. - Modules Not Responding:
- Verify all wire connections are secure and correctly matched according to the wiring diagrams in the tutorial.
- Ensure the Micro:bit board is properly inserted into the expansion board. - Code Not Working:
- Double-check your code for any syntax errors or logical flaws. Use the debugger in Makecode or MicroPython if available.
- Ensure the correct program is uploaded to the Micro:bit. - LCD Display Issues:
- Check the I2C connections for the 1602 LCD module.
- Ensure the contrast potentiometer on the LCD module is adjusted correctly. - Sensor Readings Incorrect:
- Confirm the sensor is correctly wired and placed in an appropriate environment for accurate readings (e.g., DHT11 not in direct sunlight). - APP Connection Issues:
- Ensure Bluetooth is enabled on your smartphone/iPad and the Micro:bit.
- Make sure the Micro:bit is running a program that supports Bluetooth communication with the app.
For more specific troubleshooting or complex issues, refer to the detailed tutorial at https://fs.keyestudio.com/KS4027 or contact Keyestudio support.
7. Specifications
| Attribute | Value |
|---|---|
| Brand Name | keyestudio |
| Product Number | KS4027 (With Micro:bit V2), KS4028 (Without Micro:bit V2) |
| Application | Micro:bit DIY STEM Kit |
| Type | Logic ICs |
| Condition | New |
| Supply Voltage | DC 3V |
| Operating Temperature | -10℃ to 40℃ |
| Support Programming | Python & Makecode |
| APP Compatibility | Android |
| Python Projects Included | 27 projects |
| Makecode Projects Included | 31 projects |
| Package Type | TQFP |
| Product Dimensions (L*W*H) | 248mm * 160mm * 58mm |
| Product Weight | 804g |
| Attribute | Value |
|---|---|
| Charging Port | Micro USB, HP2.0MM for solar panels |
| Input Voltage (Solar Panel) | 4.4-6V |
| Constant Voltage Charging | 4.15-4.24V |
| Max Charging Current | 800mA |
| Output Port | 3.P-2.54mm Pins |
| Output Voltage | 6.6V |
| Max Output Current | 800mA |
| Batteries | Single-cell Lithium Battery |
| Environmental Attribute | ROHS |

Image: Product packaging showing dimensions and weight.
8. Warranty and Support
Keyestudio products are designed for educational and DIY purposes. For technical support, detailed tutorials, and project guides, please visit the official Keyestudio website or refer to the provided tutorial link: https://fs.keyestudio.com/KS4027.
For any issues related to missing parts or manufacturing defects, please contact the seller directly with your order information. Keep your purchase records for warranty claims.
9. User Tips
- Micro:bit Availability: If your kit is model KS4028 (without Micro:bit V2), ensure you purchase a genuine BBC Micro:bit V2 board from a reputable supplier to ensure compatibility and full functionality.
- Start Simple: Begin with the basic Makecode projects to familiarize yourself with the programming environment and the kit's functionalities before moving on to more complex Python projects.
- Experiment Safely: Always double-check your wiring before powering on the kit to prevent short circuits or damage to components.
- Community Resources: Explore online Micro:bit communities and forums for additional project ideas, troubleshooting tips, and support from other users.





