Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic USB mains switch

Alternative firmware for DCT Tech USB relay module, which just switches the relay on when USB bus is active. Used to build USB-controlled power strip.

DCT Tech USB relay module wired up inside the enclosure

More details under https://slomkowski.eu/automatic-usb-mains-switch/

Copyright 2021 Michał Słomkowski, GPL-3.0 license.

A 3D-printable enclosure with IEC C14 inlet and C13 outlet lives in enclosure/. It wasn't designed by me, it was sent to me by one of the readers.

Building and flashing the AVR

Project requires CMake as well as avr-gcc installed. If you don't want to use CMake, you may adapt stock Makefile from V-USB library.

mkdir -p build && cd build
cmake ..
make

Flash with avrdude:

avrdude -c usbasp -p t45 -U flash:w:automatic-usb-mains-switch.hex

About

Alternative firmware for DCT Tech USB relay module, which switches the relay on when USB bus is active.

Topics

Resources

Stars

5 stars

Watchers

3 watching

Forks

Contributors

Languages