Asanga
New Head-Fier
- Joined
- Feb 7, 2017
- Posts
- 1
- Likes
- 10
I'll be building a piece of RGB LED jewelry. It's basically a pair of earphones with one or two RGB LEDs on each, with a small ATtiny25-based PWM driver in a small enclosure. Click here to see the datasheet:
http://www.kynix.com/uploadfiles/pdf8827/ATTINY25-15MT.pdf
I'll probably be able to devise the firmware myself; however, since I'm going to have a good few inches of wire going to each phone, I need some sort of LED drivers, and that's where I'm not sure how to proceed.
The basic idea is for all the LEDs to be displaying the same color at a given point. The MCU will fade through all colors in sequence using software PWM. However, I would also like to implement a control for the overall brightness of the LEDs (once ambient noise goes above a certain level, it starts pulsating along with it, kinda like a VU meter). I'm thinking about one PWM-driven 'brightness' MOSFET to control the source voltage to the other three 'color' MOSFETs. Is this the way to go?
I have a lot of BS170s and not much else in the way of FETs (BF245, 2N5457 JFETs), so that's probably what I'm gonna be using. I'm thinking of going all-out SMD on this... I only have the tiny25 in SOIC, anyway.
http://www.kynix.com/uploadfiles/pdf8827/ATTINY25-15MT.pdf
I'll probably be able to devise the firmware myself; however, since I'm going to have a good few inches of wire going to each phone, I need some sort of LED drivers, and that's where I'm not sure how to proceed.
The basic idea is for all the LEDs to be displaying the same color at a given point. The MCU will fade through all colors in sequence using software PWM. However, I would also like to implement a control for the overall brightness of the LEDs (once ambient noise goes above a certain level, it starts pulsating along with it, kinda like a VU meter). I'm thinking about one PWM-driven 'brightness' MOSFET to control the source voltage to the other three 'color' MOSFETs. Is this the way to go?
I have a lot of BS170s and not much else in the way of FETs (BF245, 2N5457 JFETs), so that's probably what I'm gonna be using. I'm thinking of going all-out SMD on this... I only have the tiny25 in SOIC, anyway.