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
 
Thread Tools Display Modes
Old 26th September 2006, 02:02 AM   (permalink)
Default Leds Dimming or Lower voltage?

Hi,
I came across a circuit today and i saw some dimming leds sequences.
Its like it fades off rather than turns off straight away..

When i take a closer look, it uses a PIC16F628A.
The circuit is relatively simple it uses MOSFETs.

Is there a way to write the program as such??
Variable output voltage??

Thx in advance..
vinvin is offline   Reply With Quote
Old 26th September 2006, 03:21 AM   (permalink)
Default

The PIC just uses PWM to dim the LEDs. It just varies the duty cycle of a squarewave to change the LED brightness. The square wave is of a high enough freqency that your eyes don't see the flicker.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline   Reply With Quote
Old 28th September 2006, 04:49 AM   (permalink)
Default

Thx for the explaination..
Btw do u have some code sample that i can refer to?
and wats PWM?
vinvin is offline   Reply With Quote
Old 28th September 2006, 07:58 AM   (permalink)
Default

Quote:
Originally Posted by vinvin
and wats PWM?
If you ask google I'm sure you'd find out, but it's Pulse Width Modulation.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Voltage ElectroMaster Electronic Theory 44 8th August 2007 05:35 PM
I am not getting ripple voltage at the output dar2525 General Electronics Chat 3 14th July 2005 02:20 PM
Voltage reg or voltage reference. Screech General Electronics Chat 4 13th May 2005 06:57 AM
lower voltage dstich Electronic Projects Design/Ideas/Reviews 1 20th March 2004 03:47 PM
convertion of acvoltage to high dcvoltage panchumarthy Electronic Projects Design/Ideas/Reviews 8 12th December 2003 01:35 PM



All times are GMT. The time now is 12:33 AM.


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