67
MIT 分分 David Tseng, CAVEDU

Mit之旅分享

Embed Size (px)

Citation preview

Page 1: Mit之旅分享

MIT 分享

David Tseng, CAVEDU

Page 2: Mit之旅分享

Education / Consult / Event

Page 4: Mit之旅分享

話說從頭• App Inventor

Page 5: Mit之旅分享

成就達成1. CAVEDU 成為 MIT App Inventor 教育夥伴,尤其是在機器人與物聯網方面2. Lego Ev3 元件會成為 MIT App Inventor 正式元件,預計五月中3. CAVEDU 會協助在亞太地區推廣

Page 6: Mit之旅分享

邀請您一起加入

Page 7: Mit之旅分享

本日內容• 地理與交通篇• 人物篇• 內容• 事前學習• 合作項目• 心得

Page 8: Mit之旅分享

地理與交通

Page 9: Mit之旅分享

飛機• 台北到香港 2h• 香港到波士頓 14h

• 因為 delay -> 香港到舊金山• 舊金山到波士頓• 足足多了半天

Page 10: Mit之旅分享

機場到 MIT

• 約 10km ,叫 Uber 約 20~25USD• 搭地鐵 ( 爛 ) 一趟 2USD ,從 Kendall MIT 站出來就是了• 是一個小區裡面的密集建築,不用走太遠

Page 11: Mit之旅分享

人物

Page 12: Mit之旅分享

MIT App Inventor 核心成員• Hal Abelson – head

• Education / Marketing– Josh Sheldon– Karen Lang

• Technical – Jeff Schllier– Andrew McKinney

• Education– Dave Wolber ( 華盛頓大學 CS 教授 )– FirstcodeAcademy

(HK)

Page 13: Mit之旅分享

31 人, 15 個國家

Page 15: Mit之旅分享

Andrew McKinney

Page 16: Mit之旅分享

Jeff Schiller

Page 17: Mit之旅分享
Page 18: Mit之旅分享
Page 19: Mit之旅分享

Mitchel Resnick (Scratch)

Page 20: Mit之旅分享
Page 21: Mit之旅分享

Robin 謝宗翰 ( 宿主 )

Page 22: Mit之旅分享

三天課程• 技術力提升不是重點• 分享與許願池• 回去要幹嘛

Page 23: Mit之旅分享

App Inventor with robots

Page 24: Mit之旅分享

6 + 10 周的線上課程• From 2010, we occasionally find that App

Inventor (Classic).• Its Lego NXT components make it

possible to control, thanks Liz~• Therefore,

Page 25: Mit之旅分享

App Inventor & Lego

Easiest solution to control your robot via smart phone

Page 26: Mit之旅分享

Android + robot

Page 27: Mit之旅分享

Smart phone as controller and display

Page 28: Mit之旅分享

Robot can get from smart phone

• Camera• Network• Motion sensor• GPS positioning• Computing power• Voice I/O

Page 29: Mit之旅分享

Excellent combination

Page 30: Mit之旅分享

Lego / Arduino

Page 31: Mit之旅分享

Raspberry Pi

Page 32: Mit之旅分享

3DP 6-leg monster

Page 33: Mit之旅分享

Teaching content

• Network• Motion detection• Location and positioning• Trigonometric• Event triggering• Interface Design

Page 34: Mit之旅分享

How to connect?

• Bluetooth • Wi-Fi built-in / shield

Page 35: Mit之旅分享

Horrible trigonometric

θ = atan(y/x)Good application toControl robot’s motor speedshow_angle.aia

Page 36: Mit之旅分享

How Bluetooth connect

1. Initialize and check Bluetooth

2. Connect

3. Communication (read / write)

4. End connection and release resources.

Page 37: Mit之旅分享

1. Initialize and check Bluetooth

Page 38: Mit之旅分享

2. Connect

Page 39: Mit之旅分享

4. End connection and release resources.

Page 40: Mit之旅分享

3. Connection – Button control

Page 41: Mit之旅分享

3. Connection – Orientation sensor

Page 42: Mit之旅分享

3. Connection – Google Voice recognition

Page 43: Mit之旅分享

Easy?

The difference is the trigger event

Robot doesn’t care how these value is generated

Page 44: Mit之旅分享

Lego Direct Command for NXT

• No program in robot

• Control motor, sound and display

• Get sensor value

Page 45: Mit之旅分享

Bottom: byte array

Page 46: Mit之旅分享

Lego Direct Command for EV3

Page 48: Mit之旅分享
Page 49: Mit之旅分享

Hardware : Arduino compatible

Page 50: Mit之旅分享

POWER

USB HOST

MPU / Wifi / MCU

Micro SD 卡插槽在背面WiFi 天線

Page 51: Mit之旅分享
Page 52: Mit之旅分享

App Inventor with IoT

Page 53: Mit之旅分享

App Inventor server – Lego EV3 components

Just try it~

Page 54: Mit之旅分享

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.

Page 55: Mit之旅分享

Our own server

• Lego EV3 components are ready.

• Just like original Lego Nxt components

• Pretty hard work…• Will have .aix for

extension

Page 56: Mit之旅分享

Tutorials and demo code ready

• Ev3Motors• Ev3ColorSensor• Ev3GyroSensor• Ev3TouchSensor• Ev3UltrasonicSensor• Ev3UI• Ev3Commands

Page 57: Mit之旅分享

Communication architecture

Page 58: Mit之旅分享

FIRST Robotics Competition

Page 59: Mit之旅分享

Contributors

Jerry Lin Alvin Chang

Page 60: Mit之旅分享

App Inventor Certification

Basic mobile app development

Page 61: Mit之旅分享
Page 62: Mit之旅分享

Interesting Projects

with App Inventor

All free to use~

Page 63: Mit之旅分享

With hardware

• Lego robots – Wi-Fi / Bluetooth• Arduino – Bluetooth (rarely Wi-Fi)

Page 64: Mit之旅分享

大家都想玩硬體,但苦無入門地方

Page 65: Mit之旅分享

心得• 台灣是好地方• 水到自然渠成• 之後會很忙 – 超大量文字工作

Page 66: Mit之旅分享

感謝 CAVEDU 好夥伴• 祥瑞 / 張文: server• 皓云: 7688 robot• 皇甫: Lego EV3 robot• 力維 / 柏憲: code• 允赫 / 雯欣 / 子瑞 / 實習生軍團:

documentation