Skip to content

AVR program to turn an USBASP programmer into a WS2801/WS2812 led controller for use with Hyperion

Notifications You must be signed in to change notification settings

hyperion-project/hyperion-usbasp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyperion-usbasp

AVR program to turn an USBASP programmer into a WS2801/WS2812 led controller for use with Hyperion that is capabale of driving up to 256 leds.

Beware there are many different cheap USB AVR programmers - This has only neen tested with this one from ebay: ebay usbasp v2

As you will need to reflash the USBASP with this firmware, you will need an atmel AVR programmer. You can use:

  • Another usbasp with default firmware
  • just about any Arduino board with the ArduinoISP sketch
  • Commercial options such as an Atmel AVR Dragon

Compiling and flashing

Install prerequisites (for ubuntu and osmc)

apt-get install gcc-avr binutils-avr avr-libc avrdude

Download and compile

git clone https://github.com/hyperion-project/hyperion-usbasp/
cd hyperion-usbasp
mkdir build
cd build
cmake ..
make

Flashing After compilation there is a .hex file suitable for uploading with avrdude. With usbasp programmer:

avrdude -p atmega8 -c usbasp -U flash:w:hyperion/hyperion-atmega8.hex -P usb

With Arduino ICSP as programmer:

avrdude -p atmega8 -c arduino -U flash:w:hyperion/hyperion-atmega8.hex -P /dev/ttyUSB0 -b 19200

Physical wiring

The WS2801 strip is connected using MOSI and SCK pins.

  • data to MOSI and clock to SCK

The WS2811 strip is connected using only the MOSI pin.

Atmel ICSP pinout

NOTE! Some chinese USBASP devices dont strictly follow the pinout and you must use PIN 10 for GND.

hyperion configuration

WS2801

Use the following device configuration in Hyperion:

"device" :
{
  "name"       : "MyDevice",
  "type"       : "hyperion-usbasp-ws2801",
  "colorOrder" : "rgb"
},

WS2812

Use the following device configuration in Hyperion:

"device" :
{
  "name"       : "MyDevice",
  "type"       : "hyperion-usbasp-ws2812",
  "colorOrder" : "rgb"
},

About

AVR program to turn an USBASP programmer into a WS2801/WS2812 led controller for use with Hyperion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 38.0%
  • Assembly 30.1%
  • SourcePawn 13.0%
  • PHP 9.2%
  • C++ 5.1%
  • CMake 4.6%