GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - amd989/Dengen: Arduino-based ATX power supply controller for an Intel NUC system.

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
include
include
 
 
lib
lib
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
D54250WYB_D34010WYB_TechProdSpec.pdf
D54250WYB_D34010WYB_TechProdSpec.pdf
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
platformio.ini
platformio.ini
 
 

Repository files navigation

Dengen

Arduino-based ATX power supply controller for an Intel NUC system.

What it does

This firmware allows an Intel NUC (which normally uses a DC barrel jack) to control a standard ATX power supply — giving it the ability to power on/off the PSU and itself, as if it had a 24-pin ATX motherboard connector.

An ATmega328p microcontroller sits between the NUC and the ATX PSU, connecting to the NUC's internal front panel header (power switch, reset switch, power LED, HDD LED) to monitor and control its power state. An external case power button triggers state transitions. It also manages a PWM cooling fan with temperature-based speed control.

State Machine

stateDiagram-v2
    [*] --> OFF

    OFF --> ON : Power Button Pressed
    ON --> TURNING_OFF : Power Button Pressed
    ON --> OFF : NUC power LED off
    TURNING_OFF --> OFF : NUC power LED off

    OFF --> OFF : Long press (4s) — force power off
    ON --> OFF : Long press (4s) — force power off
    TURNING_OFF --> OFF : Long press (4s) — force power off

    state OFF {
        [*] --> off_idle
        off_idle : PSU off (PS_ON HIGH)
        off_idle : Fan off (0%)
        off_idle : Arduino LED off
    }

    state ON {
        [*] --> on_boot
        on_boot : PSU on (PS_ON LOW)
        on_boot : Press NUC power button (200ms pulse)
        on_boot : Arduino LED on
        on_boot --> on_running

        on_running : Poll DHT11 sensor
        on_running : Fan PWM scaled 25°C–49°C → 0%–100%
        on_running : If 30+ sensor failures → Fan 99% (safety)
        on_running : Monitor fan RPM via tachometer
    }

    state TURNING_OFF {
        [*] --> shutdown
        shutdown : Fan 99% — "Jet Mode"
        shutdown : Press NUC power button (200ms pulse)
        shutdown : Waiting for NUC power LED to go off
    }
Loading

Features

  • Power sequencing: Manages ATX PSU PS_ON signal to start/stop the power supply
  • NUC control: Simulates front panel power button press (200ms pulse) to boot/shutdown the NUC
  • Graceful shutdown: Short press while ON initiates NUC shutdown, waits for power LED to go off
  • Force shutdown: Long press (4 seconds) immediately kills PSU power from any state
  • Temperature-based fan control: DHT11 sensor linearly scales fan speed between 25°C (off) and 49°C (full speed)
  • Fan safety override: If temperature sensor fails 30+ consecutive reads, fan runs at 99%
  • Fan tachometer: RPM monitoring via interrupt-based pulse counting

Hardware

  • MCU: ATmega328p (Arduino Pro Mini or SparkFun Pro Micro)
  • Temperature sensor: DHT11
  • Fan: 4-pin PWM fan at 25kHz
  • NUC: Intel NUC (tested with D54250WYB / D34010WYB)

Pin Assignments

Pin Function
2 Fan tachometer (interrupt)
3 or 10 Fan PWM (board-dependent)
6 NUC reset switch
7 NUC power switch
8 NUC HDD LED input
9 NUC power LED input
10 PSU PS_ON signal
11 DHT11 sensor
13 Arduino status LED
A3 External case power button

Building

Requires PlatformIO.

# Build
pio run -e pro16MHzatmega328-win

# Upload
pio run -e pro16MHzatmega328-win -t upload

# Serial monitor
pio device monitor -e pro16MHzatmega328-win

Available environments:

  • pro16MHzatmega328-win — Arduino Pro Mini, Windows (COM7)
  • pro16MHzatmega328-osx — Arduino Pro Mini, macOS
  • sparkfun_promicro16-osx — SparkFun Pro Micro, macOS

License

MIT

About

Arduino-based ATX power supply controller for an Intel NUC system.

Topics

arduinoarduino-sketchasusintelnucplatformioplatformio-arduinopowersupply

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.