MKR1010 Bluetooth LE with Accelerometer
You will need to upgrade your MKR 1010 to firmware version 1.2.0, using the Firmware updater tool in the Arduino IDE. Here are instructions to upgrade the firmware of the MKR 1010. This was built using an ADXL337 accelerometer was used for this example because it is simple; Any of the ADXL accelerometers can be substituted (the drawing shows an ADXL335). This family of accelerometers has three analog voltage outputs for the three axes.
Accelerometer connected to MKR board, Schematic view:
Accelerometer connected to MKR board, Breadboard view:
You can use this with this p5.js Web Bluetooth example.
- Make: Bluetooth (book) by Alasdair Allan, Don Coleman, and Sandeep Mistry
- BLEDocs, a repository introducing Bluetooth LE
- LightBlue, a Bluetooth LE diagnostic app for MacOS by Punchthrough Design
- The ArduinoBLE library
- Instructions to upgrade the firmware of the MKR 1010