Skip to the content
PCBKitNew board
2 layers36.1 × 26.2 mmDC Voltage Sensor-, the printed circuit board in 3D

This project focuses on designing a High DC Voltage Sensor PCB using KiCad. The circuit is intended to measure a DC voltage higher than the input range of a microcontroller or measurement device by scaling the voltage…

Size
36.1 × 26.2 mm
Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
6
Pads
26
Tracks, vias
33, 0
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
11 Oct 2026
Updated
12 Oct 2026

Overview

DC Voltage Sensor- is an open-source printed circuit board by Manideep136, from the Manideep136/DC-Voltage-Sensor- repository on GitHub. It is a 2-layer board of 36.1 × 26.2 mm with 12 parts on 6 nets, routed with 33 tracks and 0 vias.

It is built around the IRF9540NS. Its parts include 4 resistors, 2 connectors, 1 capacitor and 1 transistor. It belongs with the sensors and measurement boards of this library.

Main components

1

README

README.md

DC-Voltage-Sensor

High DC Voltage Sensor PCB Using KiCad

📌 Project Overview

This project focuses on designing a High DC Voltage Sensor PCB using KiCad. The circuit is intended to measure a DC voltage higher than the input range of a microcontroller or measurement device by scaling the voltage to a suitable level.

A resistor voltage divider is a common method for reducing a high DC voltage to a lower proportional voltage. The scaled output can then be measured using a suitable analog-to-digital converter (ADC), microcontroller, or measurement instrument.

This project demonstrates voltage sensing, resistor selection, schematic design, footprint assignment, and PCB layout using KiCad.

🎯 Objectives

  • Understand the principle of high DC voltage measurement.
  • Learn how a resistor voltage divider works.
  • Design a DC voltage sensing circuit.
  • Create the schematic using KiCad.
  • Assign suitable footprints to electronic components.
  • Design and route the PCB.
  • Perform Electrical Rules Check (ERC) and Design Rules Check (DRC).
  • Inspect the completed PCB using KiCad's 3D Viewer.

⚙️ Working Principle

The sensor scales the input DC voltage using a resistor network.

The voltage divider consists of two resistors connected in series across the input voltage. The output is measured across the lower resistor.

The voltage divider equation is:

text
Vout = Vin × R2 / (R1 + R2)

Where:

  • Vin = Input DC voltage.
  • Vout = Scaled output voltage.
  • R1 = Upper resistor of the voltage divider.
  • R2 = Lower resistor of the voltage divider.

When a high DC voltage is applied, the resistor network reduces it to a lower voltage proportional to the input.

The output can be connected to a measurement circuit, provided the output voltage remains within the permitted input range of that circuit.

Note: The actual resistor values, maximum input voltage, output range, and protection components must match the circuit shown in the reference design.

🔌 Block Diagram

text
     High DC Voltage Input
              |
              v
      Resistor Divider
              |
              v
      Scaled DC Voltage
              |
              v
      Measurement Circuit
              |
              v
       Voltage Reading

🧩 Components Used

The final bill of materials depends on the actual schematic.

ComponentFunction
R1Upper voltage-divider resistor
R2Lower voltage-divider resistor
Input connectorConnects the DC voltage source
Output connectorProvides the scaled voltage output
Protection componentsHelp protect the measurement circuit, if included
Filter capacitorReduces noise, if included

Additional resistors, capacitors, diodes, or active components may be required depending on the reference circuit.

🖥️ PCB Design Using KiCad

The PCB design process includes:

  1. Creating a new KiCad project.
  2. Drawing the high DC voltage sensor schematic.
  3. Adding the required components.
  4. Connecting the voltage-divider network.
  5. Assigning suitable footprints.
  6. Updating the PCB from the schematic.
  7. Arranging the components on the PCB.
  8. Routing the copper tracks.
  9. Running ERC in the schematic editor.
  10. Running DRC in the PCB editor.
  11. Inspecting the final PCB using the 3D Viewer.

📁 Project Structure

text
High-DC-Voltage-Sensor/
├── High-DC-Voltage-Sensor.kicad_pro
├── High-DC-Voltage-Sensor.kicad_sch
├── High-DC-Voltage-Sensor.kicad_pcb
├── README.md
└── Images/
    ├── schematic.png
    ├── pcb_layout.png
    └── 3d_view.png

📐 PCB Design Considerations

  • Select resistor values according to the intended input voltage range.
  • Check the voltage rating and power dissipation of each resistor.
  • Consider using multiple series resistors when a single resistor cannot safely withstand the voltage.
  • Ensure the scaled output never exceeds the connected ADC or instrument's input limits.
  • Add suitable input protection where required by the design.
  • Choose connectors rated for the intended voltage and current.
  • Maintain suitable PCB creepage and clearance distances.
  • Use suitable track widths and appropriate PCB materials for the voltage involved.

🧪 Testing Procedure

  1. Inspect the PCB for solder bridges and incorrect connections.
  2. Verify resistor values and component orientation.
  3. Check the input and output connector pin assignments.
  4. Run ERC and DRC in KiCad.
  5. Begin testing with a safe, current-limited, low-voltage DC source.
  6. Measure the input voltage with a suitable multimeter.
  7. Measure the divider output voltage.
  8. Compare the measured output with the calculated voltage-divider output.
  9. Check the scaling accuracy before connecting any microcontroller or ADC.

Testing at higher voltages should only be performed with properly rated equipment and a design that has been reviewed for electrical safety.

⚠️ Safety Precautions

High DC voltage can cause serious injury or death.

  • Do not touch the circuit while it is energized.
  • Do not connect an unverified high-voltage circuit directly to a microcontroller.
  • Check resistor voltage ratings, power ratings, insulation, and PCB spacing.
  • Use appropriate fusing, enclosures, and protection.
  • Discharge capacitors safely before handling the circuit.
  • Do not assume that a voltage divider provides electrical isolation.
  • Test with low voltage first and obtain qualified review before high-voltage operation.

🚀 Future Improvements

  • Add an LCD or OLED voltage display.
  • Interface the sensor with an Arduino or other suitable microcontroller.
  • Add overvoltage protection.
  • Improve measurement accuracy through calibration.
  • Add filtering to reduce noise.
  • Include a connector for data logging.
  • Develop a digital voltage monitoring system.

📚 Learning Outcomes

Through this project, I learned:

  • Principles of DC voltage measurement.
  • Voltage-divider calculations.
  • Resistor voltage and power ratings.
  • Schematic design using KiCad.
  • Footprint assignment.
  • PCB component placement and routing.
  • ERC and DRC verification.
  • Basic PCB safety considerations.
  • Testing and calibration of voltage-sensing circuits.

🛠️ Software Used

KiCad 9.0

This project is intended for educational and learning purposes. The circuit must be verified against the actual schematic and tested safely before practical use.

Parts

12
QtyValueFootprintReferences
4MountingHoleMountingHole:MountingHole_2.2mm_M2_ISO7380_Pad_TopOnlyH1, H2, H3, H4
10.1ufCapacitor_THT:C_Disc_D6.0mm_W2.5mm_P5.00mmC1
1100RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR4
110KResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR3
122kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR1
12kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR2
1Conn_01x02_PinTerminalBlock_Philmore:TerminalBlock_Philmore_TB132_1x02_P5.00mm_HorizontalJ1
1Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_HorizontalJ2
1IRF9540NPackage_TO_SOT_THT:TO-220-3_VerticalQ1

Questions

How big is the DC Voltage Sensor- PCB?

It measures 36.1 × 26.2 mm and has 2 copper layers, 1.6 mm thick.

What parts does the DC Voltage Sensor- use?

12 parts, built around the IRF9540NS. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the DC Voltage Sensor- KiCad files?

From the Manideep136/DC-Voltage-Sensor- repository on GitHub, at the commit this page was made from: the board is Dc Voltage Sensor/Dc Voltage Sensor.kicad_pcb and its schematic Dc Voltage Sensor/Dc Voltage Sensor.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the DC Voltage Sensor- design in my own project?

Its repository states no licence, so its author keeps all rights: ask Manideep136 before reusing the design.

Similar boards

  • 2 layers96.8 × 97 mmPsoc5power, the printed circuit board in 3D

    Psoc5power

    profdc9/DRSSTC-PCB-Pack

    A pack of PCBs for a dual resonant solid state tesla coil setup. Pretty much everything you need.

    133 parts59
  • 2 layersCastVolumeKnob, the printed circuit board in 3D

    CastVolumeKnob

    WebmasterTD/CastVolumeKnob

    Hardware Volume Knob for Google Cast devices

    18 parts25
  • 2 layers102 × 72 mmHF PA Combined, the printed circuit board in 3D

    HF PA Combined

    kholia/HF-PA-v6

    RF "Lego" blocks. Quite-Linear HF broadband RF amplifier experiments for higher bands.

    40 parts11
  • 4 layers98.5 × 82 mmPico2lvds, the printed circuit board in 3D

    Pico2lvds

    ceteras/PicoLVDS

    Tested with B089AW01-V.0 and HSD089IFW1-A00-V1.0 on a breadboard. I'm sure it will work with other displays from old netbooks.

    43 parts7GPL-3.0
  • 2 layers99.7 × 80 mm6502fast3io, the printed circuit board in 3D

    6502fast3io

    gfoot/fastpdip6502

    Fast PDIP-only 6502-based homebrew computer - code and hardware design sources

    56 parts7Unlicense
  • 2 layers50.8 × 38.1 mmPowercontrol, the printed circuit board in 3D

    Powercontrol

    gfoot/powercontrolcircuit

    A soft power supply circuit with tunable overcurrent cutoff

    19 parts6Unlicense
  • 4 layers92 × 95 mmESP32-CAN, the printed circuit board in 3D

    ESP32-CAN

    Eric-2012/ESP32-CAN

    251 parts5
  • 2 layersWeller loddestasjon, the printed circuit board in 3D

    Weller loddestasjon

    kagjerde/Arduino-based-soldering-station

    This is an Arduino soldering station using Weller RT soldering tips

    34 parts5