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

HarveyJebra
Thu Aug 18 2022, 10:22 pm
Waynesit
Thu Aug 18 2022, 07:57 am
IsaacAcemo
Wed Aug 17 2022, 04:15 pm
oprfid123
Tue Aug 16 2022, 07:14 am
Quincysmono
Sun Aug 14 2022, 07:28 pm
Geralddor
Sun Aug 14 2022, 05:05 pm
Scottcrads
Sun Aug 14 2022, 07:55 am
SteverPak
Sat Aug 13 2022, 08:25 am