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

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am