Hi all
I have a 0 to 7V square wave signal. Frequency is 4KHz.
I want to convert this into an 0 to 3V signal to be read into PIC A/D or Comparator.
My initial solution was to use a voltage divider to reduce to 3V, This still leaves me with a 3V square wave. Can i use a low pass filter then to a opamp voltage follower to the PIC micro.
If this seems ok, what are the RC values condiderations? Should they be more than the 4KHz. Im not sure how this would work as i do not fully understand the effect of Low pass filter to a square wave and how to select the values to get a DC value.
Thanks in advance.
I have a 0 to 7V square wave signal. Frequency is 4KHz.
I want to convert this into an 0 to 3V signal to be read into PIC A/D or Comparator.
My initial solution was to use a voltage divider to reduce to 3V, This still leaves me with a 3V square wave. Can i use a low pass filter then to a opamp voltage follower to the PIC micro.
If this seems ok, what are the RC values condiderations? Should they be more than the 4KHz. Im not sure how this would work as i do not fully understand the effect of Low pass filter to a square wave and how to select the values to get a DC value.
Thanks in advance.