Hello! Today I will show you how to make an Arduino/Genuino 101 Bluetooth Low Energy thermometer with TMP102 and Blynk.
Let's begin.
Connect the componentsFirst, plug the sensor breakout on the breadboard. Then, with the 4 jumpers, connect the sensor with the 101 board.
- GND to GND
- VCC to 3.3v
- SDA to SDA
- SCL to SCL
If you already have the Arduino IDE, then it's OK, otherwise download the Arduino IDE from here.
Download the 101's core packageNow, open the Arduino IDE and go to Tools => Board => Boards Manger. Click on "Boards manager", then type "Genuino 101" or "Arduino 101" (or you can just type "101" in the search bar) and you will get the package for Arduino/Genuino 101 board. Click on install and wait for it to download and install. Now you are done with it.
Now go to Sketch => Include Library => Manage Libraries. Click on "Manage Libraries" and type Blynk in the search bar, then you will get the library. Click on install and wait. Once the library is installed, you are ready to move on the next step.
Open the Blynk app and tap on the QR scanner button, then scan the QR code from this step. The app will build itself.
Now you need to get the "Auth Token". Tap on the "Nut" icon, then on the device, and then tap on it again. Now, you should see your "Auth Token". E-mail or rewrite it, because you will need it in the next step!
Edit and upload the sketchOpen the sketch or copy it from here, then add your "Auth Token". Upload the sketch.
Note: CODE UPDATE 23.01.17 - You can now measure negative temps !
Connect the 101 with BlynkIn the Blynk app, tap on the Bluetooth button.
Then tap on "Connect BLE Device". Choose your 101 board, go back and deploy the app.
You are all done.
NOTE: The readings are on virtual pins: 0, 1, 2.
Comments
Please log in or sign up to comment.