Jump to content

Hey guys So I recently installed led strips in my car that are controlled by my raspberry pi M...


G+_Jonathan Schober
 Share

Recommended Posts

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

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

 Share

×
×
  • Create New...