Discussion in "Project Help" started by    Rohit1111    Dec 24, 2017.
Sun Dec 24 2017, 09:31 am
#1
actually i am stuck in programming 89s52 microcontroller I have a 10 led of 3 mm and i have a sensor ,now what i want is i want to light up led in fade in and out way,like when a sensor gets high the led's should fade in ,in one by one way .Can anyone help me me out how can i do this ,I am newbie in C language ,i am using keil uvision to program .


[ Edited Sun Dec 24 2017, 09:37 am ]
Tue Dec 26 2017, 06:07 am
#2
What is the sensor ?
Is it on/off or does it give a variable level ?

"Can anyone help me me out how can i do this"
Start by dimming one led.
Do that by switching it on and off very fast.
The technique is called Pulse Width Modulation (PWM).

Do you know anything about using interrupts on the 8952 ?





[ Edited Tue Dec 26 2017, 06:08 am ]

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

sssrsait
Sun Feb 05 2023, 04:57 am
Richardfap
Sat Feb 04 2023, 01:56 pm
klining_Lob
Sat Feb 04 2023, 11:52 am
Stevenplaix
Sat Feb 04 2023, 02:28 am
ufa16zbnow
Sat Feb 04 2023, 02:14 am
NelsonHeard
Fri Feb 03 2023, 07:52 pm
dracermen
Thu Feb 02 2023, 10:32 pm
RowenaSteve
Thu Feb 02 2023, 12:58 am