Mturk Jobs

Mturk Jobs
Mturk Jobs


Friday, March 27, 2009

I wish I met you in person to introduce you to Islam

I wish I meet you in person to thank you for visiting my blog and for knowing your opinion.
And to get more ideas from all around the world about Microchip PIC.

I also want to meet you to tell you about my religion , Islam. Yes, I am Muslim. And I am proud of being a Muslim. And since I had the chance to communicate with open minded , highly educated people from all the world , I can give you an Introduction to Islam. This religion that I want to tell the whole world the truth about it and how it makes the world a better place for the humanity. So , I invite you to check this Introduction to Islam.

If you need to know more about Islam from trusted sources, you can order free book from here.

Saturday, March 7, 2009

PWM Mood Light using PIC 16F84

Generating PWM signal using PIC 16F84

PWM ( Pulse Width Modulation ) is a square signal involves changes in the duration of the on time ( duty cycle ) . It can be easily generated by the PIC 16F84 . This PWM signal can be used in many applications ( for example : DC motor speed , LED brightness intensity , Mood Light Lamps ) .

PWM can be used when no DAC ( Digital-to-Analog Converter ) is available in the microcontroller chip or as a stand alone chip. The average DC voltage values are equivalent to analoge values as where you used DAC for motor speed control .

And for light brightness intensity , at high frequency , the blinking process is not observed by human eyes and what you see is only brightness intensity corresponding to the duty cycle ( time at which light is ON)

At longer duty cycle , LED is ON for longer time , so you see it brighter.

At shorter duty cycle , LED is ON for shorter time , so you see it less brighter.

The previous examples used constant duty cycles at each time which means constant brightness LED and constant speed for motor.

To make Mood Light LED, you need to change the duty cycle of the PWM signal by increasing and decreasing it back and forth.

You get this one .

Note :

You see this image still, just click it and save it to your PC you 'll see it animating ( PWM is variable ) .

I connected this circuit to the LED and it did just as I expected , it looked brighter then dimmed and then brighter again.

You can have the circuit and the code files from here.

If you need any help configuring the compilation settings for Hi-Tech and ISIS 7 , you can check the previous posts. If you need further help about code and hardware you are welcome to contact me.

If you like this blog you can support us by many ways:
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
  4. Visit our new website

Thank you for visiting our blog.