To do this we can add the following file to /etc/rc.local (before the exit command). To do this we use bluetoothctl following the process described in the link below:įinally, we wish to tell the device to watch for incoming Bluetooth connections when it boots. To prevent issues with pairing Bluetooth devices whilst out in the field, it is always a good idea to pre-pair devices - saving their configuration. Having added the ‘compatibility’ flag, we now have to restart the Bluetooth service on the Pi: sudo systemctl daemon-reload sudo systemctl restart rvice Pairing our monitor device Here we locate the line starting ExecStart, and replace it with the following: ExecStart=/usr/lib/bluetooth/bluetoothd -compat -noplugin=sap ExecStartPost=/usr/bin/sdptool add SP We begin by changing the configuration of the installed Bluetooth library: sudo nano /etc/systemd/system/ Installation and Setupīefore we start there are a couple of changes required for the Bluetooth to work. In our case, it will be through the use of a mobile phone or android tablet, such that we can compare the sensor and GPS readings. Within this tutorial, we look at exploiting the Bluetooth capabilities of a Raspberry Pi Zero (without WiFi) to transmit the initial set of results to a handheld device of our choosing. ![]() However what happens when we are in a very remote part of the world, with no laptop, wifi or signal? Whilst developing these we can easily SSH into them and write any results to screen. When building portable sensors we often want to calibrate and double-check their readings before allowing them to log data remotely. ![]() Photo by Samuel Chenard on Unsplash Introduction
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |