Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 29th September 2007, 04:42 AM   (permalink)
Default needed: Microcontroller help

The attached schematic shows a "buck puck' LED driver with control and reference pins. Essentially changing the resistance value change the % of the available 700mA current applied to the attached LED's(Luxeon III's in my case).

Instead of manually changing the brightness I want a chip to do the work.
For Example: Beginning at 40% initially and each step (aprox 1 min.) increasing 5% until 100% is reaches. Once 100% is reached it should stay at 100%.

Any suggestions on what type of chip I would need to accomplish this?
My friend has a "MicroChip" Programmer board so it would be good to use something I can program.

Essentially I want the LED's to begin at 40% brightness and work their way up to 100% within about
15 minutes.
Attached Images
File Type: gif 14569-auto-controller-needed-buckpuckreg.gif (39.7 KB, 24 views)
iONic is offline  
Old 29th September 2007, 04:46 AM   (permalink)
Default

Quote:
Originally Posted by audioguru
The module you have uses a pot for dimming.
A different circuit uses pulse-width-modulation for dimming. Then a microcontroller can control the dimming.
--------------------------------------------------------------
iONic is offline  
Old 29th September 2007, 04:48 AM   (permalink)
Default

Such as thus?
Attached Images
File Type: gif 14584-auto-controller-needed-pwmdimming.gif (25.0 KB, 14 views)
iONic is offline  
Old 29th September 2007, 04:50 AM   (permalink)
Default

Quote:
Originally Posted by audioguru
I don't know if your module can be dimmed with pulse-width-modulation.
------------------------------------------------------------
iONic is offline  
Old 29th September 2007, 04:52 AM   (permalink)
Default

Not sure if this means it can or not!

External Pulse/Strobe Control

Figures 13 and 14 show two methods for low speed pulsing or high speed flashing operation. In Figure 13, a TTL/CMOS logic signal is applied to the control(Ctrl) input of the 3021. The output current will be zero when the control signal is high. Note that the input needs to source a minimum of 4.75VDC into a 1Kohm input impedance. Also, as is also the case with a dc control signal, the logic input ground to be common to the LED-output terminal.

Figure 14 shows an inverted input configuration using a 2N4403 or other PNP switching transistor. In this case, a logic high will cause the output to be "on". In either configuration, the rise and fall times of the output will be 25micro sec or less. A pulse frequency up to 10kHz may be used.
Attached Images
File Type: gif 14585-auto-controller-needed-pwm.gif (32.2 KB, 7 views)
iONic is offline  
Old 29th September 2007, 04:54 AM   (permalink)
Default

Quote:
Originally Posted by audioguru
10kHz is fine. You can't see it blink when the frequency is higher than about 50Hz unless it is moving or you are moving your head.
------------------------------------------------------------------
iONic is offline  
Old 29th September 2007, 04:55 AM   (permalink)
Default

Then, assuming 10KHz is 100%, It would be possible to get the desired effect from a freq range of 40KHz - 100KHz. Yes?
iONic is offline  
Old 29th September 2007, 04:57 AM   (permalink)
Default

Quote:
Originally Posted by audioguru
You vary the duty cycle with pulse-width-modulation, not with the frequency.
------------------------------------------------------------------
iONic is offline  
Old 29th September 2007, 04:58 AM   (permalink)
Default

Your right... My Bad!
iONic is offline  
Old 29th September 2007, 07:42 PM   (permalink)
Default

So are there any PIC people out there that can give me some help with automatic PWM incrementation?
iONic is offline  
Old 30th September 2007, 11:15 PM   (permalink)
Default

What do you need to do? I can't quite figure it out by your posts.
Mike, K8LH is offline  
Old 1st October 2007, 12:04 AM   (permalink)
Default

Quote:
Originally Posted by Mike, K8LH
What do you need to do? I can't quite figure it out by your posts.
The circuit will essentially be a brightening light source. I'll be using 6 Luxeon Star 1W LED's
whose current will be held in check by a BuckPuck Current Regulator. The regulator allows a TTL/CMOS
control. I also have a timer that will turn the entire circuit on at a set time and stay on for 2 hours, then turn off.

In order to brighten the LED's (in my case from about 40% to 100% current within 15 min.) the TTL/CMOS control
comes into play. This is where I need a chip to implement PWM to step up the current in 5% increments, minute by minute till
the current is at 100%, at which point it should remain at 100% for the remainder of the 2 Hrs.

I am clueless on where to find the right chip as well as program it. My friend however has a MicroChip
programmer and this might be my best choice if I were to tackle this alone.

Hope this helps!
iONic is offline  
Old 1st October 2007, 02:10 PM   (permalink)
Default

Not much.

Do you have specifications for the PWM period and pulse width duty cycle required to control the device?

Mike

Last edited by Mike, K8LH; 1st October 2007 at 04:49 PM.
Mike, K8LH is offline  
Old 1st October 2007, 04:44 PM   (permalink)
Default

Quote:
Originally Posted by Mike, K8LH
Not much.

Do you have specifications for the PWM period and pusle width duty cycle required to control the device?

Mike

I'm hoping I did this all right. You can see my results below. I had to spent some time on Wikipedia learning about PWM, Duty Cycle, Period...etc.

Here are a couple of links for the Luxeon LED's and the LED Driver.

http://www.bakpakr.com/downloads/LuxeonStarIII.pdf
http://www.bakpakr.com/downloads/3021-BuckPuck.pdf

================================================== ================

pulse freq - 60Hz (60 cycles per second)


STEP 1:
on - 6.68ms
off - 10.02ms
Period - 16.7ms
Duty Cycle - 40%
Duration - 60 sec

STEP 2:
on - 7.515ms
off - 9.185ms
Period - 16.7ms
Duty Cycle - 45%
Duration - 60 sec

STEP 3:
on - 8.35ms
off - 8.35ms
Period - 16.7ms
Duty Cycle - 50%
Duration - 60 sec

STEP 4:
on - 9.185ms
off - 7.515ms
Period - 16.7ms
Duty Cycle - 55%
Duration - 60 sec

STEP 5:
on - 10.02ms
off - 6.68ms
Period - 16.7ms
Duty Cycle - 60%
Duration - 60 sec

STEP 6:
on - 10.855ms
off - 5.485ms
Period - 16.7ms
Duty Cycle - 65%
Duration - 60 sec

STEP 7:
on - 11.69ms
off - 5.01ms
Period - 16.7ms
Duty Cycle - 70%
Duration - 60 sec

STEP 8:
on - 12.525ms
off - 4.175ms
Period - 16.7ms
Duty Cycle - 75%
Duration - 60 sec

STEP 9:
on - 13.36ms
off - 3.34ms
Period - 16.7ms
Duty Cycle - 80%
Duration - 60 sec

STEP 10:
on - 14.195ms
off - 2.505ms
Period - 16.7ms
Duty Cycle - 85%
Duration - 60 sec

STEP 11:
on - 15.03ms
off - 1.67ms
Period - 16.7ms
Duty Cycle - 90%
Duration - 60 sec

STEP 12:
on - 15.865ms
off - 0.835ms
Period - 16.7ms
Duty Cycle - 95%
Duration - 60 sec

STEP 13:
on - 16.7ms
off - 0.00ms
Period - 6480sec (108 min)
Duty Cycle - 100%
Duration - 6480sec

Last edited by iONic; 1st October 2007 at 11:56 PM.
iONic is offline  
Old 1st October 2007, 04:45 PM   (permalink)
Default

...and hopefully I'm not in "OUTER SPACE" with my numbers!
iONic is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
'schematic software' needed for microcontroller kiranmayi Micro Controllers 9 11th February 2007 04:42 PM
help needed .. data storage from microcontroller to pen drive amit_kr Micro Controllers 4 5th June 2006 04:43 PM
Programming the Mini-Max 8051 microcontroller blimon Micro Controllers 8 13th July 2005 03:42 AM
Connection of Siemens c167 microcontroller to peripherals. Roslan Electronic Projects Design/Ideas/Reviews 3 23rd March 2004 07:52 PM
Microcontroller Simplest Project Help needed waqar Electronic Projects Design/Ideas/Reviews 0 1st April 2003 01:53 PM



All times are GMT. The time now is 06:51 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker