Bluetooth car Intelligent control of the operating system APP articles (20,191,220 update articles) based on the APP Inventor2

1, the whole idea

    Currently based on intelligent control of the microcontroller is to achieve recommended operating functions of the most direct and effective implementation, again under consideration here is the first Bluetooth mode, control functions, the next phase will be further extended to apply to use WIFI mode how to control operations. A modular fashion to achieve the overall logical structure, prevent subsequent optimization procedures modifying complex problems that may exist.

2, interface design

   

3, the use of tools

  (1) the user-side operations using APP (mainly design uses Andrior version), software development tools APP Inventor.

  (2) using a web login  app.gzjkw.net , you can enter the interface, the adoption of two-dimensional code QQ login. The benefits of this approach are:

     A, avoid forget the password, while others avoid being cracked personal material information exists on the server;

    B, can be stored remotely, to optimize their work, remember to change the part of the work, the point to save the project, to avoid network problems caused by the loss.

   (3) enable communication test is recommended to find an Android version of the phone, tested by two-dimensional code form, otherwise the test can, but personally feel that the most convenient way.

   (4) the project system testing phase requires a Bluetooth device display when connected. I step instructions in a subsequent blog.

4, the design process

   (1) control needs as shown below:

(2) and the Bluetooth terminal device testing

A, Arduino microcontroller connected Bluetooth device, i.e., power to the microcontroller via Bluetooth chip.

B, Bluetooth and MCU information communication through the serial port, the latter directly on the microcontroller, the code used to control vehicle movement

C, the testing phase, the microcontroller is connected through the computer, while monitoring the serial check command is the operation can be smoothly delivered to the microcontroller.

D, mobile phones and Bluetooth chip, connectivity needs first, this did not go into details, is very simple, there is a problem! I can.

5, the core code design

6, system test results

     

7 Notes

(1) consider the core code design key factor, as for landscaping and other post all be progressively added.

(2) Name the control as much as possible a number of specifications, otherwise the latter controls more to find unclear

(3) The main logic design needs to consider in advance to minimize redundant code, after all, this program is better way to debug the code easy to knock hand.

 

最后,个人写的代码APP已经上传到空间了,如果还有疑问欢迎交流拍砖。。。。

 

20191220追加内容:

有朋友想了解如何实现APP Inventor的信息反馈流程,今天正好有时间来做了一下,前面的内容不再赘述,就单说反馈流程吧:

1、需要增加的内容:

A、一个全局变量

B、一个定时器控件

C、N个标签显示功能(根据自己喜好即可)

相应的增加控件如下:

2、核心代码设计

通过定时器控件,实现远端发送数据的定时更新接收

具体如下图:

 

3、相应的显示效果如下图:

 

这个只是测试的效果,需要显示更多内容,只需修改远程发送信息的内容即可。

发布了11 篇原创文章 · 获赞 16 · 访问量 2096

Guess you like

Origin blog.csdn.net/qxrobot/article/details/103546805