Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim...
-
Upload
winfred-hudson -
Category
Documents
-
view
215 -
download
0
Transcript of Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim...
![Page 1: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/1.jpg)
Prototyping with PIC Mi-crocontroller
Third day: Communications2009/02/13
Youmin Kim ([email protected])
Digital Media Lab
![Page 2: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/2.jpg)
Serial CommunicationUARTIrDAUSB
Bluetooth RS232 MAX232
![Page 3: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/3.jpg)
MAX232
![Page 4: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/4.jpg)
PIC
LED
OSC
Adaptor780512V5V
MAX232
![Page 5: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/5.jpg)
.Socket-12V Adapter 가 꽂힌다 . .
7805-12v 전압을 5v로 떨어뜨린다 .
.OSC- 클럭을 발생시킨다 .
.PIC-마이크로 컨트롤러 .
.LED-Light Emis-siveDiode.
.MAX232-MAXIM 社의 232Chip
Serial Cable 을 통해PC 로 전송
![Page 6: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/6.jpg)
CASE 1: IPTV Remote
![Page 7: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/7.jpg)
Bluetooth module
PIC #1
PIC #2
![Page 8: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/8.jpg)
CASE 2: PEER (ETRI Wear-able)
Database
ControllerOff-line data managing
Bluetooth Comm.
Viewer (Flash GUI)
Controller
Bluetooth Comm.
WBS uDevices
Viewer (Flash GUI)
Controller
Bluetooth Comm.
Viewer application
Controller
Bluetooth Comm.BT comm.
Apps’database
![Page 9: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/9.jpg)
![Page 10: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/10.jpg)
Ideation: Automatic,
but Digital Lamp
![Page 11: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/11.jpg)
PIC LED
Power
Clock
CDS
MAX232 PC
![Page 12: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/12.jpg)
A Port / ADC Port
oscillator
B Port
C Port
UART
좌측 상단부터 1 번 핀동그란 마크가 있음
Master Clear
![Page 13: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/13.jpg)
Circuit schematic
PIC16F73
CLK
LED
VCC (5V)
VCC (5V)
1
8
9
10
28 (RB7)
20
10K re-sister
350Ωresister
19
CDS
VCC (5V)
2 (AN0)
10K re-sister
MAX232
(RX, RC7)18
(TX, RC6)17PC
RX
TX
![Page 14: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/14.jpg)
Set_adc_channel() 함수로 지정된 ADC 포트의 값을 읽어서 리턴한다 .
ADC 로 설정된 포트 중 어느 곳에서 값을 읽어 올 것인지를 결정
![Page 15: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/15.jpg)
In the PC application, received values (e.g. 100, 123, …)
if received_value < 128:the program shows “Light On!”
else:the program shows “Light Off!”
![Page 16: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/16.jpg)
Prototyping on Universal PCB
&PC application (c#)
![Page 17: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/17.jpg)
How to PC application in c#?
![Page 18: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/18.jpg)
Question?
![Page 19: Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim (ym_kim@icu.ac.kr)ym_kim@icu.ac.kr Digital Media Lab.](https://reader031.fdocument.pub/reader031/viewer/2022032806/56649f0b5503460f94c1eeba/html5/thumbnails/19.jpg)
Assignment 3:Studio project suggestion