PWM controlled (pulsed) LED with an AVR ATmega microcontroller.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,751
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 18, 2009

Based as an experiment with my AVR development board, showing you some use of a pulse width controlled rectangular signal. It's the proper way of controlling the brightness of an LED. Using three channels with a combined red, green, blue LED makes it possible to compose almost every color within the spectrum (not on the vid, though ;)

Notice: The human eye needs a non-linear (exponential) curve to recognize light level changes linearly, this is why in this video the LED seems to jump from low to high very fast and then just stay high for a long time, although it is perfectly linear. More sophisticated fading mechanisms respect that.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (linuxgeek81)

  • What is the usb connector for? Are you using it for programming the chip? Maybe with the aid of USBasp with AVRDUDE?

  • No, that would not require a USB port within the target application.

  • In the meantime I also use that port for programming the AVR...

  • nice man.

  • where? oO

see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • Hey Hi! its a nice demonstration. Presently I am working on the same kind of thing with AVRxmega128a and AVR dragon as debugger. Can you pls send me ur sample code, so that I can rectify my mistakes. This would help me a lot. Thank you. my email id is gachibowli.diwakar@aol.com

  • actually, the non linear response of the light is a property of the LEDs, not of the human eye, thats why it brightens all up at once. to make it linear, you should compensate by using a log-varying duty cycle =]

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more