A diode is an semiconductor component that, in general, will pass current in only one direction . Voltage Dropper Zener Diode? Acts as a pnjunction diode but it also has the ability to conduct in the reversebiased direction when a specific breakdown voltage is reached
Trang 2Diode: How it Works
Forward-based(“open door”)
Diode Applications 1
Trang 3Half-Wave Rectifier Diode Applications 2
Full-Wave Bridge Rectifier Diode Applications 3
Trang 4Basic AC-DC Power Supply Diode Applications 4
Voltage Dropper Zener Diode?
Acts as a pn-junction diode but it also has the ability to conduct in the reverse-biased direction when a specific breakdown voltage is reached.
LED
Light-emitting diode Semiconductor Has polarity
Trang 7Connect LED to BS2
LED is on when P0 is high
LED is on when P1 is low
Connect Multiple LEDs to BS2
8 LEDs are connected to BS2 Each I/O/pin P7) is allowed to sink 6.25mA
(P0-7 Segment LEDs
7 Light-emitting diodes in one Display any single-digit number (0–9)
Trang 87 Segment LED Circuit
Trang 9LED Experiments
Basic A and DEarth measurements
Robotics
Others
Lecture 4Button/Switch
Symbol
Switches 1
SPST switches (Single Pole, Single Throw )
Trang 11SP(n)T switches
(n)P(m)T switches
Button Connection 1 (Wrong)
BS2 will get damaged
when P0 is pulled high since the currenVtlimit through pin is violated
I= V
R=
5
0=∞
Trang 12Button Connection 3 (Wrong)
• Button is not pressed P0 is pulledhigh
• Button is pressed P0 is pulledlow
Trang 13• By mistake, P0 is used as a output when the button is pressed
then
Button Connection 1
(Pull up resistor)
• Button is not pressed P0 is pulled high
• Button is pressed P0 is pulled low
• 270Ω) is for protecting I/O pin
• Preferred
Button Connection 2
(Pull down resistor)
• Button is not pressed P0 is pulledlow
Trang 15Basic A and D 2Earth measurements
Robotics
Others
Simple Project
Problem 2: Recently, at a local primary school a young student was left behind
on the school premises at the end of the school day The student wasrescued after his parents’ frantic efforts to locate him Following this incident,the school hired a safety consultant to recommend solutions to preventrecurrence of such incidents The safety consultant has suggested that theschool implement the following solution to keep real-time count ofindividuals on school’s premises
Simple Project -Cont.
Individuals will enter and exit the school from two separate gates A pressuresensitive pad at the entrance gate will register entrance by anindividual whenever it is depressed Another pressure sensitive pad at theexit gate will register exit by an individual whenever it is depressed Amicrocontroller will continuously monitor the two pressure pads You are todevelop a prototype real-time people counting system Use two buttons to mimicthe pressure pads and write a program that will provide real-time people count.What are some of the drawbacks of the above solution? How can this solution befurther improved?
Trang 16Biên dịch: Nhóm 3 _Cơ Điện Tử 3_K7
Trang 18Diode: Nguyên lý hoạt động
Phân cực thuận(“mở cửa)
Ứng dụng 1 của diode
Trang 19Bộ chỉnh lưu nửa chu kì Ứng dụng 2 của diode
Bộ chỉnh lưu toàn chu kì Ứng dụng 3 của diode
Trang 20Nguồn điện AC-DC cơ bản Ứng dụng 4 của diode
Điện áp nhỏ giọt Diode Zener ?
Hoạt động như một diode p-n thông thường nhưng nó có khả năng thực hiện theo hướng ngược lại khi điện áp chia nhỏ cụ thể trên nó đạt đến giá trị cho phép.
LED
+) Diode bức xạ ánh sáng
+) Chất bán dẫn
+) Có phân cực
Trang 22Led hồng ngoại Các loại của led 2
Led nhấp nháy
Led ba màu
Làm thế nào để kết nối led
Trang 23• Yêu cầu 1.5~2.5V và 10 mA
• Để ngăn chặn quá tải sử dụng đện trở(470Ω) )
Kết nối LED với BS2
LED ở trên khi P0 cao
LED ở trên khi P1 thấp
Kết nối nhiều LED tới BS2
8 LED được nối với nhau tới BS2 I/O/gắn P7) được phép chìm 6.25mA
Trang 247 Diode phát xạ ánh sáng trong một Hiển thị bất kỳ số (0–9)
Khác
Bài giảng 4Nút bấm/công tắc
Trang 25Kí hiệu
Công tắc loại 1
Công tắc SPST (đơn cực,ném cực )
Trang 28Kết nối nút bấm tới BS2 (cách 2) (Sai)
P0 được kéo xuống thấp khi các Nút được nhấn
Nhưng P0 không được kết nối với bất cứnơi nào khi nút không bị đè sau đó P0 cóthể lên cao hoặc xuống thấp, do đó đượcgọi là một điều kiện đầu vào nổi
Kết nối nút bấm tới BS2 (cách 3) (Sai)
• Nút bấm không được nhấn, P0được kéo lên cao
• Nút bấm được nhấn, P0 được kéoxuống thấp
Trang 29• Nếu xảy ra lỗi, P0 sẽ được dùng như 1 đầu ra khi nút được ấn, sau đó .
Nhấn nút bấm, P0 sẽ đi lên
Trang 31A và D căn bản
Đo đấtRobotics
Dự án đơn giản –tiếp
Cá nhân sẽ vào và ra khỏi trường bằng 2 cổng riêng biệt.một bộ điện trở đượcđặt ở cổng vào sẽ ghi lại thông tin vào khi bất cứ cá nhân nào đi qua.Một bộ cảmbiến khác đặt ở cổng ra sẽ ghi lại thông tin ra khi bất cứ một cá nhân nào đi qua.Một bộ điều khiển sẽ tiếp tục theo dõi 2 bộ cảm biến này Họ đang phát triểnmột mẫu thử nghiệm đếm thời gian mỗi cá nhân Sử dụng 2 nút để thay cho các
bộ cảm biến và viết 1 chương trình mà sẽ cung cấp thời gian được tính của mỗingười Một số hạn chế của giải pháp nêu trên là gì? Giải pháp này có thể đượccải thiện hơn nữa ?