Updated documentation
This commit is contained in:
31
docs/personal-documentation/Luca/infrastructure-design.md
Normal file
31
docs/personal-documentation/Luca/infrastructure-design.md
Normal file
@@ -0,0 +1,31 @@
|
||||
### Infrastructure Design
|
||||
|
||||
---
|
||||
|
||||
```mermaid
|
||||
|
||||
graph TB
|
||||
subgraph "Raspberry Pi"
|
||||
server[NodeJS Server\nHandles requests for\nexercises]
|
||||
db[Database]
|
||||
server --Fetch exercise--> db
|
||||
db --Exercise--> server
|
||||
|
||||
end
|
||||
|
||||
subgraph "Pepper Robot"
|
||||
webServer[Web Server\n\nHandles incoming rotational data\nfrom ESP8266]
|
||||
motionProcessor[Motion Processor\n\nProcesses rotational data,\ncompares it to the current exercise\nand shows the statistics on the screen]
|
||||
motionProcessor --Send HTTP GET for Exercise--> server
|
||||
server --Send exercise in JSON format--> motionProcessor
|
||||
webServer --Process rotational data--> motionProcessor
|
||||
end
|
||||
|
||||
subgraph "Motion Sensing Device"
|
||||
esp[ESP8266\n\nMeasures sensor data\nand sends it to the web server]
|
||||
gyro[Gyroscope\n\nMeasures rotational data\nand sends it to the ESP8266]
|
||||
esp --Send rotational data\nto Pepper Web Server--> webServer
|
||||
gyro <--> esp
|
||||
end
|
||||
|
||||
```
|
Reference in New Issue
Block a user