# marwarashwan/ev-smart-car- architecture

> Architecture diagram of the GitHub repository marwarashwan/ev-smart-car-, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/marwarashwan/ev-smart-car-
- Repository: https://github.com/marwarashwan/ev-smart-car-

## Overview

This repository is a documented Smart EV control-and-sensing schematic, not an executable software project. Its principal flow is power regulation and sensor acquisition, followed by compute/control communication and relay-based motor cut-off. The README documents the component roles and wiring; no source code is available to verify behavior beyond those descriptions.

Main entry points: [`README.md`](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md) (5V Logic Rail)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_power["Power Bus"]
  node_battery["48V Battery<br/>[README.md]"]
  node_fuse["Master Switch / Fuse<br/>[README.md]"]
  node_reg12["48V–12V Regulator<br/>[README.md]"]
  node_reg5["48V–5V Regulator<br/>[README.md]"]
  node_aux["12V Auxiliary Loads<br/>[README.md]"]
  node_logicrail["5V Logic Rail<br/>[README.md]"]
  node_ground["Common Ground<br/>[README.md]"]
end

subgraph group_compute["Controllers"]
  node_jetson["Jetson Orin<br/>[README.md]"]
  node_arduino["Arduino Mega<br/>[README.md]"]
  node_link["UART / USB Link<br/>[README.md]"]
end

subgraph group_sensing["Sensor Array"]
  node_lidar["RPLIDAR S3<br/>[README.md]"]
  node_imu["WT901 IMU<br/>[README.md]"]
  node_ultrasonic["Ultrasonic Sensor<br/>[README.md]"]
  node_divider["Echo Voltage Divider<br/>[README.md]"]
end

subgraph group_safety["Safety Circuit"]
  node_relay["2-Channel Relay<br/>[README.md]"]
  node_cutoff["Ignition / Motor Cut-off<br/>[README.md]"]
end

node_battery -->|"supplies power"| node_fuse
node_fuse -->|"48V bus"| node_reg12
node_fuse -->|"48V bus"| node_reg5
node_reg12 -->|"12V rail"| node_aux
node_reg5 -->|"5V rail"| node_logicrail
node_battery -.->|"negative return"| node_ground
node_reg12 -.->|"ground return"| node_ground
node_reg5 -.->|"ground return"| node_ground
node_logicrail -->|"powers"| node_jetson
node_logicrail -->|"powers"| node_arduino
node_logicrail -->|"powers"| node_relay
node_logicrail -->|"powers"| node_ultrasonic
node_lidar -->|"sends LiDAR data"| node_jetson
node_imu -->|"serial data"| node_arduino
node_ultrasonic -->|"echo pulse"| node_divider
node_divider -->|"protected echo"| node_arduino
node_arduino -->|"exchanges data"| node_link
node_link -->|"exchanges data"| node_jetson
node_arduino -->|"controls input"| node_relay
node_relay -->|"switches circuit"| node_cutoff

click node_battery "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_fuse "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_reg12 "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_reg5 "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_aux "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_logicrail "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_ground "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_jetson "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_arduino "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_link "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_lidar "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_imu "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_ultrasonic "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_divider "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_relay "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"
click node_cutoff "https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md"

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_battery,node_fuse,node_reg12,node_reg5,node_aux,node_logicrail,node_ground toneBlue
class node_jetson,node_arduino,node_link toneAmber
class node_lidar,node_imu,node_ultrasonic,node_divider toneMint
class node_relay,node_cutoff toneRose
```

## Components

### Power Bus

- [48V Battery](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [Master Switch / Fuse](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [48V–12V Regulator](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [48V–5V Regulator](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [12V Auxiliary Loads](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [5V Logic Rail](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [Common Ground](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`

### Controllers

- [Jetson Orin](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [Arduino Mega](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [UART / USB Link](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`

### Sensor Array

- [RPLIDAR S3](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [WT901 IMU](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [Ultrasonic Sensor](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [Echo Voltage Divider](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`

### Safety Circuit

- [2-Channel Relay](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`
- [Ignition / Motor Cut-off](https://github.com/marwarashwan/ev-smart-car-/blob/main/README.md): `README.md`

## Connections

- 48V Battery → Master Switch / Fuse: supplies power
- Master Switch / Fuse → 48V–12V Regulator: 48V bus
- Master Switch / Fuse → 48V–5V Regulator: 48V bus
- 48V–12V Regulator → 12V Auxiliary Loads: 12V rail
- 48V–5V Regulator → 5V Logic Rail: 5V rail
- 48V Battery → Common Ground: negative return
- 48V–12V Regulator → Common Ground: ground return
- 48V–5V Regulator → Common Ground: ground return
- 5V Logic Rail → Jetson Orin: powers
- 5V Logic Rail → Arduino Mega: powers
- 5V Logic Rail → 2-Channel Relay: powers
- 5V Logic Rail → Ultrasonic Sensor: powers
- RPLIDAR S3 → Jetson Orin: sends LiDAR data
- WT901 IMU → Arduino Mega: serial data
- Ultrasonic Sensor → Echo Voltage Divider: echo pulse
- Echo Voltage Divider → Arduino Mega: protected echo
- Arduino Mega → UART / USB Link: exchanges data
- UART / USB Link → Jetson Orin: exchanges data
- Arduino Mega → 2-Channel Relay: controls input
- 2-Channel Relay → Ignition / Motor Cut-off: switches circuit
