In this circuit, what do I need to take into consideration, when choosing the components values? What I'd like to ultimately do is take a pwm output, convert it to analog and trigger a relay with it.