Skip to the content
2 layers16.5 × 16.5 mmLaptopSupplySpoofer, the printed circuit board in 3D

DS2431 1-Wire EEPROM IC driver (STM32F4) for Dell Laptop Supply Spoofer

Size
16.5 × 16.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
3
Nets
7
Pads
11
Tracks, vias
6, 0
Pours
2
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
10 Jun 2025
Updated
20 Sep 2025

Overview

LaptopSupplySpoofer is an open-source printed circuit board by eldonjakee08, from the eldonjakee08/DS2431_1WIRE_EEPROM_DRIVER repository on GitHub. It is a 2-layer board of 16.5 × 16.5 mm with 3 parts on 7 nets, routed with 6 tracks and 0 vias.

It is built around the DS2431P+T&R. Its parts include 2 connectors and 1 IC.

Main components

1

README

README.md

DS2431 1-Wire EEPROM Driver

This is a 1-Wire protocol driver for the DS2431 chip, a 1024-bit 1-Wire EEPROM commonly used as an ID chip in laptop power supplies. I developed this driver to read and program the DS2431, enabling it to function as a Dell laptop power supply ID chip for my laptop supply spoofer project.

This driver can also be used for other 1-Wire EEPROM DS2xxx series devices as long as they have the same 1-Wire command and memory architecture.

The driver is designed for STM32F446RE MCU. To port it to other STM32 families, you can modify the MCU-specific HAL header file and update the peripheral addresses in the ds2431.h file accordingly.

image

Make sure your MCU has a basic timer peripheral for microsecond delay functionality the MCU needs to communicate with the EEPROM chip.

How To Use The Driver

OneWire_init(): Configures the GPIO and TIMER for a 1-Wire communication. Call this function first before calling other 1-Wire commands.

image

OneWire_ReadROM(): Reads and displays data from DS2431 EEPROM memory.

  • @param: uint16_t startaddress, start address of EEPROM read.
  • @param: size_t bytesToRead, number of bytes to read from start address.
  • @param: uint8_t *pdataBuffer, pointer to data buffer where read data will be stored. image

OneWire_WriteMemory: Writes data into DS2431 EEPROM memory.

  • @param: uint16_t startaddress, start address of EEPROM write.
  • @param: uint8_t *pdata, pointer to data source buffer.

EEPROM WRITING GUIDELINES

  1. Write in 8-byte chunks: You can only write full 8-byte rows at a time.
  2. Use 8-byte aligned addresses: Writes must start at addresses divisible by 8 (e.g., 0x00, 0x08, 0x10…). image
image

OneWire_WriteByte: Writes a byte of data into the 1-Wire bus

  • @param: uint8_t byte, the byte to write to the bus.
image

OneWire_Reset(): MCU sends a reset pulse to ds2431

image

OneWire_ReadByte: Reads a byte of data from 1-Wire bus.

image

Parts

3
QtyValueFootprintReferences
1DS2431PPackage_SO_J-Lead:TSOC-6_3.76x3.94mm_P1.27mmU1
1Screw_Terminal_01x02TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-02P_1x02_P5.00mmJ1
1Screw_Terminal_01x03TerminalBlock:TerminalBlock_MaiXu_MX126-5.0-03P_1x03_P5.00mmJ2

Similar boards

  • 4 layers100 × 114.9 mmDome center pcb, the printed circuit board in 3D

    Dome center pcb

    daveismith/r2-warpcore-center

    97 parts
  • 2 layers33 × 33 mmBase, the printed circuit board in 3D

    Base

    aspro648/KiCad

    My design files. Abandon all hope ye who enter here.

    37 parts33
  • 2 layers40 × 30 mmBlinky, the printed circuit board in 3D

    Blinky

    earthtojake/text-to-cad

    Design physical products with AI

    3 parts26kMIT
  • 2 layers51.9 × 16 mmPassive2-rpi non standard adapter, the printed circuit board in 3D

    Passive2-rpi non standard adapter

    hzeller/rpi-rgb-led-matrix

    Controlling up to three chains of 64x64, 32x32, 16x32 or similar RGB LED displays using Raspberry Pi GPIO

    3 parts4.4kGPL-2.0
  • 2 layers16.3 × 16.3 mmSensor, the printed circuit board in 3D

    Sensor

    scottbez1/splitflap

    DIY split-flap display

    3 parts4.2k
  • 2 layersSub, the printed circuit board in 3D

    Sub

    atopile/atopile

    Design circuit boards with code! ✨ Get software-like design reuse 🚀, validation, version control and collaboration in hardware; starting with electronics ⚡️

    3 parts4kMIT
  • 2 layers85 × 30 mmDual stomp, the printed circuit board in 3D

    Dual stomp

    torvalds/GuitarPedal

    Linus learns analog circuits

    3 parts2.5kGPL-2.0

Questions

How big is the LaptopSupplySpoofer PCB?

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

What parts does the LaptopSupplySpoofer use?

3 parts, built around the DS2431P+T&R. 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 LaptopSupplySpoofer KiCad files?

From the eldonjakee08/DS2431_1WIRE_EEPROM_DRIVER repository on GitHub, at the commit this page was made from: the board is PCBFiles/laptopSupplySpoofer.kicad_pcb and its schematic PCBFiles/laptopSupplySpoofer.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the LaptopSupplySpoofer design in my own project?

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