Skip to content

botamochi6277/Arduino-BLE-Neopixel-Controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino BLE NeoPixel Controller

PlatformIO Build

Control NeoPixel-strip with Seeeduino XIAO BLE/M5Stack Atom Lite

You can change the lighting config with BLE. The lighting config has three parameters: input_src_id, intensity_func_id, and colormap_id.

graph LR

subgraph BLE Service
  input_src_id
  intensity_func_id
  colormap_id
end

input_src_id-.->|select|sensor
colormap_id-.->|select|colormap
intensity_func_id-.->|select|intensity_func

sensor-->|value|intensity_func-->|intensity|colormap-->|color|pixel_manager-->neopixels

Loading

processing flow:

graph LR

data_src[data src]
data_src-->|raw data|normalize-->|"magnitude\n(normalized value)"|shape_func-->|intensity|colormap-->|rgb|pixel
Loading

Lighting Config

Inputs (Sources)

  • Beat 0.5Hz/1.0Hz/2.0Hz (30bpm/60bpm/120bpm )
  • Accel X/Y/Z
  • Gyro X/Y/Z

Shape Functions (Mapping functions converting magnitude to intensity)

  • Heat (Linear)
  • Wipe
  • Traveling Wave
  • etc.

ColorMaps (functions converting intensity to color)

  • Hsv
  • Twilight
  • TwilightShifted
  • etc.

Add XIAO BLE to PlatformIO

Alwin Arrasyid introduces the way to install XIAO BLE board to PlatformIO:
https://medium.com/@alwint3r/working-with-seeed-xiao-ble-sense-and-platformio-ide-5c4da3ab42a3

About

Code for XIAO family to control NeoPixel strips

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages