Go to Post For guys, is the appropriate term "manpris". ? - Chris Fultz [more]
Home
Go Back   Chief Delphi > Technical > Programming
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!  
Unread 29-01-2015, 16:52
IrishFBall32 IrishFBall32 is offline
Electrical CDT Mentor
AKA: Chris Bowles
FRC #1014 (Dublin Robotics/Bad Robots)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Dublin, Ohio
Posts: 8
IrishFBall32 is on a distinguished road
Send a message via AIM to IrishFBall32
Tweaking PWM output period for dimming LEDs

Hi all, I'm working on an LED driver circuit and wanted to run this by y'all.

The circuit I'm building is a simple TIP120 transistor based amplifier, which I intend to be connected to PWM outputs on the RoboRIO, with the pulsed output effectively modulating the duty cycle of the LEDs.

The snag I'm running into relates to PWM duty cycles. Ideally, I'd like 0% to be an output of 0vdc, and 100% to be a constant output of 6vdc. 50% would then be 6vdc pulsed at say 1ms on, 1ms off. From my understanding the default PWM signal is a 1-2ms pulse every 20 seconds, which translates to a 5-10% duty cycle. I see references in the WPILib API's PWM class to varying the PWM period potentially down to 5.05ms, and pulses as small as .5ms (which should get me ~10-40%), but does anyone know if it is possible to manipulate the PWM output further? I'm also open to other suggestions such as an efficient way to pulse a DIO pin in the necessary manner.

Disclaimer: I've read the API docs, but I haven't dug into the actual code. I also haven't yet resorted to just tinkering with things and seeing what I get with an oscilloscope.
__________________
Chris Bowles
Team 1014 - Dublin Robotics (Bad Robots)
2015 Electrical CDT Mentor
2006 Controls CDT Leader
2005 Controls CDT Member
 


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 16:54.

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