![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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.. |
|
|
|
|
|
|
(permalink) |
|
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. --- |
|
|
|
|
|
|
(permalink) |
|
Thx for the explaination..
Btw do u have some code sample that i can refer to? and wats PWM? |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |