Building a Smart Home system - Internet of Things - ثاني ثانوي

Lesson 1: Building a Smart Home system

In this unit, you will learn about the basic proper�es of an Internet of Things

Autodesk Tinkercad Circuits

Lesson 1: Building a Smart Home system

Arduino Microcontrollers

Table 3.1: Specifica�ons of Arduino models

Compared with personal computers or laptops,

Lesson 1: Building a Smart Home system

Arduino UNO R3

Lesson 1: Building a Smart Home system

Some Examples of External Sensors for Microcontrollers

Lesson 1: Building a Smart Home system

Build a Smart Home System

Lesson 1: Building a Smart Home system

Now, let's begin a new circuit design in Tinkercad.

Lesson 1: Building a Smart Home system

Add a component to the design by clicking on a component

Lesson 1: Building a Smart Home system

Find the components that you will need for this project,

Lesson 1: Building a Smart Home system

Now, you will add two resistors to the breadboard.

Lesson 1: Building a Smart Home system

Continue by adding two LEDs to the breadboard and two PIR Sensors.

Lesson 1: Building a Smart Home system

Next, wire the Arduino UNO R3 to the breadboard by connecting the

Lesson 1: Building a Smart Home system

Then, connect the LED resistors to the Arduino digital pins 6 and 7.

Lesson 1: Building a Smart Home system

Finally, to complete the connections, you need to connect PIR "Room 1" and PIR "Room 2"

Lesson 1: Building a Smart Home system

Code Blocks

Tinkercad's visual code blocks are useful for creating programs

Lesson 1: Building a Smart Home system

Let's take a look at some important blocks that you will use for this project:

Lesson 1: Building a Smart Home system

Let's Take a Look at the Code.

Lesson 1: Building a Smart Home system

Start the simulation by pressing the Start Simula�on bu�on to test your program.

Lesson 1: Building a Smart Home system

Fill the empty boxes with the missing component names.

Lesson 1: Building a Smart Home system

a. Match the items in the first row with those in the second.

What is the difference between digital and analog pins?

Lesson 1: Building a Smart Home system

Search the Internet forthe main differences between the Arduino Uno and the Arduino Nano series. For what types of applications is each series used? Present your findings below.

What isthe advantage of programming an Arduino microcontroller with the Codeblocks language,insteadoftextbasedcodeinTinkercadCircuits?Canyoumentionadisadvantage?

Extend the Smart Home System to monitor 3 rooms.

Change the Smart Home System so that it has 2 LEDs (1 red and 1 green) and 1 PIR Sensor. When the PIR sensor detects motion, only the green LED will be turned on, and when it does not detect