Your SlideShare is downloading. ×
0
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Getting started with amarino
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Getting started with amarino

28,463

Published on

An introduction to Amarino …

An introduction to Amarino

Android meets Arduino

Published in: Technology, Business
1 Comment
5 Likes
Statistics
Notes
No Downloads
Views
Total Views
28,463
On Slideshare
0
From Embeds
0
Number of Embeds
40
Actions
Shares
0
Downloads
160
Comments
1
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. 1 Getting started with Amarino Logo drawn by honki Speaker: Cooper Maa Date: 2012/07/18 http://coopermaa2nd.blogspot.com
  • 2. 2 Speaker  Cooper Maa  PIC/AVR Firmware Programmer  Email: coopermaa77@gmail.com  Blog: http://coopermaa2nd.blogspot.com
  • 3. 3 What is Amarino?
  • 4. 4 Amarino is an Open Source Toolkit to let Android talk with Arduino over bluetooth
  • 5. 5 Objective: Blinking the Arduino’s LED On board led
  • 6. 6 What do you need?
  • 7. 7 The Hardware Android Arduino Bluetooth module
  • 8. 8 連接電腦與 Arduino
  • 9. 9 安裝 Arduino IDE  從官方網站下載 : http://arduino.cc/en/Main/Software  下載後解壓縮即可  執行 arduino.exe 
  • 10. 10 安裝 MeetAndroid Library  下載 MeetAndroid : http://amarino.googlecode.com/files/MeetAndroid_4.zip  下載後,解至 Arduino IDE 安裝目錄的 libraries 資料夾下 例如 : C:arduino-1.0.1libraries Sketch > Import Library 會看到 MeetAndroid
  • 11. 11 Upload Test Program  點選 File > Examples > MeetAndroid > Test
  • 12. 12 連接 Arduino 與藍芽模組  先把藍芽模組 baud rate 設定為 57600 bps  連接辦法 :  RXD 接至 TX of Arduino  TXD 接至 RX of Arduino  VCC to 5V of Arduino  GND to GND of Arduino
  • 13. 13 Install Amarino App for Android 1. Install Amarino app http://amarino.googlecode.com/files/Amarino_2_v0_55.apk 2. Install Amarino Plug-in Bundle http://amarino.googlecode.com/files/AmarinoPluginBundle.apk
  • 14. 14 Add Device 點【 Add BT Device 】搜尋藍芽設備
  • 15. 15 Add Test Event
  • 16. 16 Add Test Event - Continue 完成後,按下手機 B ack 鍵
  • 17. 17 Connect
  • 18. 18 Arduino is connected The led indicator will turn to green
  • 19. 19 On board LED will start to blink The LED will blink when data is received from Android
  • 20. 20 總結  需要的硬體  Android device x 1  Arduino board x 1  Bluetooth module x 1  測試步驟  安裝 Arduino IDE 與 MeetAndroid Library  Upload Test Program to Arduino  連接藍芽模組  安裝 Amarino App for Android  執行 Amarino 利用 Test Event 測試連線
  • 21. 21 MultiColorLamp Example Picture comes from : http://www.circuit-blog.com/multi-color-lamp-using-amarino-android-and-arduino/
  • 22. 22 材料  一顆 RGB Led 或  紅、綠、藍 LED 各一顆 以及  三個 220 歐姆電阻
  • 23. 23 連接 LEDs  紅、綠、藍三顆 LED 分別接到 pin 9, 10, 11
  • 24. 24 Open MultiColorLamp example  點選 File > Examples > MeetAndroid > MultiColorLamp Tutorial
  • 25. 25 Do some modifications  把 o, p, q 三個事件旗號改成 r, g, b 原本是 o, p, q 配合 App 進行修改
  • 26. 26 上傳 MultiColorLamp 範例 注意!上傳程式時,記得不要接著藍芽模組! 等上傳完畢後再接上!
  • 27. 27 Install MultiColorLamp App for Android Download and install MultiColorLamp App http://from-arduino-to-android-to-arduino.googlecode.com/files/MultiC
  • 28. 28 抄錄藍芽 MAC Address  利用 Amarino 掃瞄藍芽並抄下 MAC
  • 29. 29 執行 MultiColorLamp App 輸入 MAC Address 完畢後按【 Set Device ID 】
  • 30. 30 執行結果 因為沒有藍色 LED 所以用黃色 LED 代替
  • 31. 31 SensorGraph Example
  • 32. 32 材料  一顆可變電阻 或  光敏電阻
  • 33. 33 連接可變電阻  把可變電阻接到 Analog pin 5
  • 34. 34 Open SensorGraph example  點選 File > Examples > MeetAndroid > SensorGraph Tutorial
  • 35. 35 上傳 SensorGraph 範例 注意!上傳程式時,記得不要接著藍芽模組! 等上傳完畢後再接上!
  • 36. 36 Install SensorGraph App for Android Download and install SensorGraph App http://from-arduino-to-android-to-arduino.googlecode.com/files/Senso
  • 37. 37 抄錄藍芽 MAC Address  利用 Amarino 掃瞄藍芽並抄下 MAC
  • 38. 38 執行 SensorGraph App 輸入 MAC Address 完畢後按【 Set Device ID 】
  • 39. 39 執行結果
  • 40. 40 References  Android: http://developer.android.com  Arduino: http://arduino.cc/  Amarino: http://www.amarino-toolkit.net/  http://coopermaa2nd.blogspot.tw/search/label/Andro
  • 41. 41

×