1. Chapter 1 Know More About Smart Home

1.1. What is Smart Home

Smart home uses the home as a platform, adopts integrated wiring technology, network communication technology, security prevention technology, automatic control technology and audio & video technology in the home-life related equipment, and constructs an efficient residential facilities and family schedule management system so as to enhance home security and convenience. It also achieves environmental protection and energy saving living conditions.

1.2. Advantages of Smart Home

Intelligence: Evolve from a static home structure to a home with dynamic intelligence.

Informatization: Provide an all-round information exchange to help families to maintain information communication from the outside.

Humanization: Emphasize the coordination between people and the living environment, and that users can control the indoor living environment as they like.

Energy-saving: Switch off the power completely with just one click, thus saving electricity.

This smart home course focuses on using Micro:bit open source hardware, sensor modules, programming and laser cutting technology. It is designed to let the readers build a house model on their own, understand the characteristics and principles of sensors, learn to program makecode, and use sensors to achieve the intelligent automation of home equipment.

1.3. Steps of Building Smart Home Model

1. Assemble the front and left boards together, as figure 1.1 shows:

../_images/1_1(1).jpg
../_images/1_1(2).jpg
../_images/1_1(3).jpg

2. Assemble the right board, as figure 1.2 shows:

../_images/1_2(1).jpg
../_images/1_2(2).jpg

3. Assemble the behind, as figure 1.3 shows:

../_images/1_3(1).jpg
../_images/1_3(2).jpg

4. Insert the assembled house on all sides on the base board, as figure 1.4 shows:

../_images/1_4(1).jpg
../_images/1_4(2).jpg

5. Assemble the M3 nut in house beam and assemble with M3*12 screw on module, as figure 1.5 shows:

../_images/1_5(1).jpg
../_images/1_5(2).jpg

6. Finally, cover the half-assembled house with the roof, as figure 1.6 shows:

../_images/1_6(1).jpg
../_images/1_6(2).jpg

Note: The assembly of hardware such as sensors is shown in later chapters of this course.

1.4. Learn About Micro:bit Expansion Board

../_images/microbit.png

1.5. Prepare Micro:bit Programming MakeCode: Add Extensions

1. Add a new project in MakeCode.

../_images/microbit_1(1).png

2. Create a name for the project.

../_images/microbit_2(1).png

3. Select extensions in the settings.

../_images/microbit_3(1).png

4. Enter https://github.com/stemhub/pxt-StemhubCity and choose stemhubCity

../_images/microbit_4(1).png

5. Extend stemhub:city and I2C__LCD1602

../_images/microbit_5(1).png