Files
J1B4-Fitbot/docs/personal-documentation/Luca/infrastructure-design.md
2024-06-04 16:58:06 +02:00

1009 B

Infrastructure Design



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