# baptistelynx/zlac_driver architecture

> Architecture diagram of the GitHub repository baptistelynx/zlac_driver, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/baptistelynx/zlac_driver
- Repository: https://github.com/baptistelynx/zlac_driver

## Overview

This is a small Python driver library for a ZLAC8015D dual-wheel motor controller. Its Controller opens a Modbus RTU serial connection and exposes motor mode, speed, position, fault, and wheel-feedback operations. The sampled source shows the Modbus calls and serial setup; the README is empty, and no consumer workflow is documented, so the graph focuses on the runtime driver and its hardware interaction.

Main entry points: [`src/zlac_driver/ZLAC8015D.py`](https://github.com/baptistelynx/zlac_driver/blob/main/src/zlac_driver/ZLAC8015D.py) (Motor Controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_controller["Motor Controller<br/>[ZLAC8015D.py]"]
node_modbus["Modbus Client"]
node_motor["ZLAC8015D Device"]

node_controller -->|"reads and writes"| node_modbus
node_controller -->|"connects serially"| node_motor

click node_controller "https://github.com/baptistelynx/zlac_driver/blob/main/src/zlac_driver/ZLAC8015D.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_controller toneTeal
class node_modbus toneBlue
class node_motor toneIndigo
```

## Components

### Other components

- [Motor Controller](https://github.com/baptistelynx/zlac_driver/blob/main/src/zlac_driver/ZLAC8015D.py): `src/zlac_driver/ZLAC8015D.py`
- **Modbus Client**
- **ZLAC8015D Device**

## Connections

- Motor Controller → Modbus Client: reads and writes (evidence: `src/zlac_driver/ZLAC8015D.py`)
- Motor Controller → ZLAC8015D Device: connects serially (evidence: `src/zlac_driver/ZLAC8015D.py`)
