RC-Time Circuit??
computer guy
Posts: 1,113
Hello,
I am using the RC-Time object in a propeller project of mine, using the following setup.
I noticed that between readings the value was fluctuating by about a value of 10.
If however I change the top GND to VDD I get the same reading with a fluctuation of about 2-3.
Can someone please explain to me why this makes a difference and if keeping it like this is likely to do any damage?
Thanks
I am using the RC-Time object in a propeller project of mine, using the following setup.
I noticed that between readings the value was fluctuating by about a value of 10.
If however I change the top GND to VDD I get the same reading with a fluctuation of about 2-3.
Can someone please explain to me why this makes a difference and if keeping it like this is likely to do any damage?
Thanks
Comments
It's probably caused by noise on VDD and GND.
The recommended method for this type of circuit in general is to use 2 capacitors.
Each capacitor is 1/2 C, one connected to VDD and the other to GND.
Any noise in the system is canceled out.
Duane J
Thanks for your feedback.
I should have probably mentioned, I am using a fixed value for R, it is C that changes. Therefore having two capacitors wouldn't be possible.
However, not completely fixed, due to noise, and either Vss or Vdd nodes are distributed and the fluctuations differ depending on where you choose to attach to the Vss or Vdd. Is your variable capacitor out on the end of some wires or a cable?
Yes it is on the end of a 1m cable. I am planning on putting a ferrite thingy on it to minimise interference.
At the moment it's on an experimenters board, but the final version will have it connect mm from both pins.
The RCtime technique is sensitive to noise, because as the RC voltage approaches the switching threshold of the prop at around 1.65V, and bit of noise can make it fire early or late. The amount of noise can vary quite a bit depending on the point of attachment on an experimenter's board.
The caps should be large compared to the variable one.
This could be done with a pair of resistor dividers but they would waste power and are not elegant.
The ferite bead is a nice touch but tiny coax cable is better.
Twisted pair will suppress noise but it doesn't suppress stray capacitance, coax does.
Duane J
Thanks for the diagram and info.
Should the prop pin side be connected to the shielding or core?
The capacitor pair presents a low impedance to gnd, (also to VDD), so environmental noise gets shunted off and doesn't show up on the pin, a good thing.
While you could use a twisted pair, its not nearly as effective at shielding as coax.
Duane J