• 沒有找到結果。

Course Activity

N/A
N/A
Protected

Academic year: 2022

Share "Course Activity"

Copied!
21
0
0

加載中.... (立即查看全文)

全文

(1)

Course Activity

On-off keying

(2)

LED to camera communication

• CamCom

• Intuitive / Visible

• Clear and simple channel

• Easy encoding / low data rate

(3)

Camera

• Raspberry pi

• Frame rate 30fps

• Shutter speed = 1us

• Resolution 1920*1080

(4)

Camera – Rolling Shutter

Global Shutter Rolling Shutter

Pixels exposed SIMULTANEOUSLY

Pixels exposed ROW BY ROW

(5)

How rolling shutter works ?

Signal Time

Global Shutter

1/30 s (1/fps)

Rolling Shutter

Tr (Read-out time)

Varies with camera models Time Gap

(6)
(7)

On-Off keying

• 1 = bright = on

• 0 = dark = off

• 1 second = 30 frames = 30 samples

• Symbol duration = 1/15 second

• Self designed preamble ( e.g. 1/5 second bright

(8)

On-Off keying

Time Intensity

1/15 s

Discard mixed frame, 1~2 frames = 1 bit, 3 frames = 2 bit

(9)

On-Off keying

• Problem : #On != #off, intensity changes

• No synchronization between Tx / Rx

• E.g. Rx = 28 fps, Tx = 30fps

• 30 consecutive ‘1’ s fail

(10)

Manchester coding

• 1 = dark -> bright

• 0 = bright -> dark

• Intensity changes in EVERY symbol

• Provide synchronization

• Symbol duration = 1/15 second

• Self designed preamble ( e.g. 1/5 second bright

(11)

Manchester coding

Time Intensity

1/15 s

Discard mixed frame, 1~2 frames = 1 bit, 3 frames = 2 bit

1 1 0 1 0

(12)

Manchester decoding

Time

Intensity 1 1 0 1 0

D DB BD DB BB BD DD DB BB BD D

Time

Intensity 1 1 0 1 0

DD BB DD BB BB DD DD BB BB DD

(13)

Course Activity

• In-class exercise

• Deadline : Wednesday ( maybe extended )

• Inter/ inner group discussion ok !

• Inter group code exchange FORBIDDEN

• DO NOT SHOW YOUR CODE TO OTHERS EXCEPT YOUR TEAMATE

(14)

Activity #2 : CamCom Manchester

• Tx

• USRP control LED

• Fixed Sampling rate : 200K

• 1 = bright, 0 = dark. Linear scale ( 0.5 = half intensity) Sample MATLAB file create bin file

• https://drive.google.com/file/d/0B_Z- TUMjZ2A8ZDNLM0FMQ0U1TUU/view

• Upload your bin file through

• scp teamN_v#.bin wn@10.5.7.182:~/ook-vlc/

• Password: wnfa2017

(15)

Activity #2 : CamCom Manchester

• Rx

• Raspberry camera

• Fixed 30fps 1920*1080 mp4

• Captured video in

http://mvnl.csie.ntu.edu.tw/~wnfa/wn17fall/

• test.mp4 – sample video for 1kHz cosine wave

• Download the video and decode

• Read video sample code in

https://www.dropbox.com/s/5zx14ozqg408san/OOKRxDemo.m

?dl=0

(16)

Requirement

• Decode 1 byte ( 1 char ) from 1s video

(17)

Submit

• courses.dlc.ntu.edu.tw

• Exercise > OOK

• .zip containing encode.m/ decode.m/ report.pdf

(18)

Activity #2 : Rolling Shutter Manchester

• Tx

• USRP control LED

• Fixed Sampling rate : 200K

• 1 = bright, 0 = dark. Linear scale ( 0.5 = half intensity)

• Sample bin file created by MATLAB

• Sample MATLAB file create bin file

• Upload your bin file to

(19)

Activity #2 : Rolling Shutter Manchester

• Rx

• Raspberry camera

• Fixed 30fps 1920*1080 mp4

• Captured video in

http://mvnl.csie.ntu.edu.tw/~wnfa/wn17fall/

• test.mp4 – sample video for 1kHz cosine wave

• Download the video and decode

• Read video sample code in

https://www.dropbox.com/s/5zx14ozqg408san/OOKRxDemo.m

?dl=0

(20)

Requirement

• Decode 1 byte ( 1 char ) from 1s video

(21)

Submit

• courses.dlc.ntu.edu.tw

• Exercise > Rolling OOK

• .zip containing encode.m/ decode.m/ report.pdf

參考文獻

相關文件

(a) In your group, discuss what impact the social issues in Learning Activity 1 (and any other socials issues you can think of) have on the world, Hong Kong and you.. Choose the

An additional senior teacher post, to be offset by a post in the rank of Certificated Master/Mistress or Assistant Primary School Master/ Mistress as appropriate, is provided

An additional senior teacher post, to be offset by a post in the rank of CM or Assistant Primary School Master/Mistress (APSM) as appropriate, is provided to each primary

An additional senior teacher post, to be offset by a post in the rank of CM or Assistant Primary School Master/Mistress (APSM) as appropriate, is provided to each primary

An additional senior teacher post, to be offset by a post in the rank of Certificated Master/Mistress or Assistant Primary School Master/Mistress as appropriate, is provided to

An additional senior teacher post, to be offset by a post in the rank of APSM, is provided to each primary special school/special school with primary section that operates six or

An additional senior teacher post, to be offset by a post in the rank of APSM, is provided to each primary special school/special school with primary section that operates six or

An additional senior teacher post, to be offset by a post in the rank of CM or APSM as appropriate, is provided to each primary special school/special school with