Author: Bhagath Cheela
In this example project, we collect the data from pulse sensor using Arduino UNO and transfer this to NodeMCU using I2C. And from the Node MCU, the data is then uploaded to adafruit io (Make sure that you update the config file with your IO key if you try to run this project).
- 1 x NodeMCU 8266
- 1 x Arduino UNO
I2C used to communicate data between Arduino and NodeMCU
Arduino UNO | NodeMCU |
---|---|
A5 | D2 |
A4 | D1 |
GND | GND |
- Download or clone the github repo to your computer.
- Follow these instructions setup your NodeMCU.
- In the Arduino IDE, install the following libraries:
- Flash the code in this repo onto the NodeMCU. You can do this by opening up ese111_nodemcu_bridge.ino in the ese111_nodemcu_bridge folder.
- Create an account at io.adafruit.
- Click My Key
- Going back to the Arduino IDE, modify config.h so it has the appropriate username and key.
- Back to the io.adafruit.com website, click on Dashboard > Welcome Dashboard (or a new one that you made). Under the gear icon on the right hand side, select Create New Block > Line Chart.
- Create a new feed called "pulse" (all lowercase). Select it and click "Next step >"
- In order to export data as a csv, follow these instructions.
Arduino UNO | Pulse Sesnor |
---|---|
A0 | BLACK |
5V | RED |
GND | GND |