VoltPlan Wiring Diagrams
v0.5.0Generate 12V/24V/48V wiring diagrams and size wires, fuses, batteries, solar, and inverters.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
generate_wiring_diagram Generate Wiring Diagram
Generate an electrical wiring diagram for campers, boats, or off-grid setups. Returns the schematic as an image (batteries, chargers, protection components, loads) and a link that opens it in the VoltPlan editor to refine, save and turn into a shopping list. Protection components (shunt, main switch, low-voltage cutoff) are auto-generated when both batteries and loads are provided. Show the user the editor link.
| Parameter | Type | Description |
|---|---|---|
systemName * | string | Name of the electrical system (e.g. "My Camper Van") |
batteries | array | Batteries in the system |
chargers | array | Chargers with their power sources |
format | string | png (default): an image the client displays. svg: SVG markup as text, without component icons, for clients that save or post-process files. |
loads | array | Electrical loads / consumers |
find_components Find Components
Find real products in VoltPlan's curated component catalogue that match a spec, e.g. a 200 Ah 12 V LiFePO4 battery or a 2000 W pure-sine inverter. Results come closest rating first. The catalogue is small and curated, so results may deviate from the requested spec; check the listed specs. Use it after the calculators (calculate_battery_bank, calculate_solar_size, calculate_inverter_size) have sized the part. Returns product pages and buy links for each product; show them to the user.
| Parameter | Type | Description |
|---|---|---|
category * | string | Kind of product: battery, solar_panel, solar_charge_controller (MPPT/PWM), dc_dc_charger (alternator / B2B charger), ac_charger (shore / mains battery charger), inverter (incl. inverter-chargers), pow… |
capacityAh | number | Batteries only: target capacity in amp-hours. Ranks results. |
capacityWh | number | Batteries and power stations: target energy in watt-hours. Ranks results; for batteries capacityAh wins when both are given. |
limit | integer | Maximum number of products to return (1-10, default: 5) |
powerWatts | number | Target power rating in watts: inverter continuous W, charger or controller output W, panel W, power station AC output W, appliance W. Ranks results; not used for batteries. |
pureSine | boolean | true: only pure sine wave products (inverter, power_station). |
query | string | Free-text filter; every word must appear in the product (e.g. "LiFePO4", "Victron"). |
systemVoltage | number | System (battery bank) voltage: 12, 24 or 48. Leaves out products built for another voltage. Ignored for solar_panel, power_station and battery_monitor. |
build_bom Build Shopping List
Build the shopping list (bill of materials) for the same system generate_wiring_diagram takes: components with matching products from VoltPlan's catalogue, cable per gauge with lengths, fuses, fuse holders, terminals and tools, sized with the same rules as the diagram. Returns buy links for every line and a link that opens the system in the VoltPlan editor; show them to the user.
| Parameter | Type | Description |
|---|---|---|
systemName * | string | Name of the electrical system (e.g. "My Camper Van") |
batteries | array | Batteries in the system |
chargers | array | Chargers with their power sources |
loads | array | Electrical loads / consumers |
list_component_types List Component Types
List all available component types and example configurations for building wiring diagrams. Use this to understand what parameters are needed before calling generate_wiring_diagram.
calculate_wire_gauge Cable Cross-Section & Resistance Calculator
Calculate the recommended wire gauge / cable cross-section for a DC circuit. Considers both ampacity (current carrying capacity) and voltage drop to recommend the optimal cable size. Also returns total resistance, power loss, and a fuse recommendation. Supports copper conductors from 0.75 mm² (18 AWG) to 240 mm² (300 MCM).
| Parameter | Type | Description |
|---|---|---|
cableLengthM * | number | One-way cable length in meters |
voltage * | number | System voltage in volts (e.g. 12, 24, 48) |
current | number | Load current in amps. Provide either current or power. |
isRoundTrip | boolean | Account for both positive and negative conductor (default: true). Set to false for chassis-ground returns. |
maxVoltageDropPercent | number | Maximum acceptable voltage drop in percent (default: 3%) |
power | number | Load power in watts. Will be converted to current using the voltage. Provide either current or power. |
temperatureCelsius | number | Ambient temperature in °C (default: 20°C). Affects copper resistance. |
calculate_power_budget Power Budget / Energy Audit
Calculate total daily energy consumption from a list of electrical loads. Each load specifies its power draw, how many hours per day it runs, and quantity. Returns total daily energy (Wh and Ah), peak power draw, and average power. This is typically the first step in sizing a battery bank and solar system.
| Parameter | Type | Description |
|---|---|---|
loads * | array | List of electrical loads to include in the budget |
systemVoltage * | number | System voltage in volts (e.g. 12, 24, 48) |
calculate_battery_bank Battery Bank Sizing Calculator
Calculate the recommended battery bank size based on daily energy consumption. Accounts for days of autonomy (how many days without charging) and depth of discharge. Returns required capacity, number of batteries, and wiring configuration.
| Parameter | Type | Description |
|---|---|---|
dailyConsumptionWh * | number | Daily energy consumption in watt-hours (from calculate_power_budget) |
singleBatteryAh * | number | Capacity of a single battery in amp-hours (e.g. 100, 200) |
singleBatteryVoltage * | number | Voltage of a single battery (e.g. 12.8 for LiFePO4, 12 for lead-acid) |
systemVoltage * | number | Target system voltage in volts (e.g. 12, 24, 48) |
daysOfAutonomy | number | Days the system should run without any charging (default: 2) |
depthOfDischargePercent | number | Usable percentage of battery capacity. LiFePO4: 80-90%, AGM: 50%, Gel: 50% (default: 80) |
calculate_solar_size Solar Panel Sizing Calculator
Calculate the required solar panel wattage to cover daily energy consumption. Accounts for peak sun hours at the location and system efficiency losses (MPPT conversion, wiring, temperature derating). Returns required wattage and common panel configurations.
| Parameter | Type | Description |
|---|---|---|
dailyConsumptionWh * | number | Daily energy consumption in watt-hours (from calculate_power_budget) |
peakSunHours * | number | Average daily peak sun hours for the location. Examples: Northern Europe winter 1-2h, summer 4-6h. Southern US 5-6h. Equatorial regions 5-7h. |
systemEfficiency | number | Overall system efficiency factor (default: 0.85). Accounts for MPPT losses, wiring losses, temperature derating, and panel soiling. |
calculate_charging_time Charging Time Calculator
Estimate how long it takes to charge a battery bank from a given state of charge to a target level. Accounts for the bulk charging phase (constant current, up to ~80% SoC) and the slower absorption phase (tapering current, 80-100% SoC). Works for any charging source: solar, shore power, alternator.
| Parameter | Type | Description |
|---|---|---|
batteryCapacityAh * | number | Total battery bank capacity in amp-hours |
batteryVoltage * | number | Battery bank voltage (e.g. 12, 24, 48) |
chargePowerWatts * | number | Charger output power in watts |
currentStateOfChargePercent * | number | Current state of charge in percent (e.g. 20 for 20%) |
chargeCurrentAmps | number | Maximum charge current in amps (if limited by the charger or battery BMS). If omitted, calculated from power and voltage. |
targetStateOfChargePercent | number | Target state of charge in percent (default: 100) |
calculate_inverter_size Inverter Sizing Calculator
Calculate the recommended inverter size for running AC loads from a DC battery system. Accounts for continuous power, startup surge power (motors typically surge 2-3x), and includes a 25% headroom for the continuous rating. Returns the recommended inverter wattage and the DC current draw at system voltage.
| Parameter | Type | Description |
|---|---|---|
loads * | array | List of AC loads that will run through the inverter |
systemVoltage * | number | DC system voltage (e.g. 12, 24, 48) |
calculate_battery_config Battery Configuration Calculator
Determine how to arrange batteries in series and/or parallel to achieve a target voltage and capacity. Returns the number of batteries needed, the wiring configuration (e.g. 2S3P), and step-by-step wiring instructions.
| Parameter | Type | Description |
|---|---|---|
singleBatteryAh * | number | Capacity of one battery in amp-hours |
singleBatteryVoltage * | number | Nominal voltage of one battery (e.g. 12.8 for LiFePO4, 12 for lead-acid, 3.2 for LiFePO4 cells) |
targetCapacityAh * | number | Desired total capacity in amp-hours |
targetVoltage * | number | Desired system voltage (e.g. 12, 24, 48) |