Wiring diagram

PV panel 20 W Lantern Control box Battery box (sealed) −+ Lampreg10.5 V COB 1 COB 2 Parallel Reg in lantern base Lantern run, automotive 2-coreLAMP / 0V, drip bend at control box 0V Daylight sensor LM393 GNDVCCDO Mini-3605 V LINE+ 0V Photodiode in box top, faces SSE Daylight relay 3 V coil, from sensorDAY NC not used COIL−COIL+ DAY NCNIGHT NO COM 0V PIR relay 3 V coil, from PIR COMNO COIL−COIL+ PIR sensor VCCGNDOUT +5V 0V Mode switch S1 SPDT on/on, waterproof bottom face, rubber boot COMAUTOON 3 V* 5 V reg PIR sensor IN+IN− +− +5V 0V 0V LINE+ 0V PV runautomotive 2-coreinto control box F1 PTC30 V 2.5 ALINE+ 0V Battery run, automotive 3-core, about 20 cm: PV+ / LINE+ / 0V PV+ W1209 relay (K1) Fujitsu VB-12STBU-5 A1+A2− COMNC NO SD30CRMA Out 16.0 V, heatsinked IN+IN− P− OUT+OUT− LINE+ P− Heater reg 5 V LM2596, heatsinked IN+IN− P− +− Heat sheet (wraps pack) redblack S2 outside / off / inside DPDT on/off/on, waterproof A: both throws joined → run B: outside only → S2-B A outA comB comB out S2-B W1209 coil+drive +12VGND NTCNTC NTC a NTC b 12 V Mini-360 OUT+OUT− IN+IN− P− S2-B 4S8P pack + 4S BMS P+P− G1G2G3G4 BMS B−/B1/B2/B3/B+to group joints T1–T4 in channels, 2S2P NTC a NTC b

Red positive, black negative, blue signal/balance. Dot = joined; hop or no dot = not joined. Tags (LINE+, S2-B, +5V, 0V, P−) join every point with the same tag. LINE+ is the pack positive through S2 pole A; 0V in the control box is P− brought up the battery run. 3 V* = source for S1 ON, to be settled.

Cable runs

Control box mounted 20 cm above the battery box roof. Three holes in the control box bottom, one per run, sealed with silicone.

RunCableCores
PV panel → control boxAutomotive sheathed 2-coreFrom the back of the panel, along the bracket, round the corner of the post and up into the control box bottom, with a drip bend. PV+ passes through to the battery run; PV− → 0V
Battery box ↔ control boxAutomotive sheathed 3-core, about 20 cmDown from the control box bottom, past the battery box roof by about 5 cm, bend, back up into the battery box. PV+: panel to K1 COM; LINE+: pack P+ through S2 pole A; 0V: pack P−, shared by the panel negative (the SD30CRMA input and battery GND are common)
Control box → lanternAutomotive sheathed 2-coreDrip bend at the control box. LAMP (PIR relay NO) and 0V → lamp regulator in lantern base → COB 1 and COB 2 in parallel

Wiring schedule

BoxFromTo
BatteryPack P+S2 pole A COM and pole B COM
BatteryS2 pole A outside and inside throws (joined)F1 (PTC resettable fuse, 30 V 2.5 A)
BatteryF1 out = LINE+Battery run LINE+; SD30CRMA OUT+
BatteryBattery run PV+K1 COM
BatteryK1 NCSD30CRMA IN+
BatteryS2 pole B outside throw (S2-B)12 V Mini-360 IN+
Battery12 V Mini-360 OUT+ / OUT−W1209 +12V / GND
BatteryW1209 relay pads coil+ / driveK1 A1+ / A2−
BatteryK1 NOHeater reg (LM2596) IN+
BatteryHeater reg OUT+ / OUT−Heat sheet red / black
BatteryW1209 NTC input (NTC a / NTC b)Thermistor network: T1+T2 in series and T3+T4 in series, the two branches in parallel (10k). One bead per 8P group centre channel; series joins in packs 2 and 4, parallel joins at top, two leads out
Battery12 V Mini-360 IN−, heater reg IN−, SD30CRMA IN− and OUT−P−
BatteryPack P−Battery run P−
BatteryBMS B−, B1, B2, B3, B+Pack −, G1/G2, G2/G3, G3/G4, pack +
ControlPV run +Battery run PV+ (joined through)
ControlPV run −0V
ControlBattery run LINE+Daylight relay COM; PIR 5 V reg IN+; daylight Mini-360 IN+
ControlBattery run P−0V
ControlBoth 5 V regulators IN− and −0V
ControlDaylight Mini-360 OUT+ / OUT−Daylight sensor VCC / GND
ControlDaylight sensor DO (AO not used)Daylight relay COIL+
ControlDaylight relay COIL−0V
ControlDaylight relay NIGHT (DAY not used)PIR relay COM
ControlPIR relay NOLantern run LAMP
Control0VLantern run 0V
ControlPIR 5 V reg +PIR sensor VCC
ControlPIR sensor OUTMode switch S1 AUTO
Control3 V* (to be settled)Mode switch S1 ON
ControlMode switch S1 COM (SPDT on/on, waterproof, bottom face with rubber boot)PIR relay COIL+
ControlPIR relay COIL−, PIR sensor GND0V
LanternLantern run LAMP / 0VLamp reg IN+ / IN− (lantern base)
LanternLamp reg OUT+ / OUT−COB 1 and COB 2 in parallel

Daylight sensor: the photodiode is lifted off the LM393 board onto two short leads and set at an angle in an oversize hole in the control box top, facing SSE, so it trips as dusk settles in rather than when the sky overhead goes dark.

Battery box: pack, BMS, SD30CRMA, W1209 with its 12 V Mini-360, K1, the heater regulator and S2. Three leads to the control box: PV+ in, LINE+ out, and a shared 0V. As a standalone pack it charges through the MPPT input, so it needs a source of about 18 V or more.

S2 outside: LINE+ live (charging and load), W1209 live. Off: everything off, including charging. Inside: LINE+ live, W1209 unpowered, so K1 rests on NC and charging is normal. S2 is DPDT on/off/on: pole A carries LINE+ in both on positions, pole B feeds the W1209 in outside only. The MPPT output joins LINE+ after S2 and F1, so off stops charging as well as the load.

F1 is a resettable PTC fuse (30 V 2.5 A) on LINE+, protecting the run and every relay contact downstream. It resets by itself once the fault is cleared and it cools.

K1 is the W1209 relay, a Fujitsu VB-12STBU-5 (12 V coil, 5 A contacts), mounted off the board in the battery box. NC: panel to the MPPT, charging. NO: panel to the heater regulator and heat sheet, no charging. The pack is never charged while the W1209 is calling for heat, and the heater only ever runs from the panel.

The daylight relay only switches the pack to the PIR relay and lantern at night; its DAY contact is not used.

Changing to a SELV rail: remove the battery box and the panel with its run; connect LINE+ and 0V to the rail; insulate and leave the PV+ core unconnected (or remove it). Run the rail at a regulated 20 V DC: 3 V under the Mini-360's 23 V input limit, with about 8 V of drop available before the lamp LM2596 falls below the roughly 12 V it needs for 10.5 V out. Runs of up to 150 m each way from the supply. The supply must hold its setting at no load and not overshoot at start-up.

Mode switch S1 switches the PIR relay coil signal, not power: AUTO = PIR controls the lamp at night; ON = lamp on all night. The daylight relay still decides day and night in both positions.

Circuit diagram

+PV 20 WK1W1209 relay, pole 1NCNOHEAT SD30CRMAMPPT, 16.0 Vbattery box LINE+F1PTC 30 V 2.5 A BMS4S8P pack OUTIN OUTIN (n/c) S2outside / off / insideDPDT on/off/on, battery box S2-B K2daylight, NO = night K3PIR Lamp reglantern base COB 1COB 2 Mini-36012 V W1209relay = K1 coil +coil drive K1W1209 relay coil T1T2T3T4 NTCNTC 4 × NTC 10k B39502S2P = 10kone per 8P channel HEAT LM25965 V Heat sheet5 V, ~0.8 A LINE+ Mini-3605 V, control box LINE+5 V regcontrol box Daylight sensorcontrol box top, faces SSE K2 coil3 V PIR sensor K3 coil3 V OUT 3 V 3 V* ONAUTO S1on / on, control box Shown: S2 outside, K1 at rest (NC: panel to MPPT, charging; NO: panel to heater, no charging), K2 day, K3 open, S1 auto. Ground = P− / 0V; like-named tags are joined. 3 V* = S1 ON source, to be settled.