Node documentation
This commit is contained in:
BIN
docs/assets/Node.fzz
Normal file
BIN
docs/assets/Node.fzz
Normal file
Binary file not shown.
BIN
docs/assets/Node.png
Normal file
BIN
docs/assets/Node.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 216 KiB |
@@ -19,20 +19,23 @@ The node is programmed using the Arduino IDE. The code is written in C++ and is
|
|||||||
|
|
||||||
The following libraries are used in the node code:
|
The following libraries are used in the node code:
|
||||||
|
|
||||||
- <Wire.h>
|
- Wire.h
|
||||||
- <Adafruit_SH110X.h
|
- Adafruit_SH110X.h
|
||||||
- <Adafruit_SGP30.h>
|
- Adafruit_SGP30.h
|
||||||
- <DHT.h>
|
- DHT.h
|
||||||
- <WiFiMulti.h>
|
- WiFiMulti.h
|
||||||
- <WiFi.h>
|
- WiFi.h
|
||||||
- <WebSocketsClient.>
|
- WebSocketsClient.
|
||||||
- <nodeCodeHeader.h>
|
- nodeCodeHeader.h
|
||||||
|
|
||||||
### Code
|
### Code
|
||||||
|
|
||||||
The code is divided into the following classes:
|
The code is divided into the following classes:
|
||||||
|
|
||||||
uitleg dano
|
- Node readings
|
||||||
|
- Websockets
|
||||||
|
|
||||||
|
The two classes that are used are split into the 2 becouse the node readings handels everything about reading information from the sensors and displaying them on the screen, all the local stuff is handeled here so to speak. And into Websockets this handels every thing from connecting to the wifi to sending the data that is recorded from the sensors into json format and sending that data to the websockets so that the data can be prossed over there.
|
||||||
|
|
||||||
### Communication
|
### Communication
|
||||||
|
|
||||||
@@ -63,6 +66,13 @@ The wiring diagram for the node is as follows:
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|
### Fritsing Diagram
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Future Improvements
|
## Future Improvements
|
||||||
|
|
||||||
The node is currently working as intended, but there are some improvements that could be made:
|
The node is currently working as intended, but there are some improvements that could be made:
|
||||||
|
0
docs/node-documentation/nodeDocumentation.md
Normal file
0
docs/node-documentation/nodeDocumentation.md
Normal file
Reference in New Issue
Block a user