(more or less) Universal input circuits
bte2
Posts: 154
Hi everyone! I've been laying out boards since the days of vellum and technical pens, and over the years I have assembled a library of circuits that I use to do different things.
I'm doing a board now that got my curiosity roused, and I thought I would pitch it out and see what comes back.
What I am looking for is people's ideas regarding a Universal input circuit to a propeller pin, that can be used to read an unknown (at design time) signal. Something that can read a toggle switch (if that is what is connected), or an analog (of unknown origin), or a pulse counter, or a serial data stream(since we're feeling ambitious, with RS-232 levels). 4-20mA. Zero crossings(off of a transformer, of course).
I'm looking to build the most versatile input circuit I can. I have one circuit that does most of what I am looking for, but it takes up too much real estate on the board. It is an op-amp circuit that, depending on how I populate the jumpers and resistors, will read any sensor I can connect to it and protect the Prop pin in the process.
I like what I have now, but I am just wondering out loud what other folks are doing; maybe see if there are any new parts I have missed.
If anybody wants, I will budge up a schematic of my circuit and post it, but it is hard to describe how to set the parts. As long as I know going in what will be connected, it works great.
I'm doing a board now that got my curiosity roused, and I thought I would pitch it out and see what comes back.
What I am looking for is people's ideas regarding a Universal input circuit to a propeller pin, that can be used to read an unknown (at design time) signal. Something that can read a toggle switch (if that is what is connected), or an analog (of unknown origin), or a pulse counter, or a serial data stream(since we're feeling ambitious, with RS-232 levels). 4-20mA. Zero crossings(off of a transformer, of course).
I'm looking to build the most versatile input circuit I can. I have one circuit that does most of what I am looking for, but it takes up too much real estate on the board. It is an op-amp circuit that, depending on how I populate the jumpers and resistors, will read any sensor I can connect to it and protect the Prop pin in the process.
I like what I have now, but I am just wondering out loud what other folks are doing; maybe see if there are any new parts I have missed.
If anybody wants, I will budge up a schematic of my circuit and post it, but it is hard to describe how to set the parts. As long as I know going in what will be connected, it works great.
Comments
"Universal input" is a tall order.
A high impedance input or low? Analogue or digital? High frequency or low? Current driven or voltage driven? Differential or single ended? Pull high or pull low? Heck, high voltage or low? Does it need protection?
I think you have to determine your goal here and specify accordingly.
http://www.parallax.com/downloads/propeller-spin-zone-articles-and-code
They include the standard, (at the time), Propeller Development Platform. It could be built upon using stack up boards.
The board layout are all available using ExpressPCB free software:
http://www.expresspcb.com/
-Phil
However, a more desirable Universal input circuit, would not need "populate the jumpers and resistors"
A standard ADC needs 2 pins, but can be configured to have a nominal ~Vcc/2 or ~0V mid-point.
That places a CAP at the Prop pin, which is not so good when you want Pulse or RS232 streams, so it needs a jumper.
The simplest jumper-set circuit I can envision, would have a jumper for the CAP, a jumper for Offset, and a Jumper for load resistor. Highest speed pulse use would add a parallel (some pF) peaking cap to the series Pin resistor.
-Phil
-Phil
..or, use the 3rd Pin to switch the CAP ?
With a [Rin // Peaking C], the CAP-removed pin can also now be used as an output, to drive light Logic loads, and with some 'slip' protection.
Oh I know. I was about 75% tongue-in-cheek in my post. Mostly curious to see what people are doing in the way of nice, robust inputs. It would be cool to take a circuit like mine and control it with digital pots, but that might be a little more work than it's worth. And yes, looking to see if anybody had something in the way of new/better/different parts that may have gotten past me.
Like I said, just curious. Seemed like a decent topic to throw out there.
:-)
EXACTLY the kind of thing I was looking for. Thank you- I'll check it out :-)
ETA- I like it and ordered some from Digikey. It has a lot of promise for doing things like running a 5v display or the driving the addressable LEDs. Thanks again!