TwoBleV2.aia (189.3 KB)
DeclinationSensorArduinoCode.txt (5.4 KB)
HourAngleSensorArduinoCode.txt (5.4 KB)
Here is a second version of the TwoBle demonstrator. It has all the non-relevant project material removed for clarity leaving just the two BLE channels and a display of the measurements transmitted from each of the sensors. I've attached the two sensor programs as an example of how the sensors might work with the App.
Worth noting that
- The two sensors being read are called respectively IMUA and IMUB and these names are used to identify the BLEs when scanning.
- In the continuous download method the measurements are asynchronous and are a sample of measurements from a high speed source. Whereas in the 'read' method each measurement sent is read albeit at a lower rate. The performance can sometimes be improved by prefiltering the data in the remote sensors. In these examples I'm prefiltering and transmitting from each sensor.
- When scanning you may have to wait for a while until the BLE channel identifies the requested BLE, depending on how many other BLE transceivers are operating nearby.
- You may need to check if the request for permission has switched off the phone BLE transceiver and if so switch it on again. But this only needs to be done once when the App is installed.