Philux is a high-power, trailing edge dimmer remotely controlled on wired/wireless network or serial port
- Configure
mkdir cmake-build-debug
cd cmake-build-debug
cmake -DCMAKE_TOOLCHAIN_FILE=avr.cmake ../
- Build
cmake --build cmake-build-debug --target philuxavr -- -j 2
On success build, machine code is available under cmake-build-debug directory as philuxavr-atmega32.hex. You can upload it to an ATMega32 microcontroller using any programmer. I use avrdude to upload the program onto the microcontroller. I'm using my own simple Ponyser programmer with a RS232/USB cable
avrdude -p m32 -c ponyser -P /dev/ttyUSB0 -i 1000 -u -V -F -D -B.5 -U flash:w:cmake-build-debug/philuxavr-atmega32.hex:i
Simulation environment has been set up in Proteus using .hex file available under cmake-build-debug directory
- Linux
sudo setcap cap_net_raw,cap_net_admin=epi `which wine-preloader`
- Windows