Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers...

19
Use of Micro Controllers Lesson 4

Transcript of Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers...

Page 1: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Use of Micro ControllersLesson 4

Page 2: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM
Page 3: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

What is a Micro controller

•A microcontroller is a chip designed to perform some operations according to given instructions

Page 4: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

How micro controller works?Workbook activity 4.1

Page 5: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Components of a micro controller

1. CPU – This processes data into information

2. Memory

There are two types

i. Volatile memory – get erased when there is no electricity

ii. Non volatile memory – does not get erased even if there is no electricity

3. System clock – synchronizes all devices

4. Peripheral devices - A peripheral is a part of a microcontroller that interfaces

with the outside world.

Page 6: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Use of Microcontrollers

• Washing machine

• Microwave oven

• Solar sensor light

Page 7: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

There are some micro controller based kits

1. Micro:bit

2. Arduino

3. Raspberry pi

Page 8: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Micro bit

Front view

Page 9: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM
Page 10: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Rear view

Page 11: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM
Page 12: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Arduino

Page 13: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM
Page 14: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM
Page 15: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Few Arduino board types are shown below

Page 16: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Out of the above Arduino boards we use the Arduino Uno board for the activities in the unit

Page 17: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

Other peripherals connected to micro controllers1. Bread board

Page 18: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

• 2. Light emitting Diode (LED)

LED emits light when electricity passes through it.In a diode electricity travels in only one direction

3. Sensors

Page 19: Use of Micro Controllers - Thurstan College · 2020. 4. 7. · Title: Use of Micro Controllers Author: Nalaka Pethiyagoda Created Date: 2/12/2020 3:49:27 PM

i. Passive Infrared Sensor (PIR Sensor)

ii. Ultrasonic sensor