• 2 Posts
  • 13 Comments
Joined 1 year ago
cake
Cake day: June 11th, 2023

help-circle




  • The standard way of looking at this is to consider a capacitor-resistor series combination going to ground. Connect a 10v (wrt ground) supply to the capacitor and the voltage across the resistor rises to +10v, then decays. Now connect that capacitor to ground and that same resistor gets -10v across it, which then decays. Whatever is connected to the capacitor “top” terminal has to be able to sink current as well as source it.

    That’s what generators in simulators do - they have zero internal impedance (usually). They sink currents as well as source them.




  • Assuming that the ribbon cable is standard - you could consider adding TWO IDC connectors, side by side. Then slice the cable through between them. Then add a standard extension cable to link the two. Indeed if one of the two is male, the other female - the extension can be removed if the thing is relocated to where the extension isn’t needed - or a longer one is needed.

    I confess to having done this sort of mod several times, myself. It’s also quite an easy way of sticking a protocol analyser/sniffer between the two and/or modifying the data that is sent on its way. Or adding an additional sensor (even of a different type) and converting its output to something suitable.




  • How I would do it is to use two digital IO pins on the processor to generate the reference square wave. Put the sensor plus a series precision resistor between them and just pull one IO pin high as the other is pulled low and then swap them. That presumes that IO pins can both source and sink IO current. Then take the junction between the two to an Analogue in pin. You get two measurements each cycle. Use a lookup table of values and interpolate between them. If you wanted more precision - add more series resistors of different values covering the range of humidity that you want to sense, going to different IO pins. So you can choose the IO pin pair that brings the centre point between sensor and resistor closest to the mid-voltage point. It’s effectively a balanced half bridge arrangement - using the precision of the resistors to determine overall measurement precision. OK it ties up several IO pins - but microcontrollers are so cheap, I’d probably just dedicate one to this sensor and that’s all that it would do.




  • Reminds me of a boat with a hot bulb inboard engine that we once had - the exhaust manifold had rotted away. Irreplaceable, the engine was very old.

    My university lab mechanic offered to make a new manifold - he used a steel plate and sections of a scaffolding pole. It looked a little like the above but worked perfectly.

    We sold the boat and the new owners ripped out the engine and THREW IT AWAY AS SCRAP. Put in a small diesel. Philistine.