In stock
View Purchasing OptionsProject update 7 of 8
Hello backers,
It has been a while since the last update and we are really grateful for your patience. Today, we would like to introduce you to the free BlueIOTerm mobile app, which can function as a UART serial port terminal when pairing with a BlueIO832Mini board.
One of the highlights of the BlueIO832Mini board is that the pins are configurable using our free mobile apps (Fig. 1). These pins can be configured as UART, SPI, or I2C interfaces depending on your use cases. Accordingly, serial interface-over-Bluetooth LE (BLE) is an important application of BlueIO832Mini, allowing UART/SPI/I2C data streaming between the users’ mobile device and the target device connected to the BlueIO832Mini.
In this update, we would like to demonstrate the BlueIOTerm mobile app working as a UART serial port terminal application on a mobile device. The app is similar to desktop applications such as CoolTerm, TeraTerm, etc. It allows users to remotely communicate with a target device connected to the BlueIO832Mini via a UART interface (Fig. 2).
In what follows, we demonstrate two examples combining BlueIOTerm and BlueIO832Mini:
BlueIOTerm is available for smartphone and tablet. Users can scan the following QR codes to directly download and install a BlueIOTerm version compatible with their devices.
Note: The Android version of BlueIOTerm will be available soon.
In this scenario, users can utilize the BlueIOTerm mobile app, via a paired BlueIO832Mini, to exchange data with CoolTerm.
The setup for this use case is abstracted in Fig. 3. The steps are as follows:
The combination of BlueIOTerm and BlueIO832Mini can also be utilized for wirelessly interacting with a MicroPython interpreter running on a remote target device. This improves users’ convenience. For example, users can attach a BlueIO832Mini to a target device hosting MicroPython interpreter, and leave this combo on their office desk. Then they can write MicroPython code and test it on the target device with BlueIOTerm while sitting anywhere in their work-space. Furthermore, if the target device is connnected to LEDs and/or sensors, the user can remotely control them by sending code to the MicroPython interpreter.
Users will need two pieces of hardware for this setup:
User will connect the BlueIO832Mini to the target device via UART interface. The UART pins of BlueIO832Mini are shown in Fig. 1. The pin configuration for the IBK-BLYST-NANO board can be found at I-SYST. The system is powered by a 3.3V power supply (Fig. 8).
The steps for interacting with MicroPython interpreter via BlueIOTerm are as follows:
Pair the BlueIOTerm with the BlueIO832Mini board. The steps are the same as steps 1-3 in the previous section.
Reset the MicroPython interpreter by resetting the target device. Typically, for the IBK-BLYST-NANO board, tie the Reset pin to ground (GND) and release it. BlueIOTerm will then display as in Fig. 9.
Note: The user can trigger a soft reset for the MicroPython Interpreter by sending a "Ctrl+d" key combo to the interpreter. To do that, the virtual keyboard can be used.
Now, users can type Python code into the "input text" section and send them to the MicroPython interpreter for execution. The input code and the execution result are shown in the displayed section (Fig. 10).
import board
x = board.LED(1)
x.on()
x.off()
In this scenario, users prepare a Python script in a file, and send it to the MicroPython interpreter for execution.
import time
import board
LED1 = board.LED(1)
LED2 = board.LED(2)
LED3 = board.LED(3)
def LedOn(idx):
if idx == 1:
LED1.on()
elif idx == 2:
LED2.on()
elif idx == 3:
LED3.on()
else:
print("Wrong LED id")
def LedOff(idx):
if idx == 1:
LED1.off()
elif idx == 2:
LED2.off()
elif idx == 3:
LED3.off()
else:
print("Wrong LED id")
def LedDance():
for i in range(1,4):
LedOff(i)
x = 600
for i in range(10):
LedOn(1)
time.sleep_ms(x)
LedOn(2)
time.sleep_ms(x)
LedOn(3)
time.sleep_ms(x)
LedOff(1)
LedOff(2)
LedOff(3)
x = x - 50
Switch the MicroPython interpreter to "Paste" mode (Fig. 12). To do that, we take the following steps:
Enter "Ctrl + d" to finish pasting the script and to exit the paste mode. The interpreter will execute the Python script thereafter (Fig. 12).
Now, we can execute the LedDance()
function in the script by entering "LedDance()" into the input text. We can see the LEDs status in the following video:
Have fun playing with BlueIOTerm and BlueIO832Mini!
The BlueIO team.
BlueIO832 Mini is part of Nordic Community Hub
NRF52832-QFAA-R7
· Bluetooth System-on-Chip
Brain of the BlueIO832 Mini.