Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Custom PC Case Lighting


  • Please log in to reply
4 replies to this topic

#1 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 11 June 2012 - 10:03 PM

I finally got around to making something with my mini that has a somewhat permanent use. Check out the video first to see its beauty :)



Some notes:
The RGB LED strip is common anode, so if your strip is common cathode make sure you change the wiring to account for that. The code as well, because the lights are on when the signal is LOW the lights in code are on when they duty cycle is 0. If your lights are common cathode you'll have to keep that in mind.

The chips I used are the MAXIM MAX4420, they are High-Speed 6A single MOSFET drivers. Note they 'single', you'll need one per color or for each section you want to control individually.

Pretty picture time!

Attached File  case lighting breadboard.jpg   1.87MB   45 downloads

Attached File  case lighting breadboard layout.JPG   81.06KB   50 downloads

Attached File  breadboard in case.jpg   1.32MB   30 downloads

        public static void Main()
        {
            PWM red, green, blue;

            red = new PWM(Pins.GPIO_PIN_17);
            green = new PWM(Pins.GPIO_PIN_18);
            blue = new PWM(Pins.GPIO_PIN_19);

            red.SetDutyCycle(100);
            green.SetDutyCycle(100);
            blue.SetDutyCycle(100);

            while (true)
            {
                for (uint r = 100; r > 0; r -= 5, Thread.Sleep(50))
                    red.SetDutyCycle(r);

                for (uint b = 0; b < 100; b += 5, Thread.Sleep(50))
                    blue.SetDutyCycle(B);

                for (uint g = 100; g > 0; g -= 5, Thread.Sleep(50))
                    green.SetDutyCycle(g);

                for (uint r = 0; r < 100; r += 5, Thread.Sleep(50))
                    red.SetDutyCycle(r);

                for (uint b = 100; b > 0; b -= 5, Thread.Sleep(50))
                    blue.SetDutyCycle(B);

                for (uint g = 0; g < 100; g += 5, Thread.Sleep(50))
                    green.SetDutyCycle(g);
            }
        }


#2 Stefan

Stefan

    Moderator

  • Members
  • PipPipPip
  • 1965 posts
  • LocationBreda, the Netherlands

Posted 11 June 2012 - 10:05 PM

Just seen your vid, appairently it's hot to play with RGB LEDs these days, just finished with a strip as well :lol: Other chip though. Your case looks very cool! Using a netduino mini.
"Fact that I'm a moderator doesn't make me an expert in things." Stefan, the eternal newb!
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 11 June 2012 - 10:43 PM

Oh man, that's pretty cool. I'm thinking that someone could pick this up and build a PC app that would change their colors based on actions/events on the computer. It's like Alienware on steroids :) Thanks for sharing this! Chris

#4 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 11 June 2012 - 11:16 PM

Oh man, that's pretty cool. I'm thinking that someone could pick this up and build a PC app that would change their colors based on actions/events on the computer.

It's like Alienware on steroids :)

Thanks for sharing this!

Chris


Yeah Arron wants to do something like it but much fancier, and I plan on getting some app made to control it. Near future i think...

#5 carb

carb

    Advanced Member

  • Members
  • PipPipPip
  • 352 posts
  • LocationCrystal River, Florida

Posted 11 June 2012 - 11:22 PM

Yeah Arron wants to do something like it but much fancier, and I plan on getting some app made to control it. Near future i think...

His is cool but yours is in a PC already. B) Nice Job.

Chuck




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.