G+_Jonathan Schober Posted December 5, 2014 Share Posted December 5, 2014 Hey guys. So I recently installed led strips in my car that are controlled by my raspberry pi. My pi connects to spotify and automatically adjusts the lights according to the song. I am currently using software PWM to adjust the brightness of the RGB leds. But, that relies on the CPU, which means if I hit 100%, my PWM will stop and my leds will be full brightness for about a second... I cannot do this while driving (please start a discussion about the law, I am within the texas transportation laws). So, my question, can I use a hardware based PWM such as this (http://www.adafruit.com/product/1455), on my raspberry pi. Adafruit only provides libraries for the arduino, and I currently dont have enough time to port something or learn the SPI protocol. Any thoughts, or has anyone used a hardware PWM? Thanks http://www.adafruit.com/product/1455 Link to comment Share on other sites More sharing options...
G+_Ben Reese Posted December 6, 2014 Share Posted December 6, 2014 I haven't done anything with SPI yet, but it looks like they board is designed to work with Arduinos and Pis. The Pi has 1 SPI connection on the headers, apparent, and wiringpi has the libraries built in to communicate with networked chips. http://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md What are you using to translate the music to flashes? Link to comment Share on other sites More sharing options...
G+_Jonathan Schober Posted December 6, 2014 Author Share Posted December 6, 2014 I'm using a little program I wrote myself. It basically interprets the volume/loudness of the PCM frames and adjusts the lights accordingly. The best part is I've linked it to spotify Link to comment Share on other sites More sharing options...
G+_Jonathan Schober Posted December 6, 2014 Author Share Posted December 6, 2014 That wiringpi library may work, I'll just have to buy the chip to find out Link to comment Share on other sites More sharing options...
Recommended Posts