Building a spoofed custom Dell Power Supply for the Comma Body external PC

In this blog post, we will be discussing how to spoof a Dell power supply using an Adafruit Trinket. Dell laptops use a 1-Wire-based supply identification protocol, which can be easily spoofed using the Trinket. The Trinket can drop the 12v input to 5v to power itself and also turn on the power to the miniPC once the spoof is ready.

Materials used:

Step 1: Dropping the 12v “Arm” port to 5v

The first step in the process is to drop the 12v input to 5v to power the Adafruit Trinket.

Step 2: Spoofing the Dell Power Supply

The Trinket is then used to spoof the Dell power supply’s 1-Wire-based identification protocol. The Trinket is programmed to emulate a DS2502 - 1kbit EEPROM, which is used by Dell laptops to identify the power supply.

Step 3: Turning on the Power to the miniPC

Once the spoof is ready, the Trinket turns on the power to the miniPC. This is done by connecting the Trinket to the main power button of the miniPC. The power is then supplied to the miniPC, and it can be used as normal.

Step 4: Printed Assembly

Assembling everything onto the 3d print

Source Code:

Code Repo: https://github.com/comma-hacks/dell-power-supply
Model Repo: https://github.com/comma-hacks/accessories/tree/master/meshes/backpack/dell-power-supply