Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
mBot教學(6)光感測器應用
Search
Wu, ShyiShiou
November 17, 2016
Programming
790
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
mBot教學(6)光感測器應用
mBot光感測器原理、控制指令及應用實例
Wu, ShyiShiou
November 17, 2016
More Decks by Wu, ShyiShiou
See All by Wu, ShyiShiou
使用Evernote雲端筆記本
sswu
0
88
Unity遊戲程式設計(04) 2D移動與碰撞處理I
sswu
0
1.5k
Unity遊戲程式設計(01) Unity簡介
sswu
0
540
Unity遊戲程式設計(02) 應用2D圖片物件
sswu
0
1.2k
Unity遊戲程式設計(03) 製作及應用2D動畫
sswu
0
1.5k
Other Decks in Programming
See All in Programming
ChromeでローカルLLM
ryu1013
0
140
Domain-Driven Transformation
hschwentner
2
2.3k
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
1.1k
作って学ぶSpring BootのAuto Configuration / JJUG Night Seminar 2026-10-19
rshindo
0
180
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
280
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
外から家のPCの電源入れたい!をPHPで解決する
kawashimo0
1
140
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
ジョジョの世界をXRで再現する
mofurune
0
170
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
Next.js: The final boss of Web Performance
guaca
0
280
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
330
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.3k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
830
Art, The Web, and Tiny UX
lynnandtonic
304
22k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
310
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
630
How to train your dragon (web standard)
notwaldorf
96
6.9k
Transcript
電子工程系應 用 電 子 組 電 腦 遊 戲 設
計 組 教學(6) 光感測器應用 吳錫修 Nov 17, 2016
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 也稱光電二極體,photodiode無光照時,只有很小的逆向飽和漏電 流 (暗電流),此時光敏二極體截止。當受到光照時,逆向飽和電流 大大增加,形成光電流 photodiode是透明封裝,建議加上黑色套管,降低側面受光而影響 光感測器讀值 光敏二極體原理 2
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 mBot光感測器 3 Light Sensor
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 控制指令 傳回值0~1023 受光愈強,數值愈大 mBot 光感測器控制 4
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 功能要求 光感測器讀值大於150時,,mBot開始前進 mBot受光愈強,mBot速度愈快 光驅動練習 5
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 mBot 全彩LED 6 RGB LED2 RGB LED1
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 發光二極體 (Light-emitting diode,LED) 是⼀種能發光的半導體電 子元件 單色 LED 紅外線、紅、橙、黃、綠、藍、紫、紫外線 LED原理 1/2 7
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 RGB LED 可分別控制紅、綠、藍LED發光強度,混合出全彩效果 (16,777, 216 種 顏色變化) LED原理 2/2 8
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 控制指令 mBot RGB LED控制 9 最亮 不亮 RGB LED2 RGB LED1
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 功能要求 按下按鈕後,mBot前進 當mBot進入隧道時放慢速度,點亮RGB LED燈 當mBot離開隧道時回復速度,關閉LED燈 設計注意事項: 1. 要依據環境光線強度調整光感測器臨界值 2. 由於光感測器側面沒有遮蔽,點亮RGB LED燈時,光感測器會接收到RGB LED光源 自動照明練習 10
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 功能要求 按下按鈕後,mBot前進 每4秒讓mBot右轉 右轉前1秒開始閃爍右側LED方向燈,每0.25秒紅色亮、滅交錯 mBot方向燈練習 11
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 光驅動參考程式 12
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 自動照明參考程式 13
shape the future 電子工程系應 用 電 子 組 電 腦
遊 戲 設 計 組 mBot方向燈參考程式 14