通信接口

arduino通过蓝牙与手机交互基于App Inventor

字号+ 作者:duino123.com 来源:未知 2016-04-28 09:42 我要评论( )

如何利用手机APP控制arduino是一个有趣又很实用的内容,这个例子可以让你了解arduino通过蓝牙与手机交互信息,app是基于App Invertor在线图形化编程软件。在此例的基础上你可以扩展出很多基于app的蓝牙控制项目。

如何利用手机APP控制arduino是一个有趣又很实用的内容,这个例子可以让你了解arduino通过蓝牙与手机交互信息,app是基于App Invertor在线图形化编程软件。在此例的基础上你可以扩展出很多基于app的蓝牙控制项目。

1. 源代码下载:

  • Arduino Sketch
  • BlueLED.apk
  • BlueLED Source files (for editing purpose)

下载地址

Note: If you want to edit my app this is what you need to do: After you download this folder make sure you unzip it. Only upload the BlueLED.zip into App Inventor.

2. 元件清单:

  • 1x Arduino Uno
  • 1x Bluetooth Module (for example: HC-05)
  • 1x Smartphone (any Android will work, I’ve only tested with Samsung Galaxy Ace)
  • Android Application (you can download it in the next step)
  • 1x 220Ohm Resistor
  • 1x LED
  • 1x Breadboard
  • Jumper Cables

parts

3. 原理图:

[Schematics]

提示:

  • You need to remove the RX and TX cables when you’re uploading the sketch to your Arduino.
  • Sometimes people connect the TX from the bluetooth module to the TX of the Arduino… that's wrong and it won't work. Make sure you connect it properly, the TX into RX and the RX into the TX.
  • If the HC-05 Bluetooth Module asks for a password, It's '1234′.
  • Before Testing my “BlueLED” app, test if you've made all the connections correctly. How you can do that? Simply enter numbers ('1′, '0′) into your serial monitor and your LED should be turning on and off.

I hope you found this useful!

如需更详细资料,如有好资源分享,请加入QQ交流群:214461008

欢迎阅读,欢迎转载,不用注明出处!本站只提供入门和进阶资料,做您学习的小伙伴!

请加群:214461008

相关文章
  • json在arduino上的应用

    json在arduino上的应用

    2016-06-20 09:45

  • 两块Arduino之间通过SPI通信

    两块Arduino之间通过SPI通信

    2016-06-01 13:02

  • 常见的几种arduino型号的IIC引脚定义

    常见的几种arduino型号的IIC引脚定义

    2016-05-29 14:40

  • Arduino软串口的使用

    Arduino软串口的使用

    2016-05-04 15:27

网友点评
Arduino
热门教程
关注我们
自动化世界