Wiki: 2N2222 stage verified on the cluster with 2.6 k base resistors
Firmware / build (push) Successful in 6s

This commit is contained in:
2026-09-28 12:12:15 +02:00
parent 8f54c79587
commit 43697f3cc8
+3 -1
View File
@@ -56,7 +56,9 @@ PWM drive from the curve:
Tachometer, 4 ppr: f = rpm × 4 / 60 → ~47 Hz at 700 rpm, ~267 Hz at 4000 rpm. Before wiring: measure the tach input's open-circuit voltage with ignition on — battery voltage means the cluster has its own pull-up (open-collector output suffices); near zero means add a pull-up to 12 V. Verify the needle at two known LEDC frequencies before trusting the scaling. Tachometer, 4 ppr: f = rpm × 4 / 60 → ~47 Hz at 700 rpm, ~267 Hz at 4000 rpm. Before wiring: measure the tach input's open-circuit voltage with ignition on — battery voltage means the cluster has its own pull-up (open-collector output suffices); near zero means add a pull-up to 12 V. Verify the needle at two known LEDC frequencies before trusting the scaling.
## 2N2222 output stage — concrete wiring (2026-09-28, user's part choice; unverified on the cluster) ## 2N2222 output stage — concrete wiring (2026-09-28, user's part choice; **verified on the cluster the same day**)
> [!note] Built and verified 2026-09-28: base resistors are **2.6 kΩ** (no 1 kΩ at hand) on both IO7 and IO8, and the instrument cluster responded. ~1 mA base current saturates the 2N2222 up to ~50 mA collector current, enough for both wires. Still to confirm: the transistor stays cool after minutes of running, and `cfg override duty 255` takes the temp needle to the hot mark; if not, drop to 1 kΩ.
One NPN per output, low-side open-collector switch. TO-92 P2N2222A / PN2222A with the flat face toward you: **E - B - C** left to right (metal-can 2N2222: the tab is next to the emitter). Check the datasheet of the exact part - the EBC order is not universal. One NPN per output, low-side open-collector switch. TO-92 P2N2222A / PN2222A with the flat face toward you: **E - B - C** left to right (metal-can 2N2222: the tab is next to the emitter). Check the datasheet of the exact part - the EBC order is not universal.