Working Diag & artnet proto with imported led driver smi lib C

This commit is contained in:
2025-06-23 17:28:04 +00:00
parent 86fbf1670c
commit 535822198b
49 changed files with 3014 additions and 99 deletions
+35 -7
View File
@@ -6,8 +6,8 @@ LightSabre is a project designed to control WS281x RGB LEDs using the Secondary
- **WS281x LED Control:** High-performance driving of addressable RGB LEDs via the Raspberry Pi SMI.
- **ArtNet Support:** Receives color data over the ArtNet protocol, allowing the Raspberry Pi to function as a DMX controller.
- **Autonomous Mode:** Analyzes audio input from an I2S microphone, performing spectral decomposition to generate dynamic lighting effects.
- **Web Interface:** Local web server for configuring and tweaking autonomous behavior.
- **Standalone Mode:** Analyzes audio input from an I2S microphone, performing spectral decomposition to generate dynamic lighting effects.
- **Web Interface:** Local web server for configuring and tweaking standalone behavior.
- **MIDI Integration:** Supports real-time control and parameter adjustment via MIDI controllers.
## Technology Stack
@@ -26,18 +26,46 @@ LightSabre is a project designed to control WS281x RGB LEDs using the Secondary
1. **Hardware Requirements**
- Raspberry Pi (any model with SMI support)
- WS281x-compatible RGB LED strip
- I2S microphone (for autonomous mode)
- I2S microphone (for standalone mode)
- Optional: MIDI controller
2. **Software Setup**
- Install dependencies (see `requirements.txt`)
- Configure network for ArtNet or connect MIDI controller
- Access the web interface via your browser
### System install
The project is design for running on top of [Raspberry Pi OS Lite 32bits](https://www.raspberrypi.com/software/) (formerly Raspbian).
Raspberry Pi OS Lite provides device access through file system, networking tools for network interface management, POSIX sockets, native threading, and process control, covering all system features needed by LightSabre.
What about Realtime ?
#### Network AP / infra
`sudo raspi-config`
See. `nmcli`
`nmcli c up preconfigured`
#### Rust
After installing Raspberry Pi OS we need to install Rust toolchain:
```
sudo apt update
sudo apt full upgrade -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
For more details : https://rustup.rs/
#### I2S Microphone
[I2S microphone](https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-test)
## Documentation
- [ArtNet Protocol](https://art-net.org.uk/)
- [WS281x LEDs](https://cdn-shop.adafruit.com/datasheets/WS2812.pdf)
- [I2S microphone](https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-test)
- [Raspberry Pi SMI](https://www.raspberrypi.com/documentation/computers/raspberry-pi.html)
- [MIDI Protocol](https://www.midi.org/)