arneboe / ws-dmx-ban-alt-firmware

an alternative firmware for the ws-dmx-ban led controllers
GNU General Public License v3.0
6 stars 2 forks source link

Alternative Firmware for WS-DMX-xCH BAN LED Controllers

Features

This firmware adds some features that the original firmware is missing.

Planned Features

Supported controllers

Support for others will follow as soon as I get my hands on them.

DMX Channels

Ch Function
1 Master intensity
2 Strobe 2hz to 40hz
3 Led 1 intensity
4 Led 2 intensity
5 Led 3 intensity
6 Led 4 intensity
7 Led 5 intensity
8 Led 6 intensity
9 Led 7 intensity
10 Led 8 intensity

State of the Code

The code is a bit messy, lots of external variables are used. Some code has been unrolled to increase performance. Some code is in locations that it logically shouldn't be in for performance reasons.

Compiling and Flashing

Dependencies

sudo apt install sdcc
pip3 install stcgal

Compiling

mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../sdcc.toolchain ..

Flashing

The STC15W404s can be programmed using a standard usb-serial adapter. I am using FTDI FT232 but any other adapter should work as well.

  1. Set the FT232 to 3.3V
  2. Connect RX/TX/GND from FT232 adapter according to the pinout image. Do not connect VCC!
  3. Connect external power supply to the board
  4. start flashing using the following command
    stcgal -P stc15 -p /dev/ttyUSB0  dmx.ihx
  5. turn on the board

Similar Projects

https://github.com/regnarg/ws-dmx-ban-hf-pwm/ -- implements a 32khz pwm on the WS-DMX-BAN-4CH-V3 board.

License

This code is released under the gplv3. If you require a different license please contact me.