Skip to content

Anteater-Electric-Racing/embedded-mz

Repository files navigation

Architecture

flowchart TD
    BMS(Orion BMS) -->|CAN| RASPI
    IMS(Valeo Charger) <-->|CAN| BMS
    IMS(Valeo Charger) -->|CAN| RASPI

    B([Brake Sensors]) -->|Analog| TS-CCM
    L([Linear Potentiometers]) -->|Analog| TS-CCM
    PDL([Pedal Input]) -->|Analog| TS-CCM
    
    TS-CCM("Teensy 4.1 (CCM)") <--> |CAN| TS-PCC("Teensy 4.0 (PCC)")
    INV("Inverter (DTI HV-550)") <--> |CAN| TS-CCM

    style TS-CCM fill:#FFE0B2,stroke:#333,color:#000
    style TS-PCC fill:#FFE0B2,stroke:#333,color:#000

    TH([Thermistors]) --> |Analog| TS-PCC

    PCC(Precharge Circuit) --> |Analog / Digital| TS-PCC
    
    subgraph RASPI[Raspberry Pi]
        R(["Raspi Logger"]) -->|HTTP| I(TDengine)
        R -->|MQTT| D("Raspi Dashboard")
    end
    subgraph Graphana[Wireless Grafana]
        I -->|HTTP| F(Full History Preview)
        R -->|MQTT| P(Real Time Preview)
    end
Loading

Development Environment

fsae-daq

Accessing fsae-daq from base station

Run Grafana:

docker run -d -p 3000:3000 --name=grafana grafana/grafana-enterprise

Setting up development environment

  • Open the project in VSCode
  • Install the Dev Containers extension for VSCode
  • Open the command palette (Super+Shift+P) and run Dev Containers: Rebuild and Reopen in Container
  • The project will now be running in a container with all the necessary dependencies (rust) and services (grafana, influxdb)
  • Now run cargo run --bin fsae-daq to start the logging service
  • You can view the dashboard at http://localhost:3000 (default username: admin, password: admin)
  • You can view the influxdb database (http://localhost:8086) or MQTT broker (localhost:1883), by adding it as a data source in Grafana

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors