Skip to content

High power, trailing edge and remotely-controlled dimmer (mirror)

Notifications You must be signed in to change notification settings

pattack/philux-avr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Philux - AVR

Philux is a high-power, trailing edge dimmer remotely controlled on wired/wireless network or serial port

Contents

Build

  1. Configure
mkdir cmake-build-debug
cd cmake-build-debug
cmake -DCMAKE_TOOLCHAIN_FILE=avr.cmake ../
  1. Build
cmake --build cmake-build-debug --target philuxavr -- -j 2

Upload

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

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

Releases

No releases published

Packages

No packages published