Skip to content

slomkowski/automatic-usb-mains-switch

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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