Giter Club home page Giter Club logo

music_led_strip_control's Introduction

Music LED Strip Control (MLSC)

Logo

Python Version Discord GitHub

Table of Contents
  1. Features
  2. Installing
  3. Demo
  4. Acknowledgements
  5. License

Features

  • Audio visualization in real time.
  • Modern web interface.
  • 24 effects with many configuration options.
  • Customizable colors and color schemes.
  • Multicore optimized for large LED strips (900+ LEDs).
  • Multi device support
  • Standalone and client compatible for audio processing.

Installing

Please check if your hardware is inside the Compatible Hardware List.

Automated installation

Run the following command in your terminal:

curl -sSL https://raw.githubusercontent.com/TobKra96/music_led_strip_control/master/setup.sh | sudo bash -s -- -b master

The script also accepts some options:

  • -b, --branch git branch to use (master, dev_2.2)
  • -d, --developer repository of a developer to use (TobKra96, Teraskull)
  • -h, --help show this list of command-line options

After the installation completes, please check the Installation Guide to configure the initial settings.

Also, check out the tutorial video I created for the installation:

Tutorial_Github

Setup schematic

Schematic

Demo

Version2_Github Roomtour_Github Version1_Github Mockup

Acknowledgements

Thank you for the digital signal processing and some effects. You are the best.

Awesome library for the LED output signal. Easy to use.

Flask admin dashboard.

Scripts included:

Bootstrap, jQuery, jQuery-Scrollbar, jQuery-UI, Pickr, Font Awesome.

License

Distributed under the MIT License. See LICENSE for more information.

music_led_strip_control's People

Contributors

dependabot[bot] avatar florian-h05 avatar teraskull avatar tobkra96 avatar weiserhei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

music_led_strip_control's Issues

trying to run MLSC

Hello,

I seem to be having issues getting the MLSC to run. I get to the /share/music_led_strip_control/server and enter: sudo python3 main.py. Nothing happens I don't know if I'm missing anything I followed everything exactly. Thank you.

Sudden error codes

I had this up and running rather smoothly for a few hours then all of a sudden it went unresponsive and turned off. I booted up my SSH to reboot and restart the program and it's now throwing error codes and not running at all. I realize I could delete everything and start over to get it to work again- but I'd like to know what went wrong to make sure it wasn't something I did as opposed to a random mishap. Thank you!
error

Microphone

Can you help me I don’t know how I did it before can you check your discord

Client doesn't work in Firefox

When you save the settings for the device in Firefox, the browser rejects it with NS_BINDING_ABORTED. I looked at this quickly, I think it's because the page reloads faster than the post to the rest endpoint, but I'm not 100% sure. It works for me in Chrome with no issues.

can you mabey make a little video

Open the webinterface of MLSC Search inside your Browser for the hostname of the raspberry pi, or the ip.
Navigate to "Edit General Settings/Audio Setting".
There should be an input filed to enter the "Audio Source ID".
Press "Save".

Now we change the led stip size, to match it with your strip.
Go to "Edit General Settings/Device Settings".
Enter the count of LEDs you use inside "Numbers of LEDs".
Change the mid of your led strip. This will affect the mirror option of many effects.
You can use the half of your "Numbers of LEDs" or set a custom number, if you got a corner you want to start the mirror effect. You will get the best results with the half of "Numbers of LEDs".
Press "Save".

Restart the programm and have fun with MLSC.

LED's freeze when using any music effect

Hi,

When I ever I try to use a music effect, the LED's completely freeze and become unresponsive. Occasionally, the LED's will work again if I change the mode back to a Non-Music Effect. Everything else is working completely fine just no the Music Effects.

I'm using a RaspberryPi B+ and I have my config set to the correct microphone (0) and amount of LED's (120).

And this on startup:
image

Edit: This is the only issue I'm having now, which seemed to have fixed itself before and now no longer works again. So everything besides the music reactive modes are working.

Can you help me with number 6 can you make a video Mabey

Setup microphone Create/edit /etc/asound.conf
sudo nano /etc/asound.conf
Set the file to the following text

pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
Next, set the USB device to as the default device by editing /usr/share/alsa/alsa.conf

sudo nano /usr/share/alsa/alsa.conf
Change

defaults.ctl.card 0
defaults.pcm.card 0
To

defaults.ctl.card 1
defaults.pcm.card 1

multi in asound.conf causing issues in MLSC

I am trying to play to BlueALSA plug and loopback plug combined as a multi from librespot so that I can get the audio from the loopback for MLSC in addition to playing it from my BT speaker. However when setting the default pcm in asound.conf as multi pyaudio seems to not like it. It skips printing the audio sources after some errors.

my asound.conf:
`pcm.multi {
type route;
slave.pcm {
type multi;
slaves.a.pcm "jbl";
slaves.b.pcm "loopin";
slaves.a.channels 2;
slaves.b.channels 2;
bindings.0.slave a;
bindings.0.channel 0;
bindings.1.slave a;
bindings.1.channel 1;
bindings.2.slave b;
bindings.2.channel 0;
bindings.3.slave b;
bindings.3.channel 1;
}

ttable.0.0 1;
ttable.1.1 1;
ttable.0.2 1;
ttable.1.3 1;

}
#what causes pyaduido to no list audio sources
pcm.!default {
type plug
slave.pcm "multi"
}
#carlyd95
pcm.loopin {
type plug
slave.pcm "plughw:Loopback,0,0"
}
pcm.loopout {
type plug
slave.pcm "plughw:Loopback,1,0"
}
pcm.jbl {
type plug
slave {
pcm {
type bluealsa
device 98:52:3D:BB:82:F3
profile "a2dp"
}
}
hint {
show on
description "JBL Charge 4"
}
}`

the output from MLSC is as follows:

Init the programm...
Settings loaded
Starting Output component..
Start Effects component...
NotificationService component started.
LED Brightness: 100
LED Brightness Translated: 255
Output component started.
Init finished
Programm started...

  • Serving Flask app "libs.webserver" (lazy loading)
  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: off
    Server listen to 192.168.1.25:65432
    Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 924
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.front.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM front
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround21
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround40.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround40
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround41
  • Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround50
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround51.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround51
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.Loopback.pcm.surround71.1:CARD=1'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM surround71
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
    Effects component started.
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
    ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
    ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
    ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
    ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
    ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
    ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
    ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
ALSA lib conf.c:5014:(snd_config_expand) Unknown parameters {AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 1}
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM iec958:{AES0 0x6 AES1 0x82 AES2 0x0 AES3 0x2 CARD 1}
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib bluealsa-pcm.c:763:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found
ALSA lib bluealsa-pcm.c:763:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found
ALSA lib bluealsa-pcm.c:763:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found
python3: pcm_params.c:170: snd1_pcm_hw_param_get_min: Assertion `!snd_interval_empty(i)' failed.
Output Service | FPS: 69.56420207649185
Effect Service | FPS: 69.24950468894465

Support with ESP8266

Just wondering if it would be possible to add some support for ESP8266 (NodeMCU)?

Thanks,

lpearl

Web Client only partially reactive

Finally got this up and running! However it seems I cant get the web client to be working smoothly. It's basically a 50/50 shot on if changing which mode it's set to will actually work. Sometimes it just doesn't change, other times the effect just freezes and I have to reboot. I'm having particular issues with most of the music reactive modes. Scroll just freezes the current effect every time. Any ideas?

This is running on an rpi 4 and is currently only 30 ws2812's as a prototype.

Thank you!

EDIT: Ah okay, this may help. I pulled up the terminal while I clicked on the scroll effect and it shoots out: Error in Effect Service. Routine Restarted. Exceoption: float division by zero I have no clue what this means or why it just suddenly started happening.

Website on mobile can't change effect or device settings

I recently setup my WS2812b strip using your controller via a Raspberry Pi 3 model b. This is the second time I've done this and both times it's been pretty straight forward. Everything works great other than not being able to change any effect or device settings on a mobile device. I've tried using Google Chrome and Safari both times to no avail. I even tried using the "Request Desktop Site" and surprisingly it still won't change the effects. When save is pressed and the webpage is reloaded, the effects just revert to their original values. This isn't the biggest problem it would just be nice to change specifically the single color on the fly easily. Thanks!

Installation guide incomplete

Some installation steps are incomplete:

    1. Install python sudo apt-get python3 --> Install python sudo apt-get install python3
  • You can create a new folder with sudo mkdir share
  • If you haven't git install it with --> If you have not yet installed git

Fixed with 6d3b48f

New Feature: Ability to create own Programs and to trigger certain modes per url

On another LED-Server I used till today I was able to create own effects / programs for the stripe, and to trigger them via php-files. Is there a possibility here too? Would be really important because I've built my DJ-Logo with reactive-LED's and want twitch viewers to be able to trigger cmds to control the leds.

:) But anyway, verry verry cool tool!

Music effects don't work

I'm unable to get any music effects to work
I can control the LEDs with the non music effects
The sound card works when I use aplay and arecord to test it

I get the following error when running main.py:

pi@raspberrypi:~/share/music_led_strip_control/server $ sudo python3 main.py
Init the programm...
Settings loaded
Starting Output component..
Start Effects component...
LED Brightness: 10
LED Brightness Translated: 25
Output component started.
NotificationService component started.
Init finished
Programm started...
 * Serving Flask app "libs.webserver" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
Server listen to 192.168.1.102:65432
 * Running on http://0.0.0.0:80/ (Press CTRL+C to quit)
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Process Process-6:
Traceback (most recent call last):
  File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
    self.run()
  File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/share/music_led_strip_control/server/libs/audio_process_service.py", line 33, in start
    self._default_device_id = self._py_audio.get_default_input_device_info()['index']
  File "/usr/local/lib/python3.7/dist-packages/pyaudio.py", line 949, in get_default_input_device_info
    device_index = pa.get_default_input_device()
OSError: No Default Input Device Available
Effects component started.

The card ID I have selected is 1
As per arecord -l:

pi@raspberrypi:~/share/music_led_strip_control/server $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
pi@raspberrypi:~/share/music_led_strip_control/server $

I have changed /usr/share/alsa/alsa.conf to

defaults.ctl.card 1
defaults.pcm.card 1

I have changed ~/.asoundrc and /etc/asound.conf to

pcm.!default {
  type hw
  card 1
}


ctl.!default {
    type hw
    card 1
}

In the Audio Source ID setting, I have set it to 1 (using chrome).

Any ideas what I could try next?

Thanks in advanced

rpi_ws281x is available as a pip package

The rpi_ws281x module can be installed via pip with no issues. Tested on Raspberry Pi 3B+.
I skipped the build process completely and everything works.

sudo pip3 install rpi_ws281x

Also a nice idea would be to make a bash script to automatically install all required packages, so that we don't need to copy paste each line separately.

Something like this:

mlsc_setup.sh

# Setup script for MLSC
# https://github.com/TobKra96/music_led_strip_control

# Update the libraries:
sudo apt-get update
sudo apt-get upgrade

# Install Audio Driver:
sudo apt-get -y install libatlas-base-dev portaudio19-dev

# Install Python:
sudo apt-get -y install python3

# Install Pip.
sudo apt-get -y install python3-pip

# Install all Python libraries:
sudo pip3 install --upgrade pip --yes     # Upgrade Pip to the newest version.
sudo pip3 install -I numpy==1.17.0 --yes  # Offers a lot of mathematic functions and matrix manipulation. We need this version because 1.16 has a memory leak by using queues.
sudo pip3 install rpi_ws281x --yes        # Raspberry Pi PWM library for WS281X LEDs.
sudo pip3 install flask --yes             # The webserver component.
sudo pip3 install pyaudio --yes           # Offer the audio input stream, which will be processed.
sudo pip3 install scipy==1.3.0 --yes      # Offers a gaussian filter.

sudo apt install -y python3-scipy         # Fallback scipy module if the previous one fails to install.

Numpy unknown / Missing pip installation failed

> Traceback (most recent call last): File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap self.run() File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run self._target(*self._args, **self._kwargs) File "/home/pi/s2lled/music_led_strip_control/server/libs/output_service.py", line 51, in start self._current_output = self._available_outputs[current_output_enum](self._device) File "/home/pi/s2lled/music_led_strip_control/server/libs/outputs/output_raspi.py", line 46, in __init__ raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, message)) RuntimeError: ws2811_init failed with code -5 (mmap() failed)

Also, I've installed numpy1.20.0, but it says numpy not found. Can you help me with that issue too? When I do python main.py it starts with the above error, when I say python3 main.py it says numpy not found. Already tried to reinstall numpy 3 times ._.

update

Hi,

Could you please help how can i upgrade to the latest version?

Thanks

Singe Menu with colorful colors

Hi there. Is it possible to create a colorful selection with the Gradient options under the "Single" menu?
Thank you very much

Add More Options/Colors in Scroll an Config.json

Is it possible to add more options than low mid high in scroll effect ?
That more than 3 colors can be displayed here ?

Is it also possible to add colors in the "config.json" ?

Like for example
"colors": {
"red": [255,0,0],
"Orange": [255,40,0],
"Yellow":[255,255,0],
"Green": [0,255,0],
"Blue": [0,0,255],
"Light blue": [0,247,161],
"Purple":[255,0,200],
"Pink": [255,0,178],
"White":[255,255,255],
"Black": [0,0,0],
"Custom1." [1,1,1]
"Custom2." [1,1,1]
"Custom3." [1,1,1]
"Custom4 ": [1,1,1]

Or with

"gradients": {
"Spectral": [[255, 0, 0], [255, 40, 0], [255, 255, 0], [0, 255, 0], [0, 247, 161], [0, 0, 255], [255, 0, 200], [255, 0, 178]],
"Dance floor": [[255, 0, 0], [255, 0, 178], [255, 0, 200], [0, 0, 255]],
"Sunset": [[255, 0, 0], [255, 40, 0], [255, 255, 0]],
"Ocean": [[0, 255, 0], [0, 247, 161], [0, 0, 255]],
"Jungle": [[0, 255, 0], [255, 0, 0], [255, 40, 0]],
"Sunny": [[255, 255, 0], [0, 247, 161], [255, 40, 0], [0, 0, 255]],
"Fruity": [[255, 40, 0], [0, 0, 255]],
"Peach": [[255, 40, 0], [255, 0, 178]],
"Rust": [[255, 40, 0], [255, 0, 0]],
"Safari": [[30, 150, 0], [255, 242, 0], [255, 0, 0]],
"Jupiter": [[255, 216, 155], [25, 84, 123]],
"Jamaica": [[255, 255, 0], [0, 247, 161]],
"Test_Own": [124, 252, 0], [255, 0, 255], [255, 255, 0], [255, 0, 0], [155, 48, 255], [0, 245, 255], [135, 206, 255], [0, 0, 128]]

What is the use of the resistor?

Hi,

First of all I would just like to say how much I appreciate this project, it is exactly what I wanted to achieve with these LED's

Regarding the 470 Ohm resistor, what is the difference between that and using a Logic Level Converter? (I am currently using a LLC at the moment)

I understand that the GPIO pins may only talk at 3.3v and the strip needs a 5v signal, which is the purpose of the LLC but what use does the resistor do on a technical level? I would love to know so I can implement it if necessary

Do different GPIO pins output signals at different voltages? The guide I followed implemented Pin 18 and used a Logic Level Converter to the LED Strip, Does Pin 21 output at 5v eliminating the need for a LLC? I have tried to find resources to support my hypothesis (guesses at best) but am still unsure

Any info would very much be appreciated!
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.