neoyong / color-spu-strip

A low-cost, high-sensitive sound pickup light strip using MEMS mics and stm32.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color SPU Strip

A low-cost, high-sensitive sound pickup light strip.
Using MEMS mics, STM32G0, WS2812B, etc.

The cost of the whole hardware items are no more than 10 RMB(current design costs 7.1 RMB)


Author: jlywxy(jlywxy@outlook.com)
Document Version: 2.1 (2023.2.1)


Current design: v11.1.20.1 (Hardware - v1.1r1, Firmware - v2.0r1).

The Circuit Schematics, PCB drawings with their PCB project(LCEDA), and software source codes are all open-sourced until now.


Main Function

  1. Sound Pickup Light strip
    The light strip can "hear" the loudiness of the environment, then convert the loudiness to the length of the light. Moreover, it can change color when high frequency of sound appears.
    There are two modes of the strip: light coming from the side, or coming from the middle of the strip.
  2. Color-gradient Light strip
    The light strip shows pure color of lights that changes with gradient, like the rainbow.
  3. Auto sleep
    When in sound pickup mode, if the loudiness is too small in a region of times, it shuts down temporarily. When a loud sound comes, it can auto wake up.

Hardware Design

  1. BOM List
Part No.                   Count   Brand
----------------------------------------------
STM32G030F6P6              1     ST
SPH0641LM4H/SD18OB261-060  1     Knowles/Goertek
XC6206A(3.6v)              1     -
USB Type-C Connector(16p)  1     -
WS2812B                    17    worldsemi/-
100nF 0402 Capacitor       22    -
5.1k Ohm 0603 Resistor     2     -
0 Ohm 0603 Resistor        1      -
Diode SMA                  1      -
3*4*2.5 Click Button       1      -

Note:

  • SPH0641LM4H(Knowles) and SD18OB261-060(Goertek) are pin-to-pin compatible but not tested in this project.
  • "-" means any component equivalent of brands.

User Manual

Read the manual:
Simplified Chinese version: css-v11.1.20.1-v0.1-cn.pdf
English version: <-- To Be Continued -->


Functional Patch

Color SPU Hardware:
See comments in circuit schematics.

Color SPU Software:
2.0:

  • Finished mode transition functions.

2.0r1:

  • fixed auto-wakeup to default mode.
  • added brightness gradient animation.
  • modified auto-wakeup thershold to 11.

About

A low-cost, high-sensitive sound pickup light strip using MEMS mics and stm32.


Languages

Language:C 87.1%Language:Makefile 10.5%Language:CMake 1.5%Language:C++ 0.8%Language:Assembly 0.1%Language:TypeScript 0.0%