Go to Post ...your stress reliever is a ziptie with the end cut off so you can pull it straight through. It really works! - Storcky [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Old Today, 03:29 PM
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 36
BenBernard is an unknown quantity at this point
Team 5687 The Outliers 2016 LED Controller Design

As an off-season project, our team designed and built a general-purpose LED controller. Connected to the roboRio (or in our case the navX) this allows us to control an RGB LED string, our ring-lights, and our targeting flashlight (sorry, "photon canon") via 5 PWM ports.

The parts are all available from Adafruit:
5 N-channel power MOSFET
1 5v voltage regulator
1 Perma-proto quarter-size breadboard
2 4-pin terminal blocks
1 2-pin terminal block
1 5-pin terminal block

The wiring diagram follows:


Finally, the terminal connections (other than 12v power) are:
  1. Flashlight ground
  2. Flashlight power
  3. Ringlight ground
  4. Ringlight power
  5. -
  6. RGB Strip common (power)
  7. RGB Strip blue
  8. RGB Strip red
  9. RGB Strip green
  10. -
  11. PWM signal for flashlight
  12. PWM signal for ringlight
  13. PWM signal for RGB blue channel
  14. PWM signal for RGB red channel
  15. PWM signal for RGB green channel

We used this to drive a 5v LED flashlight and a 12v LED ringlight and two 12v LED RGB strips from SuperBrightLeds.

Full Java code to interface with this controller is available in our LEDController class, but ultimately each LED is driven by a single PWM channel, so you can easily control this with any language.

We further combined 3 LEDControllers into our LEDStrip class to allow controlling the net color output of the strip more easily.

For the ringlight and flashlight, we used LEDSwitch to provide simple on/off control.

We hope other teams find this useful!

Last edited by BenBernard : Today at 03:31 PM.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:05 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi