Avatar

Susan_B_Good

Susan_B_Good@discuss.tchncs.de
Joined
3 posts • 38 comments
Direct message

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.

permalink
report
parent
reply

I’m assuming that those "v"s are meters and not constant voltage sources. A 2.4v zener does NOT have exactly 2.4v across it. A 1.2 v supply will not be precisely 1.2v. Both will also vary with time and temperature. So, in practice there WILL be a dc component across the sensor - which will destroy it.

permalink
report
reply

I’m old school. I’d reverse engineer that part of the board, work out what the resistor was doing and then choose a value, much as the original designer did.

From that small section of the board - I’d guess that it is a resistor in the CR voltage dropper, used to power the electronics.

permalink
report
reply

Depends on your programming abilities. You can set up a “1-Wire” bus and put the lot on that. You could have one microcontroller as master and the rest as slaves - your external USB connection would go to the master and it could, in theory at least, then pass on program upgrades to the others. Clearly they would all have to be programmed individually, originally. But, quite frankly, the investment in time and effort on setting all that up? If you had dozens, hundreds - then yes. But you only have a small hand full. I’d just bring out their USB connections and program them individually, via those. I think each one has a unique identifier, stored in ROM - so they could all run the same software and include that identifier in messages on the bus.

permalink
report
parent
reply

Brilliant! Thanks you so much for taking the time and effort to help me with this - and for mentioning “CONNECTORBOOK.COM” so I can add that as a useful reference. Not a chassis mount but that always was a mission impossible to find, I suspect.

permalink
report
parent
reply

That sounds reasonable. That capacitor to ground may be needed for stability - lack of it could explain the problems that you have been experiencing.

Unless you are providing a bias voltage on the external input, a non-polarised capacitor is a better bet.

permalink
report
parent
reply

That sounds reasonable. That capacitor to ground may be needed for stability - lack of it could explain the problems that you have been experiencing.

Unless you are providing a bias voltage on the external input, a non-polarised capacitor is a better bet.

permalink
report
parent
reply

It’s usually a good idea to look at what’s normally connected, when breaking a circuit, and replicate that. Which I seem to remember is a 10k resistor with a parallel capacitor (being too lazy to go back and look again). You could try the same combination, in place of the added input cable, on the lines that you plan to use and see if it whines. If not, add the cable(s) and try again. That may stop it happening on all channels.

There are two muting methods - open circuit the input (via a switch or a gate) - in which case there will probably still be some signal transfer through capacitive coupling - especially if the amp side of the open circuit is high gain. Or short the signal path to ground - and that short will have some impedance and thus the signal is only attenuated and not removed all together.

Turning the amp gain to far higher than it ever would be in practice is hardly a fair test. There aren’t many amps that will be noise free under those conditions - and, in this case, there will be a signal to amplify, albeit highly attenuated.

It’s good to be cautious - cascade failure can be waiting to bite. Never direct connect unless unavoidable - add a series capacitor, if you can. Yes, not usually a good idea to provide a dc path unless essential and, even then, current limit it if possible.

permalink
report
parent
reply

I’m puzzled - you describe wanting to add a headphone jack (eg an output jack socket into which headphones can be plugged) - yet you seem to actually want a socket that provides auxiliary input.

However, if you are indeed trying to add external input and are disconnecting the inputs to an amplifier - you might want to tie those disconnected inputs to ground.

permalink
report
reply