Skip to content

Commit

Permalink
Updates to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pulasthieka committed Dec 9, 2020
1 parent a72ef2c commit faa2795
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ The following packages have to be installed.

#### Setup Database

1. Create a new database and enable oplog on the database
1. Create a new database
2. Setup replica set for the new database
- Start mongodb `mongodb --dbpath "path-to-database"`
- Open a new terminal and start a mongo shell `monogo`
- Type `rs.initiate()`

#### Setup Web-app

Expand Down Expand Up @@ -39,7 +43,9 @@ Run the below commands in seperate terminals
You can also use the buttons above the graph to navigate the graph.

## Further help

#### Setting up ESP32

0. Install ESP32 core for ArduinoIDE
1. Navigate to C:\Users\USERNAME\AppData\Local\Arduino15\packages\esp32\hardware\esp32\VIRSION\cores\esp32
2. Open HardwareSerial.cpp
Expand All @@ -48,14 +54,17 @@ You can also use the buttons above the graph to navigate the graph.
5. Restart Arduino IDE

#### Testing end to end system

1. Connect your laptop to a Wi-Fi network
2. Run "ipconfig" on CMD and get your laptop's IP address
3. Update line 24 and 25 of ESP32.ino with your WiFI SSID and password
4. Update line 27 of ESP32.ino with the IP address you obtained from step 2
5. Program ESP32.ino to ESP32
6. Program ATTiny_1.ino to an ATTiny and connect it's pin 3 to D2 of ESP32
7. Program ATTiny_2.ino to an ATTiny and connect it's pin 3 to RX2 of ESP32
9. Run server.js and mongoDB(with replica sets)
10. Go to port 90 of your localhost to see data plots using index.html
5. Program [ESP32.ino](Hardware\ESP32\ESP323.ino) to ESP32
6. Program [ATTiny_1.ino](Hardware\ATTiny_1\ATTiny_1.ino) to an ATTiny and connect it's pin 3 to D2 of ESP32
7. Program [ATTiny_2.ino](Hardware\ATTiny_2\ATTiny_2.ino) to an ATTiny and connect it's pin 3 to RX2 of ESP32
![ESP32 Pinout](images\ESP32-Pinout.jpg)
8. Run [server.js](server.js) and mongoDB(with replica sets)
`mongod --dbpath "path-to-database" --replSet "rs"`
9. Go to port 90 of your localhost to see data plots using index.html

note - supporting js files, ndex.html and server.js must be in the same folder
note - supporting js files, index.html and server.js must be in the same folder
Binary file added images/ESP32-Pinout.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit faa2795

Please sign in to comment.