My objective is to get both data from VN200 GNSS/INS sensor (using GPIO14/15) and heart rate monitor strap Polar H10 (using Bluetooth) at the same time for synchronization.
Bluetooth on pi zero w by default use UART.
$ ls -l /dev/serial1
... /dev/serial1 -> ttyAMA0
$ ls -l /dev/serial0
No such file ...
After I switched Bluetooth mini-UART by adding these code to /boot/config.txt
dtoverlay=miniuart-bt
enable_uart=1
force_turbo=1
Now I got.
ls -l /dev/serial0
... /dev/serial0 -> ttyAMA0
ls -l /dev/serial1
... /dev/serial1 -> ttyS0
I want to use GPIO14/15 for primary UART to read data over VN200 sensor and bluetooth over mini-UART for reading data from heart rate strap. However, I noticed that both the ttyS0 and ttyAMA0 use same GPIO14/15 from this post, which either of them can be use.
My question is
- For certainty, is it possible to read 2 data at the same time? I doubt not.
- Do I have to use Bluetooth USB dongle for read HR data.