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

RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm