Scaling a pot for RC time measurement??
Brian218
Posts: 92
Hi,
Could someone explain, post some spin code, or post a link, that explains how to scale a pot for RC Time measurement?
I did a forum search, but wasn't able to find anything.(might be me)
Here is exactly what I'm trying to do:
I'm reading a 10K pot and a .01mF cap in-order to adjust the duty cycle for a PWM.
With my current set up, the potentiometer can be adjusted from 0 to 5100 and I'm trying to scale the pot so it can be adjusted from 0 to 100. The value from the pot will determine the duty cycle for the PWM
Thanks in advance,
B-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
This post is a work of art. Variations in spelling and grammar are intentional, artistic endeavors that add value to all of mankind.
Could someone explain, post some spin code, or post a link, that explains how to scale a pot for RC Time measurement?
I did a forum search, but wasn't able to find anything.(might be me)
Here is exactly what I'm trying to do:
I'm reading a 10K pot and a .01mF cap in-order to adjust the duty cycle for a PWM.
With my current set up, the potentiometer can be adjusted from 0 to 5100 and I'm trying to scale the pot so it can be adjusted from 0 to 100. The value from the pot will determine the duty cycle for the PWM
Thanks in advance,
B-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
This post is a work of art. Variations in spelling and grammar are intentional, artistic endeavors that add value to all of mankind.
Comments
Post Edited (Todd Chapman) : 10/25/2009 11:17:17 AM GMT
That worked perfectly!
Thanks again
B-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
This post is a work of art. Variations in spelling and grammar are intentional, artistic endeavors that add value to all of mankind.