19
Prototyping with PIC Microcontroller Third day: Communications 2009/02/13 Youmin Kim ([email protected] ) Digital Media Lab

Prototyping with PIC Microcontroller

  • Upload
    tacey

  • View
    66

  • Download
    13

Embed Size (px)

DESCRIPTION

Prototyping with PIC Microcontroller. Third day: Communications 2009/02/13 Youmin Kim ( [email protected] ) Digital Media Lab. Serial Communication UART IrDA USB Bluetooth RS232 MAX232. MAX232. PIC. LED. 5V. 12V. 7805. Adaptor. MAX232. OSC. Socket-12V Adapter 가 꽂힌다. - PowerPoint PPT Presentation

Citation preview

Page 1: Prototyping with PIC Microcontroller

Prototyping with PIC Mi-crocontroller

Third day: Communications2009/02/13

Youmin Kim ([email protected])

Digital Media Lab

Page 2: Prototyping with PIC Microcontroller

Serial CommunicationUARTIrDAUSB

Bluetooth RS232 MAX232

Page 3: Prototyping with PIC Microcontroller

MAX232

Page 4: Prototyping with PIC Microcontroller

PIC

LED

OSC

Adaptor780512V5V

MAX232

Page 5: Prototyping with PIC Microcontroller

.Socket-12V Adapter 가 꽂힌다 . .7805-12v 전압을 5v

로 떨어뜨린다 .

.OSC- 클럭을 발생시킨다 .

.PIC-마이크로 컨트롤러 .

.LED-Light Emis-siveDiode.

.MAX232-MAXIM 社의 232Chip

Serial Cable 을 통해PC 로 전송

Page 6: Prototyping with PIC Microcontroller

CASE 1: IPTV Remote

Page 7: Prototyping with PIC Microcontroller

Bluetooth module

PIC #1

PIC #2

Page 8: Prototyping with PIC Microcontroller

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
Page 10: Prototyping with PIC Microcontroller

Ideation: Automatic,

but Digital Lamp

Page 11: Prototyping with PIC Microcontroller

PIC LED

Power

Clock

CDS

MAX232 PC

Page 12: Prototyping with PIC Microcontroller

A Port / ADC Port

oscillator

B Port

C Port

UART

좌측 상단부터 1 번 핀동그란 마크가 있음

Master Clear

Page 13: Prototyping with PIC Microcontroller

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)17

PCRX

TX

Page 14: Prototyping with PIC Microcontroller

Set_adc_channel() 함수로 지정된 ADC 포트의 값을 읽어서 리턴한다 .

ADC 로 설정된 포트 중 어느 곳에서 값을 읽어 올 것인지를 결정

Page 15: Prototyping with PIC Microcontroller

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

Prototyping on Universal PCB

&PC application (c#)

Page 17: Prototyping with PIC Microcontroller

How to PC application in c#?

Page 18: Prototyping with PIC Microcontroller

Question?

Page 19: Prototyping with PIC Microcontroller

Assignment 3:Studio project suggestion