Updated documentation

This commit is contained in:
Luca Warmenhoven
2024-06-04 16:58:06 +02:00
parent f4b11dd4ee
commit 4dad284ba0
4 changed files with 130 additions and 9 deletions

View 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
```