Connect to HM-10 BLE(Bluetooth Low Energe) module with DS18B20 1-wire digital thermometer using Polymer and Web Bluetooth technology.
Tested with HM-10 copycat CS2541 module from bolutek.
Arduino Uno
arduino | HM-10 | DS18B20 | note |
---|---|---|---|
5V or 3.3V | VCC | VCC | both 5/3.3V works |
Pin 8 | TXD | ||
Pin 7 | RXD | ||
Pin 5 | Bus | 4.7k pull-up register |
First, make sure you have the Polymer CLI installed. Then run polymer serve
to serve your application locally.
To use firebase funcionalities, install Firebase CLI.
$ polymer serve
$ firebase serve
Visit https://polymer-hm10-ds18b20.firebaseapp.com/
$ polymer build
This will create a build/
folder with bundled/
and unbundled/
sub-folders
containing a bundled (Vulcanized) and unbundled builds, both run through HTML,
CSS, and JS optimizers.
You can serve the built versions by giving polymer serve
a folder to serve
from.
$ polymer serve build/bundled