Skip to content

slomkowski/automatic-usb-mains-switch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

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

About

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

Topics

Resources

License

Stars

Watchers

Forks