COMPONENTS USED
NodeMCU - Think of it as a WiFi module + GPIO pins OR Arduino with integrated WiFi MPU6050 - Gyroscope + Accelerometer + Thermometer. All use MEMS technology A bunch or wires and LEDs
FOLDERS
Relevant material/
Make sure you read the PDF inside it and:
- http://www.esp8266-projects.com/2015/12/mailbag-mpu6050-module-i2c-driver-init.html/
- https://arduino-esp8266.readthedocs.io/en/latest/esp8266wifi/server-examples.html
LIBRARIES NEEDED BY ARDUINO/
For the NodeMCU to connect and all to work properly, the libraries in here need to be transfered to Arduino Libraries folder.
The complete project\Backend\The_Project_Final
Contains one .ino file to be run on the NodeMCU. This turns the NodeMCU into a TCP server which sends data to a client every 1sec **You should know: ** The NodeMCU lacks a easily usable library to work with MPU6050, hence code to do direct I2C communication had to be written
USAGE
- Prepare the environment
- Perform connections:
SCL - D6
SDA - D7
LED to show WiFi connected - D1
LED to show client connected - D5
- Run the code on NodeMCU
- Connect a phone or PC to the same WiFi as NodeMCU
- Access '192.168.88.90' on your device. Data should start streaming in.
TODO
- Create a VueJS frontend that queries for data from the TCP server periodically and updates a table