Apploader - upload Arduino sketches over BLE from iPad/iPhone - Start guide

易管家 提交于 2019-12-17 10:41:35

Basics

Hardware

Before we start check you have the following:
1. Arduino UnoArduino Mega 2560 or Arduino Nano board
2. HM-10, HM-11(both preferred) or HC-8 BLE module

First, set baud rate 115200 for your BLE module using AT-command for Uno or Mega2560 or 57600 for Nano board.

For HM-10 you can use AT+BAUD? command to check current baud rate and AT+BAUD4 to set baud rate 115200 or AT+BAUD3 to set baud rate 57600. Consult HM-10 datasheet if necessary. You can use mega-to-hm10 sketch to use Mega as USB-to-TTL converter to send AT-commands:


Second, wire the schematic:

ArduinoHM-10
pin 0 (RX or RX0 for Mega)pin 1 (TX)
pin 1 (TX or TX0 for Mega)pin 2 (RX)
3.3V (VCC)pin 12
GNDpin 13 (GND)


Arduino Uno wiring:

Arduino Mega 2560 wiring:

Arduino Nano v3 wiring:

Software

Third, power the schematic, turn on Bluetooth on iOS device and launch Apploader iOS app.
Click "Blink" sketch for your board and tap "Upload":


Choose your BLE module:

You can choose any BLE module with special firmware - RX and TX characteristics to work as transparent serial. For another BLE module you need to type RX UUID and TX UUID. Currently HM-10/11 and HC-8 are supported out-of-box.

Then select "Manual" board reset if not selected.

Click "Upload" button to start uploading.
You will see uploading log and then press hardware Reset button:

Congratulations!

For now you've pressed reset hardware button, but you can make Apploader reset the board automatically. Read about reset modes more.

Consider supporting the project to help me implement upcoming features.
Follow troubleshooting guide if you see uploading error alert.

Advanced: uploading user sketches

After getting Premium you can add your own sketches to upload.

First, turn verbose output in your desktop Arduino IDE:

and compile the sketch (click "Verify" button):


Then find compiled sketch file (ends with ".cpp.hex") and email it to yourself (attach file to email).
After that launch "Mail" iOS application and open your email with compiled sketch attached.
Then perform long tap on attached sketch file and tap "Open in Apploader":


After that Apploader app will be launched.
Click "Choose" to choose Arduino board and then click "Add" to add the sketch:


Your sketch is listed in "User sketches" list:

Now you can upload user sketches.


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!