Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 647 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 647 Bytes

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.

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

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

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