iV-CAM

Page 1

Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

1

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾ÊÕ This product or portions thereof is manufactured under license from Carnegie Mellon University. Copyright Carnegie Mellon University, 2000. All rights reserved.

¤Ø³ÊÁºÑµ·Ô ҧ෤¹Ô¤·ÕÊè Òí ¤Ñ­ 㪠âÁ´ÙšŠͧ·Ø¡·ÔÈ·Ò§«ÕÁÍÊ (Omnivision CMOS camera) ÃØ ¹ OV6620 (http://www.ovt.com/ omnicmoss.htm) l 㪠äÁâ¤Ã¤Í¹â·ÃÅàÅÍà SX28AC ¤ÇÒÁàÃçÇÊ٧㹡ÒèѴ¡ÒÃÊÑ­­Ò³ÀҾ໠¹¢ ÍÁÙÅ͹ءÃÁ à¾×èÍãË äÁâ¤Ã ¤Í¹â·ÃÅàÅÍà ¢¹Ò´àÅç¡ÊÒÁÒö·íÒ§Ò¹¡ÑºÊÑ­­Ò³ËÃ×ÍÃÙ»ÀÒ¾ä´ l µÔ´µ ÍẺ͹ءÃÁ·Ñ§é ã¹ÃдѺ·Õ·á Õ ÍÅ áÅеÒÁÁҵðҹ RS-232 ÊÒÁÒöàª×Íè Áµ ͡Ѻ¤ÍÁ¾ÔÇàµÍà ¼Ò ¹¾Íà µÍ ¹Ø¡ÃÁä´ àÅ×Í¡ºÍ´àõ㹡ÒÃÃÑºÊ §¢ ÍÁÙÅ͹ءÃÁä´ 4 ¤ Ò¤×Í 115200, 38400, 19200, 9600 ºÔµµ ÍÇÔ¹Ò·Õ l µÃǨ¨ÑºÀÒ¾ÊÕä´ ´Ç ÂÍѵÃÒàÃçÇ 17 à¿ÃÁµ ÍÇÔ¹Ò·Õ l ÊÒÁÒö¤ ¹ËҨشÈٹ ¡ÅÒ§¢Í§ÀÒ¾ä´ l ãË ¢Í ÁÙŤ Òà©ÅÕÂè ÊÕá´§, à¢ÕÂÇ áÅйéÒí à§Ô¹ (Red-Green-Blue : RGB) à¾×Íè á¡áÂФÇÒÁᵡµ 񤊫 l ¶ Ò·ʹ¢ ÍÁÙŨشÀҾẺ亹ÒÃÕàÇÅÒ¨ÃÔ§¢Í§áµ ÅоÔà«Å·Õµ è ÃǨ¨Ñºä´ ã¹ÀÒ¾ l ÊÒÁÒö»ÃѺᵠ§¤Ø³ÊÁºÑµÀ Ô Ò¾¢Í§¡Å Í§ä´ l ÊÒÁÒÃ¶Í Ò¹¢ ÍÁÙÅ´Ôº¢Í§ÀÒ¾ÍÍ¡ÁÒä´ l ¤ÇÒÁÅÐàÍÕ´¢Í§ÀÒ¾·Õµ è ÃǨ¨Ñºä´ ¤Í× 80x143 ¨Ø´ ÊÒÁÒöµÃǨ¨ÑºÊÕä´ Í ҧÍѵâ¹ÁÑµÔ l ¢Ñº RC à«Íà âÇÁÍàµÍÃ ä´ 1 µÑÇ ËÃ×Í㪠໠¹¾Íà µÍÔ¹¾ØµàÍÒµ ¾µ Ø ´Ô¨µÔ ÍÅà¾ÔÁè àµÔÁ 1 ª ͧ l

âÁ´ÙÅ iV-CAM à» ¹âÁ´ÙŵÃǨ¨ÑºÀÒ¾ÊÕ·¾Õè ²Ñ ¹Ò¨Ò¡ CMUCAM-1 ¢Í§ Carnegie Melon University ÊËÃÑ°ÍàÁÃÔ¡Ò ÀÒÂãµ ¡ÒÃÃѺÃͧÍ ҧ໠¹·Ò§¡Òèҡ Carnegie Melon University á¡ ºÃÔÉ·Ñ ÍÔ¹â¹àǵտ àÍç¡à¾ÍÃÔàÁ¹µ ¨íÒ¡Ñ´ »ÃÐà·Èä·Â


2

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

1. iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾ÊÕ : ¼Ùª Ç ÂÊíҤѭ㹡ÒÃÁͧàËç¹ÀÒ¾¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍà âÁ´ÙŵÃǨ¨ÑºÀÒ¾ÊÕ iV-CAM 㪠ÊÒí ËÃѺµÃǨ¨ÑºáÅÐáÊ´§ÊÕ â´Â»ÃÐÊÔ·¸ÔÀÒ¾ÊÙ§ÊØ ´ã¹¡Òà ·íÒ§Ò¹¨Ðà¡Ô´¢Öé¹àÁ×èÍÇѵ¶Ø·Õè·íÒ¡ÒõÃǨ¨Ñº¹Ñé¹ä´ ÃѺáʧÊÇ Ò§·Õèà¾Õ§¾Í áÅÐÁÕ¤ÇÒÁᵡµ Ò§¡Ñº¾×é¹ ËÅѧÍ ҧªÑ´à¨¹ ¡µÑÇÍ ҧ âÁ´ÙÅ iV-CAM ÊÒÁÒöµÃǨ¨ÑºÀÒ¾¢Í§ÅÙ¡ºÍÅÊÕá´§º¹¾×¹é ÊÕ¢ÒÇä´ § Ò ᵠ¨ÐµÃǨ¨Ñºä´ ÂÒ¡¢Ö¹é áÅÐäÁ ª´Ñ ¨¹àÁ×Íè ¾×¹é ËÅѧ໠¹ÊÕ¹Òéí µÒÅ âÁ´ÙÅ iV-CAM ¨Ö§ÊÒÁÒö¹íÒä» »ÃÐÂØ¡µ 㪠㹡ÒõÃǨ¨ÑºàÊ ¹ã¹ÃÐÂÐä¡Å, µÃǨÊͺ¾×é¹·ÕèÊÕ, ¤ ¹ËÒÇѵ¶Ø·ÕèÁÕ¾×é¹ÊÕµÒÁ·Õè¡íÒ˹´ à» ¹µ ¹ ¹Í¡¨Ò¡¹Ñ¹é âÁ´ÙÅ iV-CAM ÂѧãË ¢Í ÁÙŢͧÀÒ¾·Õµè ÃǨ¨Ñºä´ ¹¹Ñé à» ¹¢ ÍÁÙŢͧáÁ ÊáÕ Ê§ËÅÑ¡ ¤×Í ÊÕá´§ (Red : R), ÊÕà¢ÕÂÇ (Green : G) áÅÐÊÕ¹Òéí à§Ô¹ (Blue : B) â´ÂÊÒÁÒöãË ¢Í ÁÙÅÅÐàÍÕ´ã¹áµ ÅШشÀÒ¾ËÃ×;ԡà«Å (pixel) ¨Ö§ÊÒÁÒö¹íÒ¢ ÍÁÙÅàËÅ Ò¹Ñé¹ÁÒ»ÃСͺ¡Ñ¹à¾×èÍÊà ҧ¡Òè´¨íÒÃٻà ҧ ¢Í§Çѵ¶Øä´ iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾ÊÕª¹Ô´«ÕÁÍÊ ºÑÊ I2C

¢ ÍÁÙÅ ÊÑ­­Ò³¤Çº¤ØÁ

ἧǧ¨Ã»ÃÐÁÇżÅáÅÐ µÔ´µ ÍÍØ»¡Ã³ ÀÒ¹͡

Ê §¢ ÍÁÙÅ͹ءÃÁ ÃѺ¢ ÍÁÙÅ͹ءÃÁ ¤ÍÁ¾ÔÇàµÍà ËÃ×Í äÁâ¤Ã¤Í¹â·ÃÅàÅÍÃ

ÃÙ»·Õè 1 ä´ÍÐá¡ÃÁ¡Ò÷íÒ§Ò¹¢Í§âÁ´ÙÅ iV-CAM

LED áÊ´§¡ÒõÃǨ¨ÑºÀÒ¾ (Tracking LED) RC à«Íà âÇÁÍàµÍÃ


iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

l

3

¨ÑÁê à»Íà ¡íÒ˹´ÍѵÃҺʹ

Ç Ò§ µ Í Ç Ò§ Ç Ò§

38,400 115,200

¨ÑÁê à»Íà àÅ×Í¡ âËÁ´ DEMO (»¡µÔ»Å ÍÂÇ Ò§) RX

5

TX

¡Òõ ͡ѺäÁâ¤Ã¤Í¹â·ÃÅàÅÍà µ ͡Ѻ¢ÒÊ §¢ ÍÁÙÅ͹ءÃÁ µ ͡Ѻ¢ÒÃѺ¢ ÍÁÙÅ͹ءÃÁ

-

iV-CAM firmware

µ Í RC à«Íà âÇÁÍàµÍà 6V µ Íä¿àÅÕÂé § +6V ±5% àÅ×Í¡µ Í·Õãè ´·ÕËè ¹Ö§è

´ Ò¹ËÅѧ iV-CAM

RS-232

ON

(ÊÕàËÅ×ͧ) (ÊÕà¢ÕÂÇ)

-

ON

9,600 19,200

+

6V

TRACK

µ Í Ç Ò§

(ºÔµµ ÍÇÔ¹Ò·Õ)

+

+

´ ҹ˹ Ò iV-CAM

µ Í µ Í

DEMO

BD1 BD2 SLAVE

SERVO Vin

âÁ´ÙšŠͧ

*,

5V TX RX GND VISION

¨ÑÁê à»Íà àÅ×Í¡ âËÁ´ÊàÅ¿ (»¡µÔ»Å ÍÂÇ Ò§)

ÍѵÃҺʹ

*,

µ ͡Ѻ¾Íà µÍ¹Ø¡ÃÁ ¢Í§¤ÍÁ¾ÔÇàµÍà â´Â㪠ÊÒ CX-4

ÃÙ»·Õè 2 áÊ´§Ê ǹ»ÃСͺÊíҤѭ¢Í§âÁ´ÙÅ iV-CAM áÅСÒáíÒ˹´¤ Ò·Ò§ÎÒà ´áÇà âÁ´ÙÅ iV-CAM à» ¹à¤Ã×èͧÁ×ÍÊíҤѭ·Õèª ÇÂÅ´ÀÒÃÐ㹡ÒûÃÐÁÇżÅÀÒ¾ÊբͧäÁâ¤Ã ¤Í¹â·ÃÅàÅÍà ËÃ×ͤÍÁ¾ÔÇàµÍÃ Å§ä´ Í ҧÁÒ¡ à¾ÃÒÐ㹡ÒûÃÐÁÇżÅÀÒ¾¹Ñé¹µ ͧ㪠ÍØ»¡Ã³ ·Õè ÊÒÁÒö»ÃÐÁÇżŢ ÍÁÙŨíҹǹÁÒ¡ä´ ÀÒÂã¹àÇÅÒ·ÕèàÃçÇà¾Õ§¾Í ã¹ÃÙ»·Õè 1 áÊ´§ä´ÍÐá¡ÃÁ¡Òà ·íÒ§Ò¹¢Í§âÁ´ÙÅ iV-CAM ÍØ»¡Ã³ ËÅÑ¡¤×Í âÁ´ÙŵÃǨѺÀÒ¾ÊÕ«§Öè ¤×Í âÁ´ÙšŠͧÃع OV6620 ·Õãè Ë ¼Å¢Í§¡ÒõÃǨ¨ÑºÀÒ¾áÅÐÊÕÍÍ¡ÁÒà» ¹¢ ÍÁÙÅ´Ô¨ÔµÍÅÀÒÂãµ ¡ÒäǺ¤ØÁ¼ Ò¹ÃкººÑÊ I2C ¢ ÍÁÙÅ ¨Ò¡âÁ´ÙšŠͧ¨ÐÊ §ÁÒÂѧÍØ»¡Ã³ »ÃÐÁÇżŠ«Ö觡ç¤×Í äÁâ¤Ã¤Í¹â·ÃÅàÅÍà SX28AC «Öè§à» ¹ äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ¢Í§ Ubicom ·ÕèÊÒÁÒö·íÒ§Ò¹´ ǤÇÒÁ¶ÕèÊÙ§ ã¹âÁ´ÙÅ iV-CAM 㪠¤ÇÒÁ¶Õè ÊÑ­­Ò³¹ÒÌ ¡ÒÊÙ§¶Ö§ 75MHz â´Âµ ͧÁÕ¡ÒúÃèØâ»Ãá¡ÃÁ¤Çº¤ØÁ¡Ò÷íÒ§Ò¹ËÃ×Íà¿ Ã ÁáÇà (firmware) ŧäÁâ¤Ã¤Í¹â·ÃÅàÅÍà SX28AC àÊÕ¡ ͹ ¢ ÍÁÙÅ·Õèä´ ¨Ò¡¡ÒõÃǨ¨Ñº¢Í§âÁ´ÙšŠͧ¨Ðä´ ÃѺ¡ÒûÃÐÁÇżÅáÅШѴ¡Òâ ÍÁÙÅãËÁ à¾×èÍÊ §ÍÍ¡ÁÒã¹ÅѡɳÐ͹ءÃÁ à¾×èÍÊ §µ Íä»ÂѧäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ËÃ×ͤÍÁ¾ÔÇàµÍà µ Íä» ¡ÒÃáÊ´§¼Å¡ÒõÃǨ¨Ñºã¹ÃٻẺ§ Ò·ÕÊè ´Ø ¢Í§âÁ´ÙÅ iV-CAM ¤×Í áÊ´§¼Å¼ Ò¹ LED µÃǨ¨Ñº ËÃ×Í Track LED


4

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

¹Í¡¨Ò¡¹Ñé¹âÁ´ÙÅ iV-CAM ÂѧÊÒÁÒö¤Çº¤ØÁà«Íà âÇÁÍàµÍÃ ä´ 1 µÑÇ àÁ×è͵ԴµÑé§à«Íà âÇ ÁÍàµÍà ࢠҡѺ¡Åä¡à¤Å×͹ äËÇ áÅйíÒâÁ´ÙÅ iV-CAM ÁÒµÔ´µÑ§é à ÇÁ´ Ç ¡ç¨Ð·íÒãË ¼ãÙ ª §Ò¹ÊÒÁÒö »ÃѺµíÒá˹ §¡ÒõÃǨ¨ÑºÀÒ¾áÅÐÊբͧâÁ´ÙÅ¡Å Í§ä´ Í ҧÊдǡ¢Öé¹ áÅÐÅ´¨íҹǹÊÒÂÊÑ­­Ò³ ¤Çº¤ØÁ¨Ò¡äÁâ¤Ã¤Í¹â·ÃÅàÅÍÃ Å§ä´ à¾ÃÒÐäÁ µ ͧ㪠¢Ò¾Íà µà¾ÔèÁàµÔÁ㹡ÒäǺ¤ØÁà«Íà âÇ ÁÍàµÍà âÁ´ÙÅ iV-CAM ä´ Á¡Õ ÒèѴ¢ÒÊÑ­­Ò³ÊíÒËÃѺµÔ´µ ͡ѺäÁâ¤Ã¤Í¹â·ÃÅàÅÍà áÅФÍÁ¾ÔÇàµÍà ᵡµ Ò§¡Ñ¹àÅ硹 Í â´ÂÃдѺÊÑ­­Ò³·Õãè ª µ´Ô µ ͡ѺäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ¨Ðà» ¹áºº·Õ·áÕ ÍÅ ¨Ö§ÊÒÁÒöµ ͡Ѻ¢Ò¾Íà µ¢Í§äÁâ¤Ã¤Í¹â·ÃÅàÅÍÃ ä´ â´ÂµÃ§ ã¹¢³Ð·Õàè Á×Íè µÔ´µ ͡Ѻ¤ÍÁ¾ÔÇàµÍà ¨Ðµ ͧµ ͡Ѻ¾Íà µÍ¹Ø¡ÃÁ (¡Ã³Õ¤ÍÁ¾ÔÇàµÍà ÁÕ੾ÒоÍà µ USB µ ͧ㪠ÍØ»¡Ã³ á»Å§ÊÑ­­Ò³ ¾Íà µ USB à» ¹¾Íà µÍ¹Ø¡ÃÁÁÒª ÇÂ) ÃдѺÊÑ­­Ò³·ÕèµÔ´µ Íà» ¹ä»µÒÁÁҵðҹ RS-232 ¨Ö§µ ͧ ¼ ҹǧ¨Ãá»Å§ÃдѺÊÑ­­Ò³àÊÕ¡ ͹ ¹Í¡¨Ò¡¹Ñ¹é à¾×Íè ãË âÁ´ÙÅ iV-CAM ÊÒÁÒöµÔ´µ ͡ѺäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ·ÁÕè ¤Õ ÇÒÁàÃçÇäÁ ʧ٠¹Ñ¡ä´ ¨Ö§¡íÒ˹´ãË ÊÒÁÒöàÅ×Í¡ÍѵÃÒàÃçÇ㹡Òö Ò·ʹ¢ ÍÁÙÅËÃ×ÍÍѵÃҺʹËÃ×ͺʹàÃµä´ µ§Ñé áµ 4 ÃдѺ¤×Í 9,600 - 19,200 - 38,400 áÅÐ 115,200 ºÔµµ ÍÇÔ¹Ò·Õ ã¹¡ÒõԴµ ͡ѺäÁâ¤Ã¤Í¹â·ÃÅàÅÍà â´Â·ÑèÇä»ÁÑ¡àÅ×͡㪠ºÍ´àõ 9,600 ºÔµµ ÍÇÔ¹Ò·Õ ã¹¢³Ð·Õè¡ÒõԴµ ͡Ѻ¤ÍÁ¾ÔÇàµÍà ÁÑ¡àÅ×Í¡ºÍ´ àõ·Õè 9,600 áÅÐ 115,200 ºÔµµ ÍÇÔ¹Ò·Õ ¹Í¡¨Ò¡¡ÒÃàÅ×Í¡ºÍ´àõã¹Â Ò¹¡Ç Ò§áÅ Ç âÁ´ÙÅ iV-CAM ÂѧÁÕâËÁ´¡Ò÷íÒ§Ò¹·ÕèàÃÕÂ¡Ç Ò âËÁ´â¾Å (poll mode) ·ÕèÁÕ¡ÒõÃǨÊͺ¤ÇÒÁ¾Ã ÍÁ㹡ÒÃÃÑºÊ §¢ ÍÁÙÅáµ ÅÐá¾ç¡à¡çµ¡ÑºäÁâ¤Ã ¤Í¹â·ÃÅàÅÍà ¡ ͹ ËÃ×ÍàÅ×͡㪠¡ÒÃà¾ÔèÁ¤ Ò˹ ǧàÇÅÒã¹áµ ÅÐÃËÑÊÍÑ¡¢ÃÐã¹âËÁ´¡Ò÷íÒ§Ò¹·Õè àÃÕÂ¡Ç Ò âËÁ´´ÕàÅ (delay mode) ¨Ö§·íÒãË äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ·ÁÕè ¤Õ ÇÒÁàÃçǵèÒí ÊÒÁÒö㪠§Ò¹¡Ñº âÁ´ÙÅ iV-CAM ä´ à» ¹Í ҧ´Õ áµ ¹Ñè¹ËÁÒ¶֧ ¡ÒÃÂÍÁÃѺ¤ÇÒÁàÃçÇ㹡ÒûÃÐÁÇżÅÀÒ¾·ÕèŴŧ µèÒí ¡Ç Ò 17 à¿ÃÁµ ÍÇÔ¹Ò·Õ´Ç Â ã¹ÃÙ»·Õè 2 áÊ´§Ê ǹ»ÃСͺáÅСÒáíÒ˹´¤ Ò·Ò§ÎÒà ´áÇà ·ÊÕè Òí ¤Ñ­¢Í§âÁ´ÙÅ iV-CAM

2. àµÃÕÂÁ¡Òá ͹㪠§Ò¹ ¡ÒÃàµÃÕÂÁ¡Ò÷ÕÊè Òí ¤Ñ­·ÕÊè ´Ø ¤×Í ËÒáËÅ §¨ ÒÂä¿àÅÕÂé § ÃдѺáç´Ñ¹ä¿àÅÕÂé §·Õàè ËÁÒÐÊÁÊíÒËÃѺ âÁ´ÙÅ iVCAM ¤×Í +6V ·Ñ§é ¹Õàé ¾×Íè 㪠àÅÕÂé §à«Íà âÇÁÍàµÍà ´Ç  â´Âã¹âÁ´ÙÅ iV-CAM ÁÕǧ¨Ã¤Çº¤ØÁ áç´Ñ¹ä¿àÅÕÂé §¤§·Õ·è Õè +5V ÍÂÙÀ ÒÂã¹ à¾×Íè 㪠àÅÕÂé §âÁ´ÙšŠͧáÅÐäÁâ¤Ã¤Í¹â·ÃÅàÅÍà »ÃÐÁÇżŠÃÇÁ¶Ö§ÍØ»¡Ã³ ͹×è æ ´ ÇÂ


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

5

áËÅ §¨ ÒÂä¿àÅÕ駷ÕèàËÁÒÐÊÁ¤×Í áºµàµÍÃÕè +6 ¶Ö§ +9V ¨Ò¡áºµàµÍÃÕ袹Ҵ AA ¨íҹǹ 4 ¡ ͹ËÃ×ÍẺ¡ ͹ÊÕàè ËÅÕÂè Á +9V ¡çä´ â´ÂâÁ´ÙÅ iV-CAM µ ͧ¡ÒáÃÐáÊä¿¿ Ò㹡Ò÷íÒ§Ò¹ 200mA ¡Ã³ÕàÅ×͡㪠¢¹Ò´ AA ¤ÇÃàÅ×͡㪠ẵàµÍÃÕáè ººÍÑŤÒäŹ (alcaline) ËÃ×ÍẺÍÍ¡«Ôäô (oxyride) à¾×èÍãË ÊÒÁÒö㪠§Ò¹ä´ ¹Ò¹ ¡Ã³Õ㪠¡ºÑ ẵàµÍÃÕ¢è ¹Ò´ AA Ẻ»ÃШØä´ µÍ §ãª ¨Òí ¹Ç¹¢Í§áºµàµÍÃÕàè ¾ÔÁè ¢Ö¹é à» ¹ 5 ¡ ͹ à¾×Íè ãË ä´ áç´Ñ¹ +6V (1.2V x 5 ¡ ͹) Ëҡ㪠áËÅ §¨ ÒÂ俵çÀÒ¹͡¨Ò¡ÍÐá´»àµÍà ËÃ×Íà¤Ã×Íè §¨ ÒÂä¿ ¤ÇÃàÅ×Í¡áç´Ñ¹àÍÒµ ¾µØ +6 ¶Ö§ +9V áµ ¶Ò ËÒ¡µ ͧ㪠¡ºÑ RC à«Íà âÇÁÍàµÍà ´Ç  µ ͧàÅ×͡㪠+6V ෠ҹѹé

3. ¡Ò÷´ÊͺâÁ´ÙÅ iV-CAM ¡Ò÷´ÊͺâÁ´ÙÅ iV-CAM ·Õè§ ÒÂáÅÐÊдǡ·ÕèÊØ´¤×Í ¡Ò÷´Êͺ¼ Ò¹¤ÍÁ¾ÔÇàµÍà â´ÂÁÕ «Í¿µ áÇà ·ãÕè ª 2 µÑǤ×Í RS-232 Terminal áÅÐ CMUCAM2GUI â´ÂµÑÇáá㪠㹡Ò÷´Êͺ¡Òà µÔ´µ Íà¾×Íè Í Ò¹¤ ÒáÅÐÊÑ§è §Ò¹ Ê Ç¹µÑÇ·ÕÊè ͧ㪠㹡ÒûÃѺ¤ÇÒÁ¤ÁªÑ´ËÃ×Íâ¿¡ÑʢͧâÁ´ÙšŠͧ·Õãè ª ã¹ iV-CAM ÁÕ¢¹Ñé µÍ¹â´ÂÊÃØ»´Ñ§¹Õé (1) µÔ´µÑ§é â»Ãá¡ÃÁ RS-232 Terminal â´Â´ÑºàºÔŤÅÔ¡·Õäè ¿Å RS-232 TerminalSetup.exe 㹫մÃÕ ÍÁ·Õ¨è ´Ñ ÁҾà ÍÁ¡ÑºâÁ´ÙÅ iV-CAM ¤ÅÔ¡»ØÁ µÍºÃѺ仨¹¡ÃÐ·Ñ§è ¡ÒõԴµÑ§é ÊÁºÙó (2) àÅ×Í¡»ØÁ Startà Programà RS-232 Terminal ¨Ð»ÃÒ¡¯Ë¹ Òµ Ò§ËÅÑ¡¢Í§â»Ãá¡ÃÁ ¶ Ò»ØÁ Disconnect áÊ´§ ÍÂÙ ãË ¡´»ØÁ à» ¹ Connect à¾×Íè ¡íÒ˹´¤ Òµ Ò§æ 㹡ÒÃÊ×Íè ÊÒâ ÍÁÙÅ


6

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

(3) ä»·Õàè Á¹Ù Setting à Serial port à¾×Íè àÅ×Í¡¾Íà µÍ¹Ø¡ÃÁ·Õãè ª µÍ ¡ÑºâÁ´ÙÅ iV-CAM ¨Ò¡¹Ñé¹àÅ×Í¡ºÍ´àõ·ÕèàÁ¹Ù¤íÒÊÑè§à´ÕÂǡѹ Setting à Baud rate (bps) à» ¹ 115200 àÅ×Í¡¨íҹǹºÔµ ¢ ÍÁÙŨҡàÁ¹Ù Setting à Data à» ¹ 8 ºÔµ áÅÐàÅ×Í¡¡ÒõÃǨÊͺºÔµ¾ÒÃÔµ¨Õé Ò¡àÁ¹Ù Setting à Parity àÅ×Í¡äÁ ÁºÕ µÔ ¾ÒÃÔµÕé (None) ¨Ò¡¹Ñ¹é ¡´»ØÁ Connect à¾×Íè ¡íÒ˹´ãË â»Ãá¡ÃÁàª×Íè Áµ ͡Ѻ¾Íà µÍ¹Ø¡ÃÁ ÊÒÁÒö»ÃѺᵠ§ÃٻẺµÑÇÍÑ¡ÉÃËÃ×Í¢¹Ò´ä´ µÒÁµ ͧ¡Òà â´ÂࢠÒä»·Õàè Á¹Ù Setting àTerminal (4) ¹íÒ¨ÑÁê à»Íà BD2 áÅÐ BD2 ÍÍ¡ à¾×Íè àÅ×Í¡ºÍ´àõ໠¹ 115,200 ºÔµµ ÍÇÔ¹Ò·Õ ÃÇÁ ·Ñ§é ¨ÑÁê à»Íà ·µÕè Òí á˹ § DEMO áÅÐ SLAVE áÊ´§¢ ͤÇÒÁ

(5) à» ´ÊÇÔµª ¨Ò Âä¿àÅÕÂé §ãË á¡ âÁ´ÙÅ iV-CAM ·ÕËè ¹ Òµ Ò§àÍÒµ ¾µØ ¢Í§ RS-232 Terminal CMUcam V1.12 :

(6) ¨Ò¡¹Ñé¹·´Êͺ¾ÔÁ¾ ¤íÒÊÑè§ RS ·Õè˹ Òµ Ò§ÍÔ¹¾Øµ¢Í§ RS-232 Terminal áÅ Ç¡´ Enter à¾×Íè ·´Êͺ¡ÒÃÃÕ૵âÁ´ÙÅ iV-CAM ¨Ð»ÃÒ¡¯¢ ͤÇÒÁ :ACK CMUCAM1.12

(7) ¾ÔÁ¾ ¤Òí Êѧè GV ·ÕËè ¹ Òµ Ò§ÍÔ¹¾Øµ¢Í§ RS-232 Terminal áÅ Ç¡´ Enter à» ¹¡ÒÃÊ § ¤íÒÊÑè§à¾×èÍÍ Ò¹¤ ҢͧàÅ¢àÇÍà ªÑè¹ ¨Ð»ÃÒ¡®¢ ͤÇÒÁ :ACK CMUCAM1.12


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

7

(8) àÁ×Íè ä´ µÒÁ¹Õáé Ê´§Ç Ò âÁ´ÙÅ iV-CAM µÔ´µ ͡Ѻ¾Íà µÍ¹Ø¡ÃÁ¢Í§¤ÍÁ¾ÔÇàµÍÃ ä´ ã¹¢Ñ鹵͹µ Íä»à» ¹¡ÒûÃѺ¤ÇÒÁ¤ÁªÑ´¢Í§àÅ¹Ê ·Õè㪠㹡ÒõÃǨ¨ÑºÀÒ¾ â´Â㪠â»Ãá¡ÃÁ CMUcam2GUI.jar «Ö§è ºÃèØÍÂÙã ¹â¿Åà´Íà CMUcam2GUI 㹫մÃÕ ÍÁ·Õ¨è ´Ñ ÁҾà ÍÁ¡ÑºâÁ´ÙÅ iV-CAM ãË ¤Ñ´ÅÍ¡â¿Åà´Íà ¹Õéŧã¹ÎÒà ´´ÔÊ¡ áµ à¹×èͧ¨Ò¡ CMUcam2GUI ¾Ñ²¹Ò´ ÇÂâ»Ãá¡ÃÁÀÒÉÒ¨ÒÇÒ ´Ñ§¹Ñé¹ã¹¡ÒÃà» ´ãª §Ò¹¤ÍÁ¾ÔÇàµÍà µÑǹÑé¹æ ¨Ðµ ͧÁÕâ»Ãá¡ÃÁ㹡ÅØ Á JAVA Runtime ËÒ¡äÁ ÁÕ ÊÒÁÒö·íÒ¡ÒõԴµÑ§é ¨Ò¡ä¿Å jre-1_5_0_04-windows-i586-p.exe «Ö§è ºÃèØÍÂÙã ¹«Õ´ÃÕ ÍÁ«Ö§è ÁҾà ÍÁ¡Ñº âÁ´ÙÅ iV-CAM â´Â·íÒ¡ÒôѺàºÔŤÅÔ¡ä¿Å ´§Ñ ¡Å ÒÇ ¨Ò¡¹Ñ¹é ¤ÅÔ¡µÍºµ¡Å§ã¹áµ ÅÐ¢Ñ¹é ¢Í§¡ÒõÃǨ Êͺ ¨¹¡ÃзÑ觡ÒõԴµÑé§àÊÃç¨ÊÔé¹Å§ (9) ࢠÒä»ã¹â¿Åà´Íà CMUcamGUI à Stand_alone àÅ×Í¡ä¿Å CMUcam2GUI.jar ´ Ç¡ÒäÅÔ¡àÁÒÊ ¢ÇÒ áÅ ÇàÅ×Í¡à» ´ä¿Å ¹´Õé Ç Â Java(TM)2 Platform Standard Edition Binary ´Ñ§ÃÙ»

(10) ˹ Òµ Ò§àÅ×Í¡¾Íà µÍ¹Ø¡ÃÁ¢Í§â»Ãá¡ÃÁ CMUCAM2GUI ¨Ð»ÃÒ¡¯¢Ö¹é


8

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

(11) àÅ×Í¡¾Íà µÍ¹Ø¡ÃÁ (Serial port) ·Õèµ Í§¡Òà ÊÑ¡¤Ã٠˹Öè§ Ë¹ Òµ Ò§¢Í§â»Ãá¡ÃÁ CMUcam2GUI ¨Ð»ÃÒ¡¯¢Ö¹é ·Õªè Í § Console ¨ÐáÊ´§¢ ͤÇÒÁ CMUcam Version 1 type 6 ready áÊ´§Ç Ò µÑÇâÁ´ÙÅ iV-CAM («Ö§è ¡ç¤Í× CMUcam1 ·Õäè ´ ÃºÑ ÊÔ·¸Ô¼ì ÅԵ㹻ÃÐà·Èä·Â) µÔ´µ ͡Ѻâ»Ãá¡ÃÁ CAMcam2GUI ä´ áÅ Ç

(12) ¹íÒÂÒ§» ´àÅ¹Ê ¢Í§âÁ´ÙÅ iV-CAM ÍÍ¡ ¤ÅÔ¡»ØÁ Grab Frame ÃÍÊÑ¡¤ÃÙ ã¹ÃÐËÇ Ò§ Ãͨе ͧ¨Ñ´ãË âÁ´ÙšŠͧÍÂÙ¹ §Ôè æ ÀÒ¾·Õâè Á´ÙšŠͧµÃǨ¨Ñºä´ ¨ÐáÊ´§·Õ´è Ò ¹« Ò¢ͧ˹ Òµ Ò§¢Í§ â»Ãá¡ÃÁ â´ÂÀÒ¾·Õäè ´ ¨Ð¡ÅѺ« Ò¢ÇÒÍÂÙ ãË ¤ÅÔ¡·Õàè Á¹Ù Image àÅ×Í¡ Flip Horizontal ÀÒ¾¡ç¨Ð¡ÅѺ ´ Ò¹ÁÒÍÂÙ ·Ò§¢ÇҢͧ˹ Òµ Ò§¢Í§â»Ãá¡ÃÁ àËç¹à» ¹ÀÒ¾µÒÁ»¡µÔ


iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

l

9

(13) ËÒ¡ÀÒ¾·Õäè ´ äÁ ¤ÁªÑ´ ãË ·Òí ¡ÒÃËÁع¡Ãк͡àÅ¹Ê à¾×Íè »ÃѺ⿡ÑÊ â´Â¡ÒÃËÁع µ ͧËÁعÍ ҧª Òæ ËÅѧ¨Ò¡ËÁعã¹áµ ÅФÃѧé ãË ·Òí ¡ÒõÃǨÊͺÀÒ¾ â´Â¡ÒäÅÔ¡»ØÁ Grab Frame ·íÒઠ¹¹Õ¨é ¹¡Ç ÒÀÒ¾·Õäè ´ ¨Ð¤ÁªÑ´ ·ÔÈ·Ò§¡ÒÃËÁعÍÒ¨ËÁع« ÒÂËÃ×Í¢ÇÒ¡çä´ ¨Ðµ ͧÊѧࡵáÅеÃǨ Êͺàͧ¨Ò¡ÀÒ¾·Õµè ÃǨ¨Ñºä´ àÁ×Íè »ÃÑºä´ ¤ÇÒÁ¤ÁªÑ´ÊÙ§ÊØ´áÅ Ç ÊÒÁÒö¹íÒâÁ´ÙÅ iV-CAM ä»ãª §Ò¹ ¨Ø´à» ÒËÁÒÂ

µÔ´µÑé§ iV-CAM ãË µ§Ñé ©Ò¡µÃ§¡ÑºÇѵ¶Ø ·Õµè Í §¡ÒõÃǨ¨Ñº

»ÃѺ⿡ÑÊ*

Çѵ¶Øà» ÒËÁÒÂ

* ¡ÒûÃѺ⿡Ñʵ ͧ»ÃѺª Òæ àÁ×èÍ»ÃѺ˹Ö觤ÃÑé§ ãË ¨ºÑ ÀÒ¾áŠǵÃǨÊͺ·Õè˹ Ò¨ÍáÊ´§¼Å¢Í§ â»Ãá¡ÃÁ¡ Í¹Ç Ò ªÑ´¾ÍËÃ×ÍäÁ

à¾Õ§෠ҹÕâé Á´ÙÅ iV-CAM ¡ç¾Ã ÍÁÊíÒËÃѺ¡ÒÃ㪠§Ò¹

4. ¡Ò÷íÒ§Ò¹ã¹âËÁ´ Demo ¼Ù 㪠§Ò¹ÂѧÊÒÁÒö·´Êͺ¡Ò÷íÒ§Ò¹¢Í§âÁ´ÙÅ iV-CAM ã¹àªÔ§ÎÒà ´áÇÃ ä´ ÍÕ¡·Ò§Ë¹Öè§ â´Â¡Òõ ͨÑÁê à»Íà 㹵íÒá˹ § DEMO à¾×Íè ¡íÒ˹´ãË âÁ´ÙÅ iV-CAM ·íÒ§Ò¹ã¹âËÁ´µÑÇÍ ҧËÃ×Í DEMO. áÅе Í RC à«Íà âÇÁÍàµÍà ࢠҷժè Í § SERVO â´Âµ ͧµ ÍÊÒÂÊÑ­­Ò³ãË ¶¡Ù µ ͧ´ Ç ÊÒÂÊÕá´§ ÊÒÂÊÑ­­Ò³¢Í§ à«Íà âÇÁÍàµÍà ÊÒÂÊÕàËÅ×ͧ ËÃ×Í¢ÒÇ

ÊÒÂÊÕ´íÒ

+

S

SERVO

-


10

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

ã¹âËÁ´¹Õ¨é СíÒ˹´ãË âÁ´ÙšŠͧàÃÕ¡¤íÒÊѧè Track Window (¨Ðä´ ¡Å ÒǶ֧ÀÒÂËÅѧ) áÅÐ Ê §ÊÑ­­Ò³ PWM ÍÍ¡ä»·Ò§ª ͧàÍÒµ ¾µØ SERVO à¾×Íè ¹íÒ仢Ѻà«Íà âÇÁÍàµÍà ¢Ñ¹é µÍ¹¡Ò÷íÒ§Ò¹ ã¹âËÁ´ Demo ÁÕ´§Ñ ¹Õé (1) µ ͨÑÁê à»Íà DEMO (2) µ Íà«Íà âÇÁÍàµÍà (3) à» ´ÊÇÔµª à¾×Íè ¨ ÒÂä¿á¡ âÁ´ÙÅ iV-CAM (4) ¤íÒÊѧè RS ¨Ð¶Ù¡Ê §ä»ÃÕ૵âÁ´ÙšŠͧ (5) ˹ ǧàÇÅÒ 5 ÇÔ¹Ò·Õ à¾×Íè ãË âÁ´ÙšŠͧ»ÃѺ¤ Ò¾ÒÃÒÁÔàµÍà µÒ §æ â´ÂÍѵâ¹ÁÑµÔ (6) à¢Õ¹¢ ÍÁÙÅ CR 18 32 19 32 ä»ÂѧÃÕ¨ÊÔ àµÍà ¢Í§âÁ´ÙšŠͧ à¾×Íè àÅ×Í¡âËÁ´ÊÕẺ YCrCb áÅл ´¡ÒûÃѺ¡ÒâÂÒÂÍѵâ¹ÁÑµÔ (auto gain off) (7) ¡ÃзíÒ¤íÒÊÑè§ TW ËÃ×Í Track Window ¹íÒÇѵ¶Ø·Õèµ Í§¡ÒõÃǨ¨ÑºÁÒÇÒ§äÇ Ë¹ Ò âÁ´ÙÅ iV- CAM àÁ×Íè µÃǨ¨ÑºÀÒ¾ä´ LED ÊÕàËÅ×ͧ㹵íÒá˹ § Track ¨ÐµÔ´¤ÃÙË ¹Ö§è áÅ Ç´Ñºä» (8) à«Íà âÇÁÍàµÍà ¨Ð¶Ù¡¢ÑºãË á¡¹ÁÒÍÂÙã ¹µíÒá˹ §¡Ö§è ¡ÅÒ§áÅ ÇËÂØ´ áµ ¶Ò Ëҡ᡹ ¢Í§à«Íà âÇÁÍàµÍà ÍÂÙ ã¹µíÒá˹ §¡Ö觡ÅÒ§ÍÂÙ áÅ Ç ¨ÐäÁ àË繡Ò÷íÒ§Ò¹ã¹Ê ǹ¹Õé Í ҧäáçµÒÁ ¼Ùã ª §Ò¹ÊÒÁÒö¤Çº¤ØÁà«Íà âÇÁÍàµÍà ãË Á¡Õ ÒÃËÁعà¾×Íè µÔ´µÒÁÇѵ¶Ø·µÕè Í §¡Òà µÃǨ¨Ñºä´ â´Âà¢Õ¹¤íÒÊѧè MM ä»ÂѧâÁ´ÙÅ iV-CAM «Ö§è ¨Ðä´ ¡Å ÒǶ֧µ Íä»

5. ÃٻẺ¢ ÍÁÙÅàÍÒµ ¾µØ ¢Í§âÁ´ÙÅ iV-CAM ¡ ͹͸ԺÒ¶֧¤íÒÊÑ觢ͧâÁ´ÙÅ iV-CAM ¨Ðµ ͧ·íÒ¤ÇÒÁࢠÒ㨡ѺÃٻẺ¢Í§¢ ÍÁÙÅ·ÕèâÁ´ÙÅ iV-CAM 㪠㹡ÒõԴµ ͡Ѻ¤ÍÁ¾ÔÇàµÍà áÅÐäÁâ¤Ã¤Í¹â·ÃÅàÅÍà â´Â¢ ÍÁÙÅàÍÒµ ¾µØ ¹Ñ¹é à» ¹ÃËÑÊ áÍÊ¡Õé (ASCII) ÁÕÃÒÂÅÐàÍÕ´´Ñ§¹Õé

5.1 ACK à» ¹¢ ͤÇÒÁµÍºÃѺ·ÕèâÁ´ÙÅ iV-CAM Ê §¡ÅѺÁÒÂѧ¤ÍÁ¾ÔÇàµÍà ËÃ×ÍäÁâ¤Ã¤Í¹â·ÃÅàÅÍà à¾×Íè ᨠ§ãË ·ÃÒºÇ Ò âÁ´ÙÅ iV-CAM ÃѺÃÙË Ã×Íä´ ·Òí §Ò¹µÒÁ¤íÒÊÑ§è ·ÕÊè § ÁÒ¡ ͹˹ Ò ÃÇÁ¶Ö§Âѧ㪠áÊ´§ Ç Ò âÁ´ÙÅ iV-CAM ¡Ñº¤ÍÁ¾ÔÇàµÍà ËÃ×ÍäÁâ¤Ã¤Í¹â·ÃÅàÅÍÃ Â§Ñ ÊÒÁÒöµÔ´µ ͡ѹä´


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

11

5.2 NCK à» ¹¢ ͤÇÒÁµÍºÃѺ·Õâè Á´ÙÅ iV-CAM Ê §¡ÅѺÁÒÂѧ¤ÍÁ¾ÔÇàµÍà ËÃ×äÁâ¤Ã¤Í¹â·ÃÅàÅÍà à¾×Íè ᨠ§ãË ·ÃÒºÇ Ò âÁ´ÙÅ iV-CAM äÁ è٠¡Ñ ¤íÒÊѧè ËÃ×ÍÃٻẺ¢ ÍÁÙÅ·ÕÊè § ÁÒ¡ ͹˹ Ò

5.3 á¾ç¡à¡çµ¢ ÍÁÙÅẺ C (Type C packet) à» ¹ÃٻẺ¢ ÍÁÙÅ·Õäè ´ ¨Ò¡¤íÒÊÑ§è µÃǨ¨ÑºÊÕ (color tracking command) ÁÕ¡ÒèѴàÃÕ§¢ ÍÁÙŴѧ¹Õé C x1 y1 x2 y2 pixels confidence\r

»ÃСͺ´ Ç x1 - ¾Ô¡´Ñ ÁØÁ« ÒÂã¹á¹ÇÃйҺ (᡹ X) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ y1 - ¾Ô¡´Ñ ÁØÁ« ÒÂã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ x2 - ¾Ô¡´Ñ ÁØÁ¢ÇÒã¹á¹ÇÃйҺ (᡹ X) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ y2 - ¾Ô¡´Ñ ÁØÁ¢ÇÒã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ pixels - ¨íҹǹ¾Ô¡à«Å¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ ÁÕ¤Ò ÊÙ§ÊØ´ 255 â´Â»ÃѺÍѵÃÒÊ Ç¹¨Ò¡ ¨íҹǹ¾Ô¡à«Å¨ÃÔ§·ÕèµÃǨ¨Ñºä´ µÒÁ¤ÇÒÁÊÑÁ¾Ñ¹¸ (¨íҹǹ¾Ô¡à«Å¨ÃÔ§ +4)/8 confidence - à» ¹¢ ÍÁÙŢͧ¾×¹é ·Õµè ÃǨ¨Ñº·Õ¾è ¨Ô ÒóÒ㹡ÃͺÊÕàè ËÅÕÂè Á¼×¹¼ Ò·ÕÁè ¤Õ Ò ¢Í§ ¡ÒõÃǨ¨Ñº·Õè 255 â´Â¢ ÍÁÙŹÕé¤íҹdz¨Ò¡ ¨íҹǹ¾Ô¡à«Åµ ;×é¹·Õè x 256 \r - à» ¹ÃËÑʢͧ¡Òû ´ªØ´¢ ÍÁÙÅ (à» ¹ÃËÑʢͧ»ØÁ Enter ËÃ×Í Return º¹¤Õº Íà ´)

5.4 á¾ç¡à¡çµ¢ ÍÁÙÅẺ M (Type M packet) à» ¹ÃٻẺ¢ ÍÁÙÅ·Õèä´ ¨Ò¡¤íÒÊÑ觵ÃǨ¨ÑºÊÕ (color tracking command) «Öè§ÁÕ¡ÒþԨÒóҶ֧ ¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕ·ÕèµÃǨ¨ÑºËÃ×Í middle mass ÁÕ¡ÒèѴàÃÕ§¢ ÍÁÙŴѧ¹Õé M mx my x1 y1 x2 y2 pixels confidence\r

»ÃСͺ´ Ç mx

- ¾Ô¡´Ñ ã¹á¹ÇÃйҺ (᡹ X) ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñº

- ¾Ô¡´Ñ ã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñº x1 - ¾Ô¡´ Ñ ÁØÁ« ÒÂã¹á¹ÇÃйҺ (᡹ X) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ y1 - ¾Ô¡´ Ñ ÁØÁ« ÒÂã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ my


12

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

- ¾Ô¡´Ñ ÁØÁ¢ÇÒã¹á¹ÇÃйҺ (᡹ X) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ y2 - ¾Ô¡´ Ñ ÁØÁ¢ÇÒã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ pixels - ¨íҹǹ¾Ô¡à«Å¢Í§¾×¹ é ·Õ·è µÕè ÃǨ¨Ñº ÁÕ¤Ò ÊÙ§ÊØ´ 255 â´Â»ÃѺÍѵÃÒÊ Ç¹¨Ò¡ ¨íҹǹ¾Ô¡à«Å¨ÃÔ§·ÕèµÃǨ¨Ñºä´ µÒÁ¤ÇÒÁÊÑÁ¾Ñ¹¸ (¨íҹǹ¾Ô¡à«Å¨ÃÔ§ +4)/8 confidence - à» ¹¢ ÍÁÙŢͧ¾×¹ é ·ÕÊè ·Õ µÕè ÃǨ¨Ñº·Õ¾è ¨Ô ÒóÒ㹡ÃͺÊÕàè ËÅÕÂè Á¼×¹¼ Ò·Õè ÁÕ¤ Ңͧ¡ÒõÃǨ¨Ñº·Õè 255 â´Â¢ ÍÁÙŹÕé¤íҹdz¨Ò¡ ¨íҹǹ¾Ô¡à«Åµ Í¾×¹é ·Õè x 256 \r - à» ¹ÃËÑʢͧ¡Òû ´ªØ´¢ ÍÁÙÅ x2

5.5 á¾ç¡à¡çµ¢ ÍÁÙÅẺ N (Type N packet) à» ¹ÃٻẺ¢ ÍÁÙÅ·Õèä´ ¨Ò¡¤íÒÊÑ觵ÃǨ¨ÑºÊÕ (color tracking command) «Öè§ÁÕ¡ÒþԨÒóҶ֧ ¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕ·ÕèµÃǨ¨ÑºËÃ×Í middle mass áÅÐᨠ§µíÒá˹ §¢Í§à«Íà âÇÁÍàµÍà ¤Å Ò¡Ѻ á¾ç¡à¡çµ¢ ÍÁÙÅẺ M µ §¡Ñ¹·Õãè ¹áºº N ¨ÐºÃÃ¨Ø¢Í ÁÙŢͧµíÒá˹ §à«Íà âÇÁÍàµÍà 㹢³ÐµÃǨ ¨Ñº¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕ ÁÕ¡ÒèѴàÃÕ§¢ ÍÁÙŴѧ¹Õé N spos mx my x1 y1 x2 y2 pixels confidence\r

»ÃСͺ´ Ç - µíÒá˹ §¢Í§à«Íà âÇÁÍàµÍà »¨ ¨Øº¹Ñ mx - ¾Ô¡´ Ñ ã¹á¹ÇÃйҺ (᡹ X) ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñº my - ¾Ô¡´ Ñ ã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñº x1 - ¾Ô¡´ Ñ ÁØÁ« ÒÂã¹á¹ÇÃйҺ (᡹ X) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ y1 - ¾Ô¡´ Ñ ÁØÁ« ÒÂã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ x2 - ¾Ô¡´ Ñ ÁØÁ¢ÇÒã¹á¹ÇÃйҺ (᡹ X) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ y2 - ¾Ô¡´ Ñ ÁØÁ¢ÇÒã¹á¹ÇµÑ§é (᡹ Y) ¢Í§¾×¹é ·ÕÊè ·Õ µÕè ÃǨ¨Ñºä´ pixels - ¨íҹǹ¾Ô¡à«Å¢Í§¾×¹ é ·Õ·è µÕè ÃǨ¨Ñº ÁÕ¤Ò ÊÙ§ÊØ´ 255 â´Â»ÃѺÍѵÃÒÊ Ç¹¨Ò¡ ¨íҹǹ¾Ô¡à«Å¨ÃÔ§·ÕèµÃǨ¨Ñºä´ µÒÁ¤ÇÒÁÊÑÁ¾Ñ¹¸ (¨íҹǹ¾Ô¡à«Å¨ÃÔ§ +4)/8 confidence - à» ¹¢ ÍÁÙŢͧ¾×¹ é ·ÕÊè ·Õ µÕè ÃǨ¨Ñº·Õ¾è ¨Ô ÒóÒ㹡ÃͺÊÕàè ËÅÕÂè Á¼×¹¼ Ò·Õè ÁÕ¤ Ңͧ¡ÒõÃǨ¨Ñº·Õè 255 â´Â¢ ÍÁÙŹÕé¤íҹdz¨Ò¡ ¨íҹǹ¾Ô¡à«Åµ Í¾×¹é ·Õè x 256 \r - à» ¹ÃËÑʢͧ¡Òû ´ªØ´¢ ÍÁÙÅ spos


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

13

5.6 á¾ç¡à¡çµ¢ ÍÁÙÅẺ S (Type S packet) ´Ñ§¹Õé

à» ¹ªØ´¢ ÍÁÙÅ·ÕèãË ÃÒÂÅÐàÍÕ´à¡ÕèÂǡѺ¡ÒõÃǨ¨ÑºÀÒ¾¢Í§âÁ´ÙšŠͧ ÁÕ¡ÒèѴàÃÕ§¢ ÍÁÙÅ S Rmean Gmean Bmean Rdeviation Gdeviation Bdeviation\r

»ÃСͺ´ Ç - ¤ Òà©ÅÕÂè ¢Í§ÊÕá´§ (Red) ËÃ×Í Cr (à» ¹¤ Òâ´Â»ÃÐÁÒ³¢Í§¤ ÒÊÕá´§ - ÊÕà¢ÕÂÇ : r-g) ã¹Ë¹ Òµ Ò§» ¨¨Øº¹Ñ Gmean - ¤ Òà©ÅÕ è ÊÕà¢ÕÂÇ (Green) ËÃ×Í ¤ Ò¤ÇÒÁࢠÁáʧ (Y) ã¹Ë¹ Òµ Ò§» ¨¨Øº¹Ñ Bmean - ¤ Òà©ÅÕÂ è ¹ÊÕ¹Òéí à§Ô¹ (Blue) ËÃ×Í Cb (à» ¹¤ Òâ´Â»ÃÐÁÒ³¢Í§¤ ÒÊÕ¹Òéí à§Ô¹ - ÊÕ à¢ÕÂÇ : b-g) ã¹Ë¹ Òµ Ò§» ¨¨Øº¹Ñ Rdeviation - ¤ Ò¤ÇÒÁàºÕÂ è §àº¹¢Í§ÊÕá´§ (Red) ËÃ×Í Cr ã¹Ë¹ Òµ Ò§» ¨¨Øº¹Ñ Gdeviation - ¤ Ò¤ÇÒÁàºÕÂ è §àº¹¢Í§ÊÕà¢ÕÂÇ (Green) ËÃ×Í ¤ Ò¤ÇÒÁࢠÁáʧ (Y) 㹠˹ Òµ Ò§» ¨¨ØºÑ¹ Bdeviation - ¤ Ò¤ÇÒÁàºÕÂ è §àº¹¢Í§ÊÕ¹Òéí à§Ô¹ (Blue) ËÃ×Í Cb ã¹Ë¹ Òµ Ò§» ¨¨Øº¹Ñ ¤ Ò¤ÇÒÁàºÕè§ູ ËÁÒ¶֧ ¤ Òà©ÅÕèÂÊÑÁºÙó ¢Í§¤ÇÒÁᵡµ Ò§ÃÐËÇ Ò§¨íҹǹ¾Ô¡à«Å¡Ñº¤ Ò à©ÅÕÂè ¢Í§¾×¹é ·Õè Rmean

6. ªØ´¤íÒÊѧè àº×Íé §µ ¹ (Basic Command Set) 㹡ÒáµÑÇÍ ҧ»ÃСͺ¤íÒ͸ԺÒ¢ͧᵠÅФíÒÊÑ§è ¨Ð㪠â»Ãá¡ÃÁ RS-232 Terminal 㹡Òà áÊ´§¼Å¡Ò÷íÒ§Ò¹ â´ÂÁÕ¢ Í¡íÒ˹´ã¹¡ÒõԴµ ʹѧ¹Õé ºÍ´àõ 9,600 ËÃ×Í 115,200 ºÔµµ ÍÇÔ¹Ò·Õ â´Âµ ͧ¡íÒ˹´¨ÑêÁà»Íà àÅ×Í¡ºÍ´àõ ¢Í§âÁ´ÙÅ iV-CAM ãË µÃ§¡Ñ¹´ Ç l

l

¨íҹǹ¢ ÍÁÙÅ 8 ºÔµ

l

äÁ ÁºÕ µÔ ¾ÒÃÔµÕé

â´Â㹡Ò÷´ÊͺãË µÍ ÊÒ CX-4 ࢠҡѺâÁ´ÙÅ iV-CAM áÅоÍà µÍ¹Ø¡ÃÁ¢Í§¤ÍÁ¾ÔÇàµÍà ¨Ò¡¹Ñé¹à» ´â»Ãá¡ÃÁ RS-232 Terminal àÅ×Í¡µíÒá˹ §¾Íà µÍ¹Ø¡ÃÁ·Õèµ Í§¡ÒõԴµ Íã¹â»Ãá¡ÃÁ àÅ×Í¡ºÍ´àõ ¨íҹǹºÔµ¢ ÍÁÙÅ ºÔµ¾ÒÃÔµÕé Ê Ç¹¡Òû ͹¤íÒÊѧè ãË ¾ÁÔ ¾ ŧã¹Ë¹ Òµ Ò§ÍÔ¹¾Øµ·ÕÍè ÂÙ´ Ò ¹º¹ Ê Ç¹¼Å¡Ò÷íÒ§Ò¹ãË ´Ù¨Ò¡Ë¹ Òµ Ò§àÍÒµ ¾Øµ·Ò§´ ҹŠҧ¢Í§Ë¹ Òµ Ò§â»Ãá¡ÃÁ RS-232 Terminal


14

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

ÃÒÂÅÐàÍÕ´ªØ´¤íÒÊѧè àº×Íé §µ ¹¢Í§âÁ´ÙÅ iV-CAM «Ö§è àËÁ×͹¡ÑºâÁ´ÙÅ CMUcam1 ÁÕ´§Ñ ¹Õé

6.1 \r ËÃ×Í¡´¤Õ enter ËÃ×Í¡´¤Õ return

à» ¹¤íÒÊÑ§è ·ÕÊè § ä»ÂѧâÁ´ÙÅ iV-CAM à¾×Íè ¡íÒ˹´ãË ÍÂÙã ¹ÀÒÇÐʧºËÃ×ÍäÍà´ÔÅ àÁ×Íè âÁ´ÙÅ iVCAM ä´ ÃºÑ ¤íÒÊÑ§è ¹Õé áÅеդÇÒÁä´ ¨ÐÊ §¢ ͤÇÒÁ ACK µÍºÃѺ¡ÅѺÁÒ ¢Ö¹é ºÃ÷ѴãËÁ áÅе Í´ Ç à¤Ã×Íè §ËÁÒ : áÊ´§µÑÇÍÂ Ò§ä´ ´§Ñ ¹Õé : ACK :

¨Ö§ÊÒÁÒö㪠¤Òí ÊÑ§è ¹Õµé ÃǨÊͺ¡ÒõԴµ ÍÃÐËÇ Ò§âÁ´ÙÅ iV-CAM ¡Ñº¤ÍÁ¾ÔÇàµÍà ËÃ×ÍäÁâ¤Ã ¤Í¹â·ÃÅàÅÍà â´Â¶ ÒÊ § \r ä»ÂѧâÁ´ÙÅ iV-CAM ¶ Ò·Ø¡Í ҧ»¡µÔ ¨Ðä´ ÃºÑ ¢ ͤÇÒÁ ACK ¡ÅѺÁÒ

6.2 GM\r à» ¹¤íÒÊѧè Í Ò¹¤ Òà©ÅÕÂè ÊբͧÀҾ㹻 ¨¨Øº¹Ñ ·Ñ§é ÀÒ¾ â´ÂÁÕ¤Ò 16 ¶Ö§ 240 ÃٻẺ¢ ÍÁÙÅ·Õäè ´ ¨Ò¡ ¤íÒÊÑ§è ¹Õàé » ¹á¾ç¡à¡çµáºº S ÊÒÁÒö㪠¤Òí ÊÑ§è ¹Õµé ÃǨ¨Ñº¡ÒÃà»ÅÕÂè ¹á»Å§ã¹áµ ÅЩҡÍ ҧÍѵâ¹ÁѵäÔ ´ µÑÇÍ ҧ :SW 1 1 40 143

¡íÒ˹´¢¹Ò´¢Í§Ë¹ Òµ Ò§·Õµè ÃǨ¨ÑºÀÒ¾

ACK :GM ACK S 89 90 67 5 6 3

ÀÒ¾ÁÕ¤Ò à©ÅÕÂè ÊÕá´§ 89, ÊÕà¢ÕÂÇ 90, ÊÕ¹Òéí à§Ô¹ 67, ¤ ÒàºÕÂè §àº¹ÊÕá´§ 5, ¤ ÒàºÕÂè §àº¹ÊÕà¢ÕÂÇ 6, ¤ ÒàºÕÂè § ູÊÕ¹Òéí à§Ô¹ 3 àÁ×Íè âÁ´ÙÅ iV-CAM ·íÒ§Ò¹ã¹âËÁ´ÊÕ RGB

6.3 L1 value\r à» ¹¤íÒÊÑ§è ¤Çº¤ØÁ¡Ò÷íÒ§Ò¹¢Í§ LED ÊÕàËÅ×ͧ㹵íÒá˹ § Tracking. ÊÒÁÒö¡íÒ˹´¤ Òä´ ·Õ¾è ÒÃÒÁÔàµÍà value 3 ¤ Ò¤×Í 0 : » ´¡Ò÷íÒ§Ò¹¢Í§ LED 1 : ¢ÑºãË LED µÔ´ÊÇ Ò§ 2 : ¡íÒ˹´ãË ·Òí §Ò¹ã¹âËÁ´Íѵâ¹ÁÑµÔ àÁ×Íè µÃǨ¨ÑºÀÒ¾ä´ LED ¨Ö§µÔ´ÊÇ Ò§

µÑÇÍ ҧ à¢Õ¹¤íÒÊѧè à¾×Íè à» ´áÅл ´ LED ã¹µíÒá˹ § Track :L1 2 ACK :L1 0 ACK


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

15

6.4 MM mode\r

à» ¹¤íÒÊÑ觤Ǻ¤ØÁ¡Ò÷íÒ§Ò¹ã¹âËÁ´µÃǨ¨Ñº¨Ø´¡Ö觡ÅÒ§¾×é¹·ÕèÊÕËÃ×Í Middle Mass â´Â ¡íÒ˹´¤ Ò¼ Ò¹·Ò§¾ÒÃÒÁÔàµÍà mode ´Ñ§¹Õé 0 : äÁ àÅ×Í¡¡Ò÷íÒ§Ò¹ã¹âËÁ´µÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè Õ 1 : àÅ×Í¡¡Ò÷íÒ§Ò¹ã¹âËÁ´µÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè Õ (à» ¹¤ ÒµÑ§é µ ¹) àÁ×Íè µÃǨ¨Ñº´ ǤíÒÊѧè TC ¨Ðä´ ¢Í ÁÙÅá¾ç¡à¡çµáºº M 2 : àÅ×Í¡¡Ò÷íÒ§Ò¹ã¹âËÁ´µÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè ¾Õ Ã ÍÁ¡Ñº¤Çº¤ØÁà«Íà âÇÁÍàµÍà ã¹âËÁ´ ¹Õàé ËÁÒÐÊíÒËÃѺ¡ÒäǺ¤ØÁãË ¡Å ͧËÁعà¾×Íè µÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè Õ â´Âµ ͧµÔ´µÑ§é âÁ´ÙšŠͧࢠҡѺ᡹ËÁع ¢Í§à«Íà âÇÁÍàµÍà ´Ç  4 : àÅ×Í¡ãË Á¡Õ ÒõԴµÒÁµíÒá˹ §¢Í§á¡¹à«Íà âÇÁÍàµÍà 8 : àÅ×Í¡ãË áÊ´§µíÒá˹ §¢Í§à«Íà âÇÁÍàµÍà â´ÂáÊ´§ÃٻẺ¢ ÍÁÙÅà» ¹á¾ç¡à¡çµáºº N 14 : à» ¹¡ÒáíÒ˹´ãË ·Òí §Ò¹ã¹âËÁ´µÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè ¾Õ Ã ÍÁ¡Ñº¤Çº¤ØÁà«Íà âÇÁÍàµÍà ãË µ´Ô µÒÁ¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè Õ ¾Ã ÍÁ¡Ñ¹¹Ñ¹é ÂѧãË áÊ´§¤ ÒµíÒá˹ §¢Í§à«Íà âÇÁÍàµÍà 㹢³Ð·íÒ§Ò¹´ ÇÂ

´Ñ§¹Ñ鹤 Ңͧ¾ÒÃÒÁÔàµÍà mode ·Õè¤ÇÃàÅ×͡㪠¤×Í 1 2 14

㹡óշäÕè Á µÍ à«Íà âÇÁÍàµÍà 㹡óշäÕè Á µÍ §¡Ò÷ÃÒº¤ ÒµíÒá˹ §¢Í§à«Íà âÇÁÍàµÍà áÅР㹡óշµÕè Í §¡Ò÷ÃÒº¤ ÒµíÒá˹ §¢Í§à«Íà âÇÁÍàµÍÃ

µÑÇÍ ҧ·Õè 1

:MM 0 àÅ×Í¡» ´¡ÒõÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè Õ ACK :TC ACK C 38 82 53 128 35 98 C 38 82 53 128 35 98

µÑÇÍ ҧ·Õè 2

:MM 1 àÅ×Í¡à» ´¡ÒõÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè Õ ACK :TC ACK M 29 44 2 1 71 141 82 16 M 25 83 2 1 72 143 148 30

µÑÇÍ ҧ·Õè 3

:MM 14 àÅ×Í¡à» ´¡ÒõÃǨ¨Ñº¨Ø´¡Ö§è ¡ÅÒ§¾×¹é ·ÕÊè Õ ¾Ã ÍÁ¡Ñº¢Ñº, µÔ´µÒÁ áÅÐáÊ´§µíÒá˹ §à«Íà âÇÁÍàµÍà ACK :TC ACK N 91 34 47 2 1 80 83 77 25 N 88 31 32 2 1 80 80 145 48


16

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

6.5 NF active\r à» ¹¤íÒÊÑ§è ¤Çº¤ØÁ¡Ò÷íÒ§Ò¹¢Í§Ç§¨Ã¡ÃͧÊÑ­­Ò³Ãº¡Ç¹ â´Â¡íÒ˹´¼ Ò¹¾ÒÃÒÁÔàµÍà active 0 - àÅ×Í¡ãË Ç§¨Ã¡ÃͧÊÑ­­Ò³Ãº¡Ç¹äÁ ·Òí §Ò¹ 1 - àÅ×Í¡ãË Ç§¨Ã¡ÃͧÊÑ­­Ò³Ãº¡Ç¹·íÒ§Ò¹ à» ¹¤ ÒµÑ§é µ ¹

µÑÇÍ ҧ à¢Õ¹¤íÒÊѧè à¾×Íè ËÂØ´¡Ò÷íÒ§Ò¹¢Í§Ç§¨Ã¡ÃͧÊÑ­­Ò³Ãº¡Ç¹ :NF 0 ACK :

6.6 PM mode\r à» ¹¤íÒÊÑ觷Õè¡íÒ˹´ãË âÁ´ÙÅ iV-CAM ·íÒ§Ò¹ã¹âËÁ´â¾Å (Poll Mode) â´Â¡íÒ˹´¼ Ò¹ ¾ÒÃÒÁÔàµÍà mode 0 - àÅ×Í¡ãË âÁ´ÙÅ iV-CAM äÁ ·Òí §Ò¹ã¹âËÁ´â¾Å à» ¹¤ ÒµÑ§é µ ¹ 1 - àÅ×Í¡ãË âÁ´ÙÅ iV-CAM ·íÒ§Ò¹ã¹âËÁ´â¾Å

ã¹âËÁ´¹Õàé » ¹¡ÒáíÒ˹´ãË âÁ´ÙÅ iV-CAM Ê §¢ ÍÁÙÅÀÒ¾ÍÍ¡ÁÒà¾Õ§˹֧è á¾ç¡à¡çµ à¾×Íè ª Ç ãË äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ¤ÇÒÁàÃçǵèÒí ·Õ¹è Òí ÁÒµ Íà ÇÁ´ ÇÂÊÒÁÒöÃѺ¢ ÍÁÙÅÀÒ¾ä´ ·¹Ñ áµ ¹¹Ñè  ÍÁÊ §¼Å ¶Ö§¤ÇÒÁàÃçÇ㹡ÒõÃǨ¨ÑºÀÒ¾ (frame rate) Ŵŧ ¨Ö§·íÒãË äÁâ¤Ã¤Í¹â·ÃÅàÅÍà ÊÒÁÒöà¡çº¢ ÍÁÙÅ ÀÒ¾ä´ Í ҧ¨íÒ¡Ñ´ ´Ñ§¹Ñé¹àÁ×èÍ·íÒ§Ò¹ã¹âËÁ´¹Õé¡ÑºäÁâ¤Ã¤Í¹â·ÃÅàÅÍà ¤ÇÒÁàÃçǵèíÒ¤ÇÃàÅ×͡㪠㹠¡ÒõÃǨ¨ÑºÀÒ¾·ÕÁè ¤Õ ÇÒÁ¹Ô§è áÅÐÁÕ¤ÇÒÁᵡµ Ò§äÁ ÁÒ¡ ÃÇÁ¶Ö§¤ÇÃà» ¹ÀÒ¾·ÕÁè ÊÕ àÕ ´ÕÂÇ·Õªè ´Ñ à¨¹áÅÐ â´´à´ ¹ µÑÇÍ ҧ :PM 1 ACK :TC 50 20 90 130 70 255 ACK :

¢ ÍÁÙÅÀҾ˹֧è á¾ç¡à¡çµ·ÕÊè § ÁÒ¨Ò¡âÁ´ÙÅ iV-CAM


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

17

6.7 RM bit_flags\r à» ¹¤íÒÊÑè§àÅ×Í¡âËÁ´¡Òö Ò·ʹ¢ ÍÁÙÅ´Ôº¢Í§ÀÒ¾·ÕèµÃǨ¨ÑºáººÍ¹Ø¡ÃÁ â´Â¡íÒ˹´¼ Ò¹ ¾ÒÃÒÁÔàµÍà bit_flags ÁÕ¢¹Ò´ 3 ºÔµ ´Ñ§¹Õé ºÔµ 0 ¡íÒ˹´ãË âÁ´ÙÅ¡Å Í§Ê §¢ ÍÁÙÅàÍÒµ ¾µØ à» ¹¢ ÍÁÙÅ´ÔºÃдѺ亵 (raw byte) ºÔµ 1 ¡íÒ˹´ãË âÁ´ÙšŠͧäÁ µÍ §Ê §ÃËÑÊ ACK áÅÐ NCK à¾×Íè µÍºÃѺ¤íÒÊÑ§è ºÔµ 2 ¡íÒ˹´ãË âÁ´ÙšŠͧÃѺ¢ ÍÁÙÅÍÔ¹¾Øµà» ¹¢ ÍÁÙÅ´ÔºÃдѺ亵 àÁ×Íè ¡íÒ˹´ãË ·Òí §Ò¹ã¹âËÁ´ ¹ÕËé Åѧ¨Ò¡à¢Õ¹¤íÒÊѧè à¾×Íè ¡íÒ˹´âËÁ´ã¹ 2 亵 áááÅ Ç ÁÕ¡ÒÃà¢Õ¹¤íÒÊѧè à¾×Íè ¡íÒ˹´¨íҹǹ¢ ÍÁÙÅ·Õµè Í §¡ÒÃÃѺ áÅ Ç ¢ ÍÁÙÅ·ÕÊè § ä»ÂѧâÁ´ÙšŠͧ¡çäÁ µÍ §Ê §ÃËÑÊ RETURN µ Í· ÒÂÍÕ¡

µÑÇÍ ҧ

:RM 1 ¡íÒ˹´ãË âÁ´ÙÅ¡Å Í§Ê §¢ ÍÁÙÅàÍÒµ ¾µØ à» ¹¢ ÍÁÙÅ´ÔºÃдѺ亵 ACK :TC 50 20 90 130 70 255 ACK ¢ ÍÁÙÅ´Ôº¢Í§ÀÒ¾·Õäè ´ ¨Ò¡¡ÒõÃǨ¨Ñº´ ǤíÒÊѧè TC C>%k(ai Ck$&,.L

(raw byte)

6.8 RS \r à» ¹¤íÒÊѧè ÃÕà«çµâÁ´ÙÅ iV-CAM µÑÇÍ ҧ

Ê §¤íÒÊѧè ÃÕà«çµä»ÂѧâÁ´ÙÅ iV-CAM

:rs ACK CMUcam v1.12 :

6.9 SW [x

y x2 y2] \r

à» ¹¤íÒÊÑ觡íÒ˹´¢¹Ò´¢Í§Ë¹ Òµ Ò§·ÕèµÃǨ¨ÑºÀÒ¾¢Í§âÁ´ÙšŠͧ ´ Ç¡ÒáíÒ˹´¾Ô¡Ñ´·Ñé§ á¹ÇµÑ§é áÅÐá¹Ç¹Í¹ ·íÒãË à¡Ô´¡ÃͺÊÕàè ËÅÕÂè Á¢Ö¹é â´Â¡ÒáíÒ˹´¾Ô¡´Ñ ¹Ñ¹é ¨ÐàÃÔÁè ¨Ò¡¾Ô¡´Ñ ÁØÁ« Òº¹ (x,y) áÅТÇÒÅ Ò§ (x2, y2) Ê Ç¹¨Ø´àÃÔèÁµ ¹¢Í§ÀÒ¾¨Ð¶Ù¡Â ÒÂä»Âѧ¨Ø´º¹« Ò¢ͧ¾Ô¡Ñ´·Õè¡íÒ˹´¢Öé¹ ãËÁ ¤íÒÊÑ觹Õéµ Í§¶Ù¡¡íÒ˹´¡ ͹·Õè¨ÐàÃÔèÁµ ¹¡Ãкǹ¡ÒûÃÐÁÇżÅÀÒ¾ ¶ ÒËÒ¡äÁ ÁÕ¡ÒáíÒ˹´ ¾ÒÃÒÁÔàµÍà µ Í· Ò¤íÒÊÑè§ ¢¹Ò´¢Í§Ë¹ Òµ Ò§·ÕèµÃǨ¨ÑºÀÒ¾¨Ðà» ¹¢¹Ò´ÊÙ§ÊØ´¤×Í 80 x 143 ¨Ø´ ¹Ñè¹ ¤×Í 1,1,80,143 µÑÇÍ ҧ :SW 35 65 45 75 ACK :

à» ¹¤íÒÊѧè àÅ×Í¡¾×¹é ·Õµè ç¡ÅÒ§¢Í§¨ÍÀÒ¾·Ñ§é ËÁ´ (x=35, y=65, x2=45, y2=75)


18

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

6.10 TC [Rmin

Innovative Experiment Co.,Ltd.

Rmax Gmin Gmax Bmin Bmax]\r

à» ¹¤íÒÊÑ§è ¡íÒ˹´ãË âÁ´ÙšŠͧµÃǨ¨ÑºÊÕ·ÊÕè ¹ã¨ «Ö§è µ ͧ·íÒ§Ò¹µ ͨҡ¤íÒÊѧè TW â´Â¤íÒÊѧè TC ¨ÐãË ¤Ò µèÒí ÊØ´áÅÐÊÙ§ÊØ´¢Í§ÊÕã¹âËÁ´ RGB ËÃ×Í CrYCb ¢Ö¹é ÍÂÙ¡ ºÑ ¡ÒáíÒ˹´¡ ͹˹ Ò¹Õé Ê Ç¹ ÃٻẺ¢Í§¢ ÍÁÙÅÁÕ´Ç Â¡Ñ¹ 2 Ẻ¤×Í á¾ç¡à¡çµ M áÅÐ C «Ö§è ¡íÒ˹´ÁÒ¨Ò¡¤íÒÊѧè MM ËÒ¡äÁ Á¡Õ Òà ¡íÒ˹´ÃٻẺ¢ ÍÁÙÅà» ¹¾ÔàÈÉ ã¹¡ÒáÃзíÒ¤íÒÊÑè§ TC ¨ÐãË ¼ÅÅѾ¸ à» ¹á¾ç¡à¡çµ M «Öè§ÁÕÃٻẺ ´Ñ§¹Õé M mx my x1 y1 x2 y2 pixels confidence

¶ ÒËÒ¡ä´ ¤ Ò¡ÅѺÁÒà» ¹ 00 áÊ´§Ç Ò äÁ ÁÕÊÕ·Õèµ Í§¡ÒõÃǨ¨Ñº ÊíÒËÃѺ¤ Ò¤ÇÒÁÁÑè¹ã¨ËÃ×Í Confidence à» ¹ÍѵÃÒÊ Ç¹¢Í§¨íҹǹ¾Ô¡à«ÅÊÕ·Õè¹Ñºä´ ÀÒÂã¹¾×é¹·Õè·ÕèµÃǨ¨Ñº¡Ñº¾×é¹·ÕèÃÇÁ·Ñé§ËÁ´ â´Â¤ Ò·ÕÊè § ¡ÅѺÁҹѹé ÁÕ¤Ò ÍÂÙà ÐËÇ Ò§ 0 ¶Ö§ 255 ÀÒÂãµ ¡Ò÷íÒ§Ò¹ã¹ÀÒÇл¡µÔ¤Ò Confidence ¹Õ¨é Ð ÁÒ¡¡Ç Ò 50 áµ ¶Ò ËÒ¡ä´ µÒèí ¡Ç Ò 8 ¶×ÍÇ Ò ¤Ø³ÀÒ¾¢Í§ÀÒ¾¹Ñ¹é äÁ ´Õ ¹Í¡¨Ò¡¹Ñ¹é ÂѧáÊ´§¼Å¡Ò÷íÒ§Ò¹·Ò§ÎÒà ´áÇà ¼Ò ¹·Ò§ LED ã¹µíÒá˹ § Track ´ Ç â´Â àÁ×è͵ÃǨ¨Ñº¾ºàÁç´ÊÕ·Õèʹ㨠LED ¨ÐµÔ´ÊÇ Ò§ my my

my my mx

mx

mx

mx

¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕ·Õèʹ㨠(middle mass of color) ¤ Ò¾Ô¡Ñ´¤×Í mx, my

¤íÒÊÑè§ Track Color (TC) à» ¹¡ÒáíÒ˹´ãË âÁ´ÙšŠͧµÃǨ¨ÑºÀÒ¾·ÕèÍÂÙ µÃ§Ë¹ Ò·ÕèÁÕ¤ ҵç¡Ñº¤ Ңͧ¢ ÍÁÙÅÊÕ·Õèä´ ÁÒ¨Ò¡¤íÒÊÑè§ Track Window ¡ ͹˹ Ò¹Õéà· Ò¹Ñé¹ â´Â¨Ðʹ㨷Õè¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕ·Õèʹ㨠(middle mass of color)

µÑÇÍ ҧ :TC 130 255 0 0 30 30

à» ¹¡ÒÃàÅ×Í¡µÃǨ¨ÑºÊÕá´§ (R) 㹪 ǧ 130 ¶Ö§ 255, äÁ µÃǨ¨ÑºÊÕà¢ÕÂÇ, µÃǨ¨ÑºÊÕ¹Òéí à§Ô¹·ÕÁè ¤Õ Ò 30 ACK M 50 80 38 82 53 128 35 98

ä´ ¨´Ø ¡Ö§è ¡ÅÒ§ÊÕ෠ҡѺ¾Ô¡´Ñ x=50, y=80 ¾×¹é ·Õ·è µÕè ÃǨ¨Ñºä´ ÍÂÙã ¹¡Ãͺ·ÕÅè Í Á´ Ǿԡ´Ñ (x1,y1) = (38,82) ¡Ñº (x2,y2) = (53,128) ¤ Ò¾Ô¡à«Å෠ҡѺ 35 áÅÐ Confidence ෠ҡѺ 98


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

19

6.11 TW \r à» ¹¤íÒÊÑ觵ÃǨ¨ÑºÊÕ·ÕèµíÒá˹ §¡Ö觡ÅÒ§¢Í§Ë¹ Òµ Ò§ÀÒ¾» ¨¨ØºÑ¹ ËÅѧ¨Ò¡ä´ ÁÕ¡ÒõÃǨ¨Ñº ÀҾࢠÒÁÒã¹âÁ´ÙšŠͧáÅ Ç ¤íÒÊÑ§è ¹Õ¨é ж١àÃÕ¡ãË ·Òí §Ò¹à¾×Íè à¡çº¢ ÍÁÙŨشÊÕ ´Ñ§¹Ñ¹é àÁ×Íè ÁÕ¡ÒáÃзíÒ ¤íÒÊѧè TW ¹Õé µ ͧ¹íÒÇѵ¶ØÊ·Õ µÕè Í §¡ÒõÃǨ¨ÑºÁÒÇÒ§äÇ Ë¹ ÒâÁ´ÙšŠͧ ¾Ã ÍÁ¡Ñ¹¹Ñ¹é LED ã¹µíÒáË ¹ § Track ¨ÐµÔ´¤ Ò§ à¾×èÍà¡çº¢ ÍÁÙÅàÁç´ÊÕ ¨¹¡Ç Ò¨ÐËÂØ´¡Ò÷íÒ§Ò¹ «Ö觷íÒä´ â´Â¡ÒÃÊ §ÃËÑÊáÍÊ¡Õé ¢Í§»ØÁ Return ËÃ×Í Enter «Ö§è ෠ҡѺ 13 (°Ò¹ÊÔº) Ê Ç¹ÃٻẺ¢Í§¢ ÍÁÙÅÁÕ´Ç Â¡Ñ¹ 3 Ẻ¤×Í á¾ç¡ à¡çµ S, M áÅÐ Câ´Âá¾ç¡à¡çµ S ¨Ðà» ¹ÃٻẺ¢Í§¢ ÍÁÙŪشáá·ÕÍè Í¡ÁÒ¡ ͹àÊÁÍ ¨Ò¡¹Ñ¹é ¢ ÍÁÙÅ ã¹á¾ç¡à¡çµµ Í仨Ðà» ¹á¾ç¡à¡çµ M (à» ¹¤ ÒµÑ駵 ¹) ËÃ×Í C «Ö觡íÒ˹´ÁÒ¨Ò¡¤íÒÊÑè§ MM ËÒ¡äÁ ÁÕ ¡ÒáíÒ˹´ÃٻẺ¢ ÍÁÙÅà» ¹¾ÔàÈÉ ã¹¡ÒáÃзíÒ¤íÒÊÑè§ TC ¨ÐãË ¼ÅÅѾ¸ à» ¹á¾ç¡à¡çµ M ¤íÒÊÑè§ Track Window (TW) à» ¹¡ÒáíÒ˹´ãË âÁ´ÙšŠͧ µÃǨ¨ÑºÀÒ¾·ÕèÍÂÙ µÃ§Ë¹ ÒµÒÁ¢¹Ò´·Õè¡íÒ˹´ ¨Ò¡¤íÒÊÑè§ Set Window (SW) áÅÐà¡çº¢ ÍÁÙÅã¹áµ Åоԡà«Å ¨Ò¡¹Ñé¹ ¹íÒÁÒ¤íҹdzà¾×èÍËÒ¤ ÒÊբͧÀÒ¾

Í ҧäáçµÒÁ¡ ͹¡ÃзíÒ¤íÒÊÑ觹Õé ¤ÇÃÁÕ¡ÒáíÒ˹´¾×é¹·ÕèµÃǨ¨ÑºÀÒ¾àÊÕ¡ ͹´ ǤíÒÊÑè§ SW ËÒ¡äÁ ÁÕ ¤ ÒµÑ§é µ ¹¢Í§¾×¹é ·Õ·è µÕè ÃǨ¨Ñº¨Ð෠ҡѺ 80 x 143 ¨Ø´ µÑÇÍ ҧ :TW ACK S 240 50 40 12 7 8 C 2 40 12 60 10 70 C 3 41 12 61 11 70 C 2 40 12 60 13 70 C 3 42 12 62 9 70 C 4 45 12 60 8 70


20

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

7. ¡Ò÷´ÊͺâÁ´ÙÅ iV-CAM ¡Ñº i-Stamp ºÍà ´àºÊÔ¡áʵÁ» 2SX µÑÇÍ ҧ·Õè¨Ð¹íÒàʹ͵ Í仹ÕéÁÕ´ Ç¡ѹ 3 ÅѡɳФ×Í 1. ¤Çº¤ØÁ¡ÒÃáÊ´§¼Å¢Í§ LED ã¹µíÒá˹ § Track ¢Í§âÁ´ÙÅ iV-CAM 2. µÃǨ¨ÑºÇѵ¶Øà» ÒËÁÒÂáÅ ÇÍ Ò¹¤ ÒàÁç´ÊÕ 3. µÃǨ¨ÑºÇѵ¶Øà» ÒËÁÒÂáÅзíÒ¡Òä ¹ËÒÇ Ò ¢³Ð¹ÕéÇѵ¶Øà» ÒËÁÒÂÍÂÙ ã¹µíÒá˹ §ã´ ¡Ò÷´Êͺ¡Ñº i-Stamp ÊÒÁÒö¡ÃзíÒä´ ¡ºÑ 3 ºÍà ´¤×Í JX-2SX plus ºÍà ´¾Ñ²¹Òâ¤Ã§§Ò¹ ÊíÒËÃѺ i-Stamp, RBX-Stamp24 ºÍà ´¤Çº¤ØÁËع ¹µ ÊÒí ËÃѺ i-Stamp áÅÐ NX-BS2SX ºÍà ´·´Åͧ à͹¡»ÃÐʧ¤ ÊÒí ËÃѺ i-Stamp â´Â·Ñ§é ÊÒÁºÍà ´¹Ñ¹é µ ͧµÔ´µÑ§é i-Stamp ŧº¹ºÍà ´´ Ç ¡ÒÃàª×Íè Áµ Í ·Ñ§é ËÁ´¨Ð㪠ǧ¨Ãà´ÕÂǡѹ à¾ÃÒзѧé 3 ºÍà ´¹Ñ¹é ä´ ¡Òí ˹´¢Ò¾Íà µ¢Í§ i-Stamp ãË ãª §Ò¹ä´ Í ҧ à» ¹ÍÔÊÃÐÍÂÙá Å Ç Ç§¨Ã¡ÒÃàª×Íè Áµ ÍáÊ´§´Ñ§ÃÙ»·Õè 3

7.1 ¡ÒÃàµÃÕÂÁ¡ÒÃÊíÒËÃѺâÁ´ÙÅ iV-CAM (1) »Å´¨ÑÁê à»Íà BD1 áÅÐ BD2 à¾×Íè àÅ×Í¡ºÍ´àõ 115,200 ºÔµµ ÍÇÔ¹Ò·Õ (2) µ ÍâÁ´ÙÅ iV-CAM ࢠҡѺ¾Íà µÍ¹Ø¡ÃÁ¢Í§¤ÍÁ¾ÔÇàµÍà áÅ Çà» ´â»Ãá¡ÃÁ CMUcam2GUI à¾×èÍàµÃÕÂÁ¡ÒûÃѺ¤ÇÒÁ¤ÁªÑ´ËÃ×Í»ÃѺ⿡ÑÊ (3) ¹íÒÇѵ¶Øà» ÒËÁÒÂÁÒÇÒ§äÇ ·ËÕè ¹ ÒàÅ¹Ê ¢Í§âÁ´ÙÅ iV-CAM ã¹ÃÐÂеÒÁµ ͧ¡Òà ᵠäÁ ¤Çà ÇÒ§ã¡Å ÁÒ¡à¡Ô¹ä» (4) ¨ ÒÂä¿àÅÕÂé §á¡ âÁ´ÙÅ iV-CAM ´íÒà¹Ô¹¡ÒõÃǨ¨ÑºÀÒ¾ÁÒáÊ´§·Õâè »Ãá¡ÃÁ CMUcam2GUI à¾×è͵ÃǨÊͺ¤ÇÒÁªÑ´ ËÒ¡ÂѧäÁ ä´ ãË »ÃѺ¡Ãк͡àÅ¹Ê áŠǵÃǨ¨ÑºÀÒ¾ÍÕ¡¤ÃÑé§ ·íÒઠ¹¹Õ騹 ¡ÃзÑè§ä´ ÀÒ¾·Õè¤ÁªÑ´ (5) » ´ä¿àÅÕÂé § áÅлŴÊÒÂàª×Íè Áµ ;Íà µÍ¹Ø¡ÃÁÍÍ¡ áŠǵ ͨÑÁê à»Íà BD1 áÅÐ BD2 à¾×Íè àÅ×Í¡ºÍ´àõ໠¹ 9,600 ºÔµµ ÍÇÔ¹Ò·Õ

7.2 ¡Ò÷´Êͺ -1 : ¤Çº¤ØÁ LED ·Õµè Òí á˹ § Track ¢Í§âÁ´ÙÅ iV-CAM (1) àª×Íè Áµ ÍâÁ´ÙÅ iV-CAM ¡Ñº i-Stamp â´Âµ Í RX ¢Í§âÁ´ÙÅ iV-CAM ࢠҡѺ P2 áÅÐ TX ࢠҡѺ P3 (2) à» ´â»Ãá¡ÃÁàºÊÔ¡áʵÁ» àÍ´ÔàµÍà (àÇÍà ª¹Ñ 2 ¢Ö¹é ä») áÅ Çà¢Õ¹â»Ãá¡ÃÁµ Í仹Õé


iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

µ ͨÑÁê à»Íà BD2 áÅÐ BD1 à¾×Íè àÅ×Í¡ºÍ´àõ 9,600 ºÔµµ ÍÇÔ¹Ò·Õ

¢Ò¾Íà µ¢Í§ i-Stamp º¹ Stamp-BOX DEMO

5V TX RX GND VISION

BD1 BD2 SLAVE

2

2!

4:

6:

-

+

-

+

SERVO Vin +

5

iV-CAM firmware

ON

RS-232

6V

µ Íä¿àÅÕÂé § +6V ±5% àÅ×Í¡µ Í·Õãè ´·ÕËè ¹Ö§è

´ Ò¹ËÅѧ iV-CAM

ẵàµÍÃÕè 1.5V ¢¹Ò´ AA 4 ¡ ͹*

* äÁ á¹Ð¹íÒãË ãª áºº»ÃШØä´ à¾ÃÒÐÁÕáç´Ñ¹ÃÇÁà¾Õ§ 4.8V ¤ÇÃ㪠ẺÍÑŤÒäŹ (alcaline) ËÃ×ÍÍÍ¡«Ôäô (oxyride) ÃÙ»·Õè 3 áÊ´§¡Òõ Íǧ¨Ãà¾×Íè ·´ÊͺâÁ´ÙÅ iV-CAM ¡Ñº i-Stamp ºÍà ´àºÊÔ¡áʵÁ» 2SX

l

21


22

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

' {$STAMP BS2sx} baud CON 240 tx CON 3 rx CON 2 PAUSE 1000 ' Send "reset" to sync CMUcam and Stamp SEROUT tx, baud, ["RS", CR] SERIN rx, baud, [WAIT (":")] PAUSE 100 Main: ' Flash the tracking LED ' Send command - Turn on track LED SEROUT tx, baud, ["L1 1",CR] SERIN rx, baud, [WAIT (":")] PAUSE 100 DEBUG "LED on ACK: received OK",CR PAUSE

500

' Wait 1/2 second

' Send command - Set track LED back to auto mode SEROUT tx, baud, ["L1 2",CR] SERIN rx, baud, [WAIT (":")] PAUSE 100 DEBUG PAUSE

"LED off ACK: received OK",CR 500

GOTO

Main

(3) ºÑ¹·Ö¡ä¿Å ªÍ×è CAMTST01.BSX (4) ¨ ÒÂä¿ãË á¡ ·§Ñé i-Stamp áÅÐâÁ´ÙÅ iV-CAM (5) ´Òǹ âËÅ´â»Ãá¡ÃÁä»Âѧ i-Stamp ˹ Òµ Ò§ Debug Terminal ¶Ù¡à» ´¢Öé¹ÁÒ ¾Ã ÍÁ¡ÑºáÊ´§¼Å¡Ò÷íÒ§Ò¹¢Í§ LED ·Õµè Òí á˹ § Track ´Ñ§ÃÙ» ã¹¢³Ð·Õè LED ÊÕàËÅ×ͧ·Õµè Òí á˹ § Track ¨ÐµÔ´¡Ð¾ÃÔºÊÑÁ¾Ñ¹¸ ¡ºÑ ¡ÒÃÊ § ¢ ͤÇÒÁä»áÊ´§·ÕËè ¹ Òµ Ò§ Debug Terminal


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

23

7.3 ¡Ò÷´Êͺ -2 : Í Ò¹¤ ÒàÁç´ÊÕ¨Ò¡¡ÒõÃǨ¨ÑºÀÒ¾¢Í§âÁ´ÙÅ iV-CAM (1) Âѧ¤§àª×Íè Áµ ÍâÁ´ÙÅ iV-CAM ¡Ñº i-Stamp àËÁ×͹¡Ñº¡Ò÷´Êͺ - 1 â´Âµ Í RX ࢠҡѺ P2 áÅÐ TX ࢠҡѺ P3 ¢Í§ i-Stamp (2) à» ´â»Ãá¡ÃÁàºÊÔ¡áʵÁ» àÍ´ÔàµÍà áÅ Çà¢Õ¹â»Ãá¡ÃÁµ Í仹Õé RcvData baud tx rx

VAR CON CON CON

Byte(10) 240 3 2

‘ Pause 1 second for CMUcam startup PAUSE 1000 ‘ Send “reset” to sync CMUcam and Stamp SEROUT tx, baud, [“RS”, CR] SERIN rx, baud, [WAIT (“:”)] DEBUG “Reset” ,CR PAUSE 1000 ‘ Track SEROUT SERIN PAUSE

LED on tx, baud, [“L1 1”,CR] rx, baud, [WAIT (“:”)] 100

‘ Turn on auto adjust for 5 seconds DEBUG “Auto Adjusting...” , CR SEROUT tx, baud, [“CR 18 44”,CR] SERIN rx, baud, [WAIT (“:”)] PAUSE 100 ‘ Pause 5 seconds for CMUcam to auto adjust to lighting conditions PAUSE 5000 ‘ Turn off auto adjust SEROUT tx, baud, [“CR 18 44 19 32”,CR] SERIN rx, baud, [WAIT (“:”)] DEBUG “Finish..”, CR PAUSE 100 ‘ Track LED auto mode SEROUT tx, baud, [“L1 2”,CR] SERIN rx, baud, [WAIT (“:”)] PAUSE 100 DEBUG

“Place color target”, CR


24

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

‘ Give user time to place color target close in front of camera PAUSE 5000 ‘ Send command - Set poll mode - only sends one return packet ‘ of data after each command - reduces data flow DEBUG “Finish.” , CR SEROUT tx, baud, [“PM 1”,CR] SERIN rx, baud, [WAIT (“:”)] PAUSE 100 ‘ Send command - Set raw data mode - also suppress Ack:/Nak: to ‘ further reduce serial data SEROUT tx, baud, [“RM 3”,CR] PAUSE 100 ‘ Track Window command looks at the center of CMUcam image ‘ grabs the color information and sends to the Track Color function ‘ Send command - Track window SEROUT tx, baud, [“TW”,CR] ‘ Display the S Statisics packet from TW command SERIN rx, baud, [STR RcvData\8] ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘

Raw mode S packet data format: 0 Byte always 255 1 Byte always Character S 2 Byte Red Mean 3 Byte Green Mean 4 Left Blue Mean 5 Left Red Deviation 6 Right Green Deviation 7 Right Blue Deviation

‘ Display all returned camera S Statistics packet data to PC debug screen DEBUG “Red Mean ”,DEC RCVData(2) ,CR DEBUG “Green Mean ”,DEC RCVData(3) ,CR DEBUG “Blue Mean ”,DEC RCVData(4) ,CR DEBUG “Red Deviation ”,DEC RCVData(5) ,CR DEBUG “Green Deviation ”,DEC RCVData(6) ,CR DEBUG “Blue Deviation ”,DEC RCVData(7) ,CR DEBUG “ ”, CR ‘ Ignore the first M packet from TW PAUSE 2000


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

25

Main: PAUSE 100 ‘ Send command - Track color (with no arguments) ‘ will track last color grabbed by TW command SEROUT tx, baud, [“TC”,CR] ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘ ‘

Raw mode M packet data format: 0 Byte always 255 1 Byte always Character M 2 Byte Middle Mass X 3 Byte Middle Mass Y 4 Left corner X 5 Left corner Y 6 Right corner X 7 Right corner Y 8 Byte is Pixels 9 Byte is Confidence

SERIN rx, baud, [STR RcvData\10] ‘ Display all returned camera M Track Color packet data to PC debug screen DEBUG CLS DEBUG “Middle Mass X ”,DEC RCVData(2) ,CR DEBUG “Middle Mass Y ”,DEC RCVData(3) ,CR DEBUG “Left Corner X ”,DEC RCVData(4) ,CR DEBUG “Left Corner Y ”,DEC RCVData(5) ,CR DEBUG “Right corner X ”,DEC RCVData(6) ,CR DEBUG “Right Corner Y ”,DEC RCVData(7) ,CR DEBUG “Pixels ”,DEC RCVData(8) ,CR DEBUG “Confidence ”,DEC RCVData(9) ,CR GOTO Main

(3) ºÑ¹·Ö¡ä¿Å ªÍ×è CAMTST02.BSX (4) ¨ ÒÂä¿ãË á¡ ·§Ñé i-Stamp áÅÐâÁ´ÙÅ iV-CAM (5) ´Òǹ âËÅ´â»Ãá¡ÃÁä»Âѧ i-Stamp (6) ˹ Òµ Ò§ Debug Terminal ¶Ù¡à» ´¢Ö¹é à¾×Íè áÊ´§ÊÀÒÇСÒ÷íÒ§Ò¹ i-Stamp Ê §¤íÒÊѧè ä» ÃÕà«çµâÁ´ÙÅ iV-CAM áÅ ÇÃÍÃѺ¡Òõͺ¡ÅѺ¨Ò¡âÁ´ÙÅ iV-CAM àÁ×Íè ä´ ÃºÑ ¡Òõͺʹͧ i-Stamp ¨ÐáÊ´§ ¢ ͤÇÒÁ Reset ·ÕËè ¹ Òµ Ò§ Debug Terminal (7) ¨Ò¡¹Ñ¹é i-Stamp ¨ÐÊ §¤íÒÊѧè 令Ǻ¤ØÁãË LED ·Õµè Òí á˹ § Track µÔ´ÊÇ Ò§ µ Í´ ǤíÒÊÑ§è ¡íÒ˹´ãË âÁ´ÙšŠͧ»ÃѺ¤ Ò¤ÇÒÁÊÇ Ò§¢Í§¨ÍÀÒ¾Íѵâ¹ÁÑµÔ «Ö§è 㪠àÇÅÒ 5 ÇÔ¹Ò·Õ â´ÂáÊ´§¡Ò÷íÒ§Ò¹ ¼ Ò¹·Ò§Ë¹ Òµ Ò§ Debug Terminal ´ Ç¢ ͤÇÒÁ Auto Adjusting àÁ×Íè ¤Ãº 5 ÇÔ¹Ò·Õ i-Stamp ¨ÐÊ § ¤íÒÊÑ§è » ´¡Ò÷íÒ§Ò¹Íѵâ¹ÁÑµÔ àÁ×Íè âÁ´ÙšŠͧµÍºÃѺ i-Stamp ¨ÐÊ §¢ ͤÇÒÁ Finish ä»·ÕËè ¹ Òµ Ò§ Debug Terminal


26

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

(8) ¨Ò¡¹Ñ¹é à¢Õ¹¤íÒÊѧè à»ÅÕÂè ¹âËÁ´¡Ò÷íÒ§Ò¹¢Í§ LED µíÒá˹ § Track à» ¹âËÁ´Íѵâ¹ÁÑµÔ àÁ×Íè âÁ´ÙšŠͧµÍºÃѺ i-Stamp ¨ÐÊ §¢ ͤÇÒÁ Place color target ÁÒáÊ´§·ÕËè ¹ Òµ Ò§ Debug Terminal ¶Ö§¨Ñ§ËÇйÕé¼Ù 㪠§Ò¹ÁÕàÇÅÒÊíÒËÃѺ¹íÒÇѵ¶Øà» ÒËÁÒÂÁÒÇÒ§äÇ Ë¹ ÒàÅ¹Ê ¢Í§âÁ´ÙšŠͧ 5 ÇÔ¹Ò·Õ â´Â i-Stamp ¨ÐÊ §¢ ͤÇÒÁ Finish ÁÒáÊ´§·ÕËè ¹ Òµ Ò§ Debug Terminal ÍÕ¡¤Ãѧé à¾×Íè ᨠ§ãË ·ÃÒºÇ Ò ËÁ´àÇÅÒáÅ Ç à¾×Íè àµÃÕÂÁࢠÒÊÙ¡ Ãкǹ¡ÒõÃǨ¨ÑºÀÒ¾µ Íä» (9) i-Stamp Ê §¤íÒÊѧè PM ä»ÂѧâÁ´ÙšŠͧ¡íÒ˹´ãË ·Òí §Ò¹ã¹âËÁ´â¾Å (poll mode) à¾×Íè ãË Ê §¢ ÍÁÙÅÀÒ¾ÁÒ·ÕÅÐá¾ç¡à¡çµ (10) ¨Ò¡¹Ñ¹é Ê §¤íÒÊѧè RM à¾×Íè ¡íÒ˹´âËÁ´¢Í§¢ ÍÁÙÅ´Ôº¢Í§ÀÒ¾·Õµè ÃǨ¨Ñºà» ¹âËÁ´ 3 (11) µ Íä»Ê §¤íÒÊѧè TW à¾×Íè Êѧè ãË âÁ´ÙšŠͧµÃǨ¨ÑºÀÒ¾·ÕÍè ÂÙµ ç˹ Ò áÅ ÇÃÍÃѺ¢ ÍÁÙÅÀÒ¾ ¨Ò¡âÁ´ÙÅ iV-CAM ¨Ðä´ ¢Í ÁÙÅ´Ôºã¹á¾ç¡à¡çµáá 6 ¤ Ò «Ö§è à» ¹¤ Òà©ÅÕÂè ¢Í§ÊÕá´§, à¢ÕÂÇ, ¹éÒí à§Ô¹ áÅÐ ¤ ÒàºÕÂè §àº¹¢Í§ÊÕá´§, à¢ÕÂÇ, ¹éÒí à§Ô¹ â´Â¢ ÍÁÙÅã¹á¾ç¡à¡çµáá¹Õàé » ¹¢ ÍÁÙÅá¾ç¡à¡çµ S áÅФ ҷѧé ËÁ´ ¹Ñ¹é i-Stamp ¨Ð¹íÒä»áÊ´§·ÕËè ¹ Òµ Ò§ Debug Terminal ´Ñ§ÃÙ»

ã¹·Ò§»¯ÔºµÑ âÔ Á´ÙÅ iV-CAM ¨ÐÊ §¢ ÍÁÙÅÀÒ¾ã¹á¾ç¡à¡çµ M µ ÍÁÒ´ Ç ᵠã¹â»Ãá¡ÃÁ¹Õ¨é Ð äÁ ʹ㨨֧·íÒ¡ÒÃ˹ ǧàÇÅÒä» 2 ÇÔ¹Ò·Õ à¾×Íè ãË ¾¹ ª ǧàÇÅҢͧ¢ ÍÁÙÅá¾ç¡à¡çµ M ·ÕÊè § µ ÍÁÒ


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

27

(12) ¶Ö§¢³Ð¹Õâé Á´ÙÅ iV-CAM ä´ ¨´¨íÒÀÒ¾áÅÐàÁç´ÊբͧÇѵ¶Øà» ÒËÁÒÂäÇ áÅ Ç ã¹ÅíҴѺ໠¹ ¡ÒÃÊ §¤íÒÊѧè TC à¾×Íè µÃǨ¨ÑºáÅеԴµÒÁ¢ ÍÁÙŢͧÊÕà» ÒËÁÒ â´Â¢ ÍÁÙÅ·Õäè ´ ¨Ò¡âÁ´ÙÅ iV-CAM ÁÕ ÃٻẺ໠¹á¾ç¡à¡çµ M 8 ¤ Ò «Ö§è ᨠ§¶Ö§ ¾Ô¡´Ñ ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒÂ, ¾Ô¡´Ñ ¢Í§¾×¹é ·ÕÊè Õ à» ÒËÁÒÂ, ¤ Ò¾Ô¡à«Å áÅФ Ò¤ÇÒÁÁѹè 㨠ËÃ×Í Confidence «Ö§è i-Stamp ¨Ð¹íÒ¤ ҷѧé ËÁ´¹Ñ¹é ÁÒáÊ´§ ·ÕËè ¹ Òµ Ò§ Debug Terminal ´Ñ§ÃÙ»

7.4 ¡Ò÷´Êͺ -3 : µÃǨ¨ÑºáÅФ ¹ËÒÇѵ¶Øà» ÒËÁÒ µÑÇÍ ҧ¡Ò÷´Êͺ¹Õ¨é ФŠÒ¡Ѻ¡Ò÷´Êͺ -2 â´Â㹪 ǧáá¢Í§¡Ò÷íÒ§Ò¹¨ÐàËÁ×͹¡Ñ¹ ¹Ñ¹è ¤×Í àµÃÕÂÁ¤ÇÒÁ¾Ã ÍÁá¡ âÁ´ÙÅ iV-CAM µÃǨ¨ÑºÊբͧÇѵ¶Øà» ÒËÁÒ ¨Ò¡¹Ñ¹é ·íÒ¡ÒõÃǨ¨ÑºáÅÐ µÔ´µÒÁ´ ǤíÒÊѧè TC áµ ·àÕè ¾ÔÁè àµÔÁࢠÒÁÒ¤×Í ¡Òú §ºÍ¡¶Ö§µíÒá˹ §Í ҧ¤Ã ÒÇæ ¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒ â´ÂµÃǨÊͺ¨Ò¡¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒÂËÃ×Í middle mass Ç ÒÍÂÙã ¹´ ҹ㴢ͧ¨ÍÀÒ¾ áÅ Ç á¨ §·Ñ駤 Ңͧ¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕà» ÒËÁÒ áÅзÔÈ·Ò§¢Í§¾×é¹·ÕèÊÕà» ÒËÁÒ¹Ñé¹ (1) Âѧ¤§àª×Íè Áµ ÍâÁ´ÙÅ iV-CAM ¡Ñº i-Stamp àËÁ×͹¡Ñº¡Ò÷´Êͺ - 1 â´Âµ Í RX ࢠҡѺ P2 áÅÐ TX ࢠҡѺ P3 ¢Í§ i-Stamp (2) à» ´â»Ãá¡ÃÁàºÊÔ¡áʵÁ» àÍ´ÔàµÍà áÅ Çà¢Õ¹â»Ãá¡ÃÁµ Í仹Õé


28

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

RcvData VAR Byte(10) baud CON 240 tx CON 3 rx CON 2 n VAR Byte Confid VAR Byte ‘ Pause 1 second for CMUcam startup PAUSE 1000 ‘ Send SEROUT SERIN PAUSE

“reset” to sync CMUcam and Stamp tx, baud, [“RS”,CR] rx, baud, [WAIT (“:”)] 1000

‘ Track LED on SEROUT tx, baud, [“L1 1”,CR] SERIN rx, baud, [WAIT (“:”)] PAUSE 100 ‘ Turn SEROUT SERIN PAUSE

on auto adjust for 5 seconds tx, baud, [“CR 18 44”,CR] rx, baud, [WAIT (“:”)] 100

‘ Pause 5 seconds for CMUcam to auto adjust to lighting conditions PAUSE 5000 ‘ Turn SEROUT SERIN PAUSE

off auto adjust tx, baud, [“CR 18 44 19 32”,CR] rx, baud, [WAIT (“:”)] 100

‘ Track LED auto mode SEROUT tx, baud, [“L1 2”,CR] SERIN rx, baud, [WAIT (“:”)] PAUSE 100 ‘ Give user time to place color target close in front of camera PAUSE 5000 ‘ Send command - Set poll mode - only sends one return packet ‘ of data after each command - reduces data flow SEROUT tx, baud, [“PM 1”,CR] SERIN rx, baud, [WAIT (“:”)] PAUSE 100 ‘ Send command - Set raw data mode - also suppress Ack:/Nak: to ‘ further reduce serial data SEROUT tx, baud, [“RM 3”,CR] PAUSE 100 ‘ Track Window command looks at the center of CMUcam image ‘ grabs the color information and sends to the Track Color function ‘ Send command - Track window SEROUT tx, baud, [“TW”,CR] ‘ Ignore the S packet and M packet from TW


Innovative Experiment Co.,Ltd.

PAUSE

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

29

2000

Main: ‘ Send command - Track color (with no arguments) ‘ will track last color grabbed by TW command SEROUT tx, baud, [“TC”,CR] SERIN

rx, baud, [STR RcvData\10]

Confid = RcvData(9) ‘ 45 is aprox H center Find : IF RCVData(2) > IF RCVData(2) < IF RCVData(8) < IF RCVData(8) >

65 AND Confid > 20 THEN Right 25 AND Confid > 20 THEN Left 150 AND Confid > 25 THEN Fwd 150 AND confid > 25 THEN StopM

GOTO Main Left: DEBUG CLS,”Middle Mass X “, DEC RCVData(2) , CR DEBUG “Middle Mass Y “, DEC RCVData(3) , CR DEBUG “Go left”, CR GOTO main Right: DEBUG CLS,”Middle Mass X “, DEC RCVData(2) , CR DEBUG “Middle Mass Y “, DEC RCVData(3) , CR DEBUG “Go right”, CR GOTO main Fwd: DEBUG CLS,”Middle Mass X “, DEC RCVData(2) , CR DEBUG “Middle Mass Y “, DEC RCVData(3) , CR DEBUG “Forward”, CR GOTO main StopM: DEBUG CLS,”Middle Mass X “, DEC RCVData(2) , CR DEBUG “Middle Mass Y “, DEC RCVData(3) , CR DEBUG “Stop”, CR GOTO main

(3) ºÑ¹·Ö¡ä¿Å ªÍ×è CAMTST03.BSX (4) ¨ ÒÂä¿ãË á¡ ·§Ñé i-Stamp áÅÐâÁ´ÙÅ iV-CAM ¹íÒÇѵ¶Øà» ÒËÁÒÂä»ÇÒ§äÇ ´Ò ¹Ë¹ ÒàÅ¹Ê ¢Í§ âÁ´ÙšŠͧ (5) ´Òǹ âËÅ´â»Ãá¡ÃÁä»Âѧ i-Stamp


30

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.

(6) ˹ Òµ Ò§ Debug Terminal ¶Ù¡à» ´¢Öé¹ à¾×èÍàµÃÕÂÁáÊ´§¤ Ңͧ¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕ à» ÒËÁÒ áÅзÔÈ·Ò§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒ·Õäè ´ ¨Ò¡¡ÒÃà»ÃÕºà·Õº¡Ñº¾×¹é ·Õ·è §Ñé ËÁ´ áµ ¡Ç Ò·Õ¨è ÐáÊ ´§¤ ҹѹé âÁ´ÙÅ iV-CAM µ Í§ä´ ÃºÑ ¤íÒÊÑ§è ¤Çº¤ØÁ¾ÍÊÁ¤Çà «Ö§è ¨ÐàËÁ×͹¡Ñº¢Ñ¹é µÍ¹·Õè 6 ¶Ö§ 11 ¢Í§¡Òà ·´Êͺ -2 áµ ¨ÐäÁ Á¡Õ ÒÃáÊ´§¼Åã´æ ¼ Ò¹·Ò§Ë¹ Òµ Ò§ Debug Terminal ¨¹¡Ãзѧè àÃÔÁè ¡ÒõÃǨ ¨Ñº¾×¹é ·ÕÊè àÕ » ÒËÁÒ ¹Ñ¹è ¤×Í ÁÕ¢¹Ñé µÍ¹´Ñ§¹Õé (6.1) i-Stamp Ê §¤íÒÊѧè ä»ÃÕà«çµâÁ´ÙÅ iV-CAM áÅ ÇÃÍÃѺ¡Òõͺ¡ÅѺ¨Ò¡âÁ´ÙÅ iV-CAM àÁ×Íè ä´ ÃºÑ ¡Òõͺʹͧ i-Stamp ¨ÐÊ §¤íÒÊѧè 令Ǻ¤ØÁãË LED ·Õµè Òí á˹ § Track µÔ´ÊÇ Ò§ µ Í´ ÇÂ Ê §¤íÒÊÑ§è ¡íÒ˹´ãË âÁ´ÙšŠͧ»ÃѺ¤ Ò¤ÇÒÁÊÇ Ò§¢Í§¨ÍÀÒ¾Íѵâ¹ÁÑµÔ «Ö§è 㪠àÇÅÒ 5 ÇÔ¹Ò·Õ (6.2) àÁ×Íè ¤ÃºàÇÅÒ i-Stamp ¨ÐÊ §¤íÒÊÑ§è » ´¡Ò÷íÒ§Ò¹Íѵâ¹ÁÑµÔ àÁ×Íè âÁ´ÙšŠͧµÍº ÃѺ i-Stamp ¨Ðà¢Õ¹¤íÒÊѧè à»ÅÕÂè ¹âËÁ´¡Ò÷íÒ§Ò¹¢Í§ LED µíÒá˹ § Track à» ¹âËÁ´Íѵâ¹ÁÑµÔ (6.3) i-Stamp Ê §¤íÒÊѧè PM ä»ÂѧâÁ´ÙšŠͧ¡íÒ˹´ãË ·Òí §Ò¹ã¹âËÁ´â¾Å (poll mode) à¾×Íè ãË Ê§ ¢ ÍÁÙÅÀÒ¾ÁÒ·ÕÅÐá¾ç¡à¡çµ ¨Ò¡¹Ñ¹é Ê §¤íÒÊѧè RM à¾×Íè ¡íÒ˹´âËÁ´¢Í§¢ ÍÁÙÅ´Ôº¢Í§ÀÒ¾·Õè µ ͧ¡ÒõÃǨ¨Ñºà» ¹âËÁ´ 3 (6.4) µ Íä»Ê §¤íÒÊѧè TW à¾×Íè Êѧè ãË âÁ´ÙšŠͧµÃǨ¨ÑºÀÒ¾·ÕÍè ÂÙµ ç˹ Ò ã¹·Ò§»¯ÔºµÑ Ô âÁ´ÙÅ iV-CAM ¨ÐÊ §¢ ÍÁÙÅÀÒ¾ã¹á¾ç¡à¡çµ M µ ÍÁÒ´ Ç ᵠã¹â»Ãá¡ÃÁ¹Õ¨é ÐäÁ ʹ㨨֧·íÒ¡ÒÃ˹ ǧ àÇÅÒä» 2 ÇÔ¹Ò·Õ à¾×Íè ãË ¾¹ ª ǧàÇÅҢͧ¢ ÍÁÙÅá¾ç¡à¡çµ M ·ÕÊè § µ ÍÁÒ (6.5) ¶Ö§¢³Ð¹ÕéâÁ´ÙÅ iV-CAM ä´ ¨´¨íÒÀÒ¾áÅÐàÁç´ÊբͧÇѵ¶Øà» ÒËÁÒÂäÇ áÅ Ç ã¹ ÅíҴѺµ Íä»à» ¹¡ÒÃÊ §¤íÒÊÑè§ TC à¾×Íè µÃǨ¨ÑºáÅеԴµÒÁ¢ ÍÁÙŢͧÊÕà» ÒËÁÒ (7) ¢ ÍÁÙÅ·Õäè ´ ¡ÅѺÁÒ¨Ò¡âÁ´ÙÅ iV-CAM àÁ×Íè ¡ÃзíÒ¤íÒÊѧè TC ÁÕû٠Ẻ໠¹á¾ç¡à¡çµ M 8 ¤ Ò «Öè§á¨ §¶Ö§ ¾Ô¡Ñ´¢Í§¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕà» ÒËÁÒÂ, ¾Ô¡Ñ´¢Í§¾×é¹·ÕèÊÕà» ÒËÁÒÂ, ¤ Ò¾Ô¡à«Å áÅФ Ò ¤ÇÒÁÁÑè¹ã¨ËÃ×Í Confidence ᵠ㹡Ò÷´Êͺ¹Õé¨Ð¹íÒ¤ Ңͧ¾Ô¡Ñ´¢Í§¨Ø´¡Ö觡ÅÒ§¢Í§¾×é¹·ÕèÊÕà» Ò ËÁÒÂä»áÊ´§à· ҹѹé (8) ¢ ÍÁÙÅ·ÕÊè ¹ã¨ÍÕ¡µÑÇË¹Ö§è ¤×Í ¤ Ò¤ÇÒÁÁѹè ã¨ËÃ×Í Confidence 㹡Ò÷´Êͺ¹Õ¨é Ð㪠¤Ò ¤ÇÒÁ Áѹè 㨹Õàé » ¹µÑǺ͡¶Ö§µíÒá˹ §·ÔÈ·Ò§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒ â´Âã¹â»Ãá¡ÃÁ¡íÒ˹´¤ Ò¡Ö§è ¡ÅÒ§äÇ à· Ò ¡Ñº 45 ¨Ò¡¹Ñ¹é ¹íÒ¤ Ò¹Õäé »µÃǨÊͺà ÇÁ¡Ñº¾Ô¡´Ñ X ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒÂáÅФ Ò¾Ô¡à«Å ´ Ç¡Ãкǹ¡ÒÃá͹´ ¢Í ÁÙÅã¹â»Ãá¡ÃÁ Í Find â´ÂÁÕÃÒÂÅÐàÍÕ´¡ÒõÃǨÊͺ´Ñ§¹Õé (8.1) ËÒ¡¾Ô¡´Ñ X ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒÂÁÕ¤Ò ÁÒ¡¡Ç Ò 65 áÅФ Ò¤ÇÒÁ Áѹè ã¨ÁÒ¡¡Ç Ò 20 áÊ´§Ç Ò ¢³Ð¹Õ¾é ¹×é ·ÕÊè àÕ » ÒËÁÒÂÍÂÙ· Ò§¢ÇÒ ãË ¡ÃÐâ´´ä»·íÒ§Ò¹·ÕÅè ÒàºÅ Right


Innovative Experiment Co.,Ltd.

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

l

31

(8.2) ËÒ¡¾Ô¡´Ñ X ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒÂÁÕ¤Ò ¹ ÍÂ¡Ç Ò 25 áÅФ Ò¤ÇÒÁ Áѹè ã¨ÁÒ¡¡Ç Ò 20 áÊ´§Ç Ò ¢³Ð¹Õ¾é ¹×é ·ÕÊè àÕ » ÒËÁÒÂÍÂÙ· Ò§« Ò ãË ¡ÃÐâ´´ä»·íÒ§Ò¹·ÕÅè ÒàºÅ Left (8.3) ËÒ¡¤ Ò¾Ô¡à«Å¹ ÍÂ¡Ç Ò 150 áÅФ Ò¤ÇÒÁÁѹè ã¨ÁÒ¡¡Ç Ò 25 áÊ´§Ç Ò ¢³Ð¹Õ¾é ¹×é ·Õè ÊÕà» ÒËÁÒÂÍÂÙ¢ Ò §Ë¹ Ò ãË ¡ÃÐâ´´ä»·íÒ§Ò¹·ÕÅè ÒàºÅ Forward (8.4) ËÒ¡¤ Ò¾Ô¡à«ÅÁÒ¡¡Ç Ò 150 áÅФ Ò¤ÇÒÁÁѹè ã¨ÁÒ¡¡Ç Ò 20 áÊ´§Ç Ò ¢³Ð¹Õäé Á ¾º¾×¹é ·ÕÊè àÕ » ÒËÁÒ ãË ¡ÃÐâ´´ä»·íÒ§Ò¹·ÕÅè ÒàºÅ StopM ËÒ¡¤ Ò·Õäè ´ äÁ µÃ§µÒÁà§×Íè ¹ä¢¡ç¨Ð¡ÅѺä»Ç¹Í Ò¹¤ Òµ Íä» (9) ·Õâè »Ãá¡ÃÁ Í Right, Left, Forward áÅÐ StopM ¨ÐÁÕ¡Ò÷íÒ§Ò¹àËÁ×͹¡Ñ¹¤×Í áÊ´§¤ Ò¾Ô¡´Ñ ¢Í§¨Ø´¡Ö§è ¡ÅÒ§¢Í§¾×¹é ·ÕÊè àÕ » ÒËÁÒº¹Ë¹ Òµ Ò§ Debug Terminal ¾Ã ÍÁ¡ÑºáÊ´§¢ Í ¤ÇÒÁ¢Í§µíÒ˹ §ã¹áµ ÅÐâ»Ãá¡ÃÁ Í¹ѹé â´Ââ»Ãá¡ÃÁ Í Left ¡çáÊ´§¢ ͤÇÒÁ Left à» ¹ µ ¹ áÅзÕâè »Ãá¡ÃÁ Í StopM ¨ÐáÊ´§¢ ͤÇÒÁ Stop ´Ñ§ÃÙ»


32

l

iV-CAM âÁ´ÙŵÃǨ¨ÑºÀÒ¾

Innovative Experiment Co.,Ltd.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.