Upload
cavedu-education
View
416
Download
0
Embed Size (px)
Citation preview
MIT 分享
David Tseng, CAVEDU
相關資料• MIT Master Trainer Short Program• 阿吉在 MIT 分享的 ppt • 共享資料夾 http://bit.ly/mmt-sharing
話說從頭• App Inventor
成就達成1. CAVEDU 成為 MIT App Inventor 教育夥伴,尤其是在機器人與物聯網方面2. Lego Ev3 元件會成為 MIT App Inventor 正式元件,預計五月中3. CAVEDU 會協助在亞太地區推廣
邀請您一起加入
本日內容• 地理與交通篇• 人物篇• 內容• 事前學習• 合作項目• 心得
地理與交通
飛機• 台北到香港 2h• 香港到波士頓 14h
• 因為 delay -> 香港到舊金山• 舊金山到波士頓• 足足多了半天
機場到 MIT
• 約 10km ,叫 Uber 約 20~25USD• 搭地鐵 ( 爛 ) 一趟 2USD ,從 Kendall MIT 站出來就是了• 是一個小區裡面的密集建築,不用走太遠
人物
MIT App Inventor 核心成員• Hal Abelson – head
• Education / Marketing– Josh Sheldon– Karen Lang
• Technical – Jeff Schllier– Andrew McKinney
• Education– Dave Wolber ( 華盛頓大學 CS 教授 )– FirstcodeAcademy
(HK)
31 人, 15 個國家
Hal Abelson - Seymour Papert弟子
Andrew McKinney
Jeff Schiller
Mitchel Resnick (Scratch)
Robin 謝宗翰 ( 宿主 )
三天課程• 技術力提升不是重點• 分享與許願池• 回去要幹嘛
App Inventor with robots
6 + 10 周的線上課程• From 2010, we occasionally find that App
Inventor (Classic).• Its Lego NXT components make it
possible to control, thanks Liz~• Therefore,
App Inventor & Lego
Easiest solution to control your robot via smart phone
Android + robot
Smart phone as controller and display
Robot can get from smart phone
• Camera• Network• Motion sensor• GPS positioning• Computing power• Voice I/O
Excellent combination
Lego / Arduino
Raspberry Pi
3DP 6-leg monster
Teaching content
• Network• Motion detection• Location and positioning• Trigonometric• Event triggering• Interface Design
How to connect?
• Bluetooth • Wi-Fi built-in / shield
Horrible trigonometric
θ = atan(y/x)Good application toControl robot’s motor speedshow_angle.aia
How Bluetooth connect
1. Initialize and check Bluetooth
2. Connect
3. Communication (read / write)
4. End connection and release resources.
1. Initialize and check Bluetooth
2. Connect
4. End connection and release resources.
3. Connection – Button control
3. Connection – Orientation sensor
3. Connection – Google Voice recognition
Easy?
The difference is the trigger event
Robot doesn’t care how these value is generated
Lego Direct Command for NXT
• No program in robot
• Control motor, sound and display
• Get sensor value
Bottom: byte array
Lego Direct Command for EV3
Arduino robot – Wi-Fi
Detail tutorial
Hardware : Arduino compatible
POWER
USB HOST
MPU / Wifi / MCU
Micro SD 卡插槽在背面WiFi 天線
App Inventor with IoT
App Inventor server – Lego EV3 components
Just try it~
Just try it~
• http://220.133.195.151:8888 • http://linux1.csie.ntu.edu.tw:8888/• http://linux3.csie.ntu.edu.tw:8888/• http://linux5.csie.ntu.edu.tw:8888/
• Some schools already have our standalone server.
Our own server
• Lego EV3 components are ready.
• Just like original Lego Nxt components
• Pretty hard work…• Will have .aix for
extension
Tutorials and demo code ready
• Ev3Motors• Ev3ColorSensor• Ev3GyroSensor• Ev3TouchSensor• Ev3UltrasonicSensor• Ev3UI• Ev3Commands
Communication architecture
FIRST Robotics Competition
Contributors
Jerry Lin Alvin Chang
App Inventor Certification
Basic mobile app development
Interesting Projects
with App Inventor
All free to use~
With hardware
• Lego robots – Wi-Fi / Bluetooth• Arduino – Bluetooth (rarely Wi-Fi)
大家都想玩硬體,但苦無入門地方
心得• 台灣是好地方• 水到自然渠成• 之後會很忙 – 超大量文字工作
感謝 CAVEDU 好夥伴• 祥瑞 / 張文: server• 皓云: 7688 robot• 皇甫: Lego EV3 robot• 力維 / 柏憲: code• 允赫 / 雯欣 / 子瑞 / 實習生軍團:
documentation
More
• CAVEDU YouTube• CAVEDU Facebook• CAVEDU blog• CAVEDU App Inventor Gallery
• CAVEDU EV3 component github -> built your own server!