Loading...

App Inventor for Mobile APP Development

App Inventor for Mobile APP Development

App inventor for Mobile APP Development

Using Bluetooth to control the MCU and realize the serial communication between the MCU and the android device – app development Vancouver

MIT App inventor is a more popular and applicable programming software in the programming field. Because of its simple operation process and usage method, it has always been loved by programmers. So today I will introduce an example-a detailed practical tutorial of MIT App inventor for mobile APP development. Using Bluetooth to control the single-chip microcomputer, and realize the serial communication between the single-chip microcomputer and the android device.

Preliminary software preparation and hardware preparation – Shopify App Development Vancouver

The software preparation is mainly Keil vision, stc-isp-15xx-v6.85 hardware preparation mainly includes a Bluetooth module, a cheap single-chip computer, a Bluetooth phone, and a programming computer that can be used normally; the Bluetooth module needs to be connected to the single-chip computer, specific Operation method: Connect VCC to VCC, GND to GND, TXD to P30, RXD to P31

Realization ideas and operating principles

We know that mobile phones and single-chip microcomputers are two unconnected things, so to realize the communication between them, we need a messenger to act as an intermediary. And that messenger is the Bluetooth module mentioned above. On the one hand, this Bluetooth module can receive the data sent by the mobile phone APP and transmit it to the single-chip microcomputer. On the other hand, the single-chip microcomputer can also send the feedback data to the mobile phone App through the Bluetooth module. This realizes the interactive communication between the microcontroller and the mobile phone.

Specific methods of operation

First of all, we need MIT App inventor to make a simple component page.  Next is the logic level design

The enable of the list selection box (select Bluetooth) is true, and the enable of the button (disconnect) is false. When Bluetooth is selected, the address and name of the Bluetooth client will be displayed for the user to choose.

The data-related settings sent by Bluetooth are also indispensable. In this article, let the data sent by Bluetooth be 1 or 0, and you can pass it to the microcontroller to control the LED lights.

Then the control of the LED light of the single-chip microcomputer is controlled by sending zero or one to light up or dark Logic

After the series of operations are completed, we can already control the single-chip microcomputer unilaterally by the mobile phone. Here we can visualize the mobile phone as the sender of the command. The sender transmits the data to the single-chip microcomputer through the Bluetooth module.

The single-chip microcomputer realizes the control of the LED lights according to the internal program. Given) Next, let’s implement the operation of the MCU to the mobile phone feedback data, following the principle of the MCU reverse feedback data and related knowledge.

So far, all the details of the software design and the internal program design of the microcontroller have been covered, and then the software download or debugging process.

There is a Connect option on the entire interface. It is recommended to use the AI ​​companion. Ask the mobile phone to download an Appinventor app, and then let the mobile phone and the computer be in the same local area network. You can debug online to see the effect by scanning the QR code.

Leave a Reply

Your email address will not be published. Required fields are marked *