Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi,
I am troubled of how can I make my tri-color LED dim.
I have a 595 shift register where my tri-color RGB LED was connected. My goal is to dim it so I can have a different color.
How should I do it in Keil C51 code? Should I use Timer interrupt? Hardware pwm?
BTW, I successfully light/blink...
Hi,
I wanted to control 5 servos in 1 Timer(Timer0). My Timer0 interrupt at 0.5ms and this will be supplied to 5 servos as PWM source.
But, I have a hard time figuring the easy way I can control the 5 servos. Such as, holding 1 servo to a desired position while controlling the other and...
Thank you btbass. So quick!
Yes, I know it was the average of the 10 samples in .1sec period approximately. But he should not averaging it unless the buffer gets full (buf[0...9] filled up). Right?
And he will not displaying it until averaging is complete.
Although, 10ms is fast enough for human...
Hi,
Can somebody explain to me the sample code here -> link.
Particularly in this line:
for(i = 0 ; i < BUFSIZE ; i++) // for all samples in buffer
{
cm += buf[i] ; // add to sum
}
cm /= BUFSIZE ; // average samples
Why he divide it by 10? I am confused.
And also in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.