49
votes
Accepted
Add a passive hardware token using a 3.5mm jack
Use 1-wire bus and any 1-wire chip inside the button. I wrote "any", because each 1-wire chip has its own, unique hardware address, so all that you need on RPi side is checking that the chip was ...
23
votes
Accepted
Where Does VDD+0.3V Input Limit Come From on IC chips?
Most likely there is an ESD protection diode connected between the input pin and the VDD net on the chip, in such a way that it is normally reverse biased (A schematic showing the configuration is ...
22
votes
Why does most test equipment have 10 MΩ voltage input impedance?
Having worked with test equipment with a 100 MΩ input impedance, I can say that it does not only have advantages. It requires much more careful handling than normal voltmeters or scopes. For example, ...
21
votes
Accepted
Why does most test equipment have 10 MΩ voltage input impedance?
Remember that the actual ADC in the meter doesn't have infinite input impedance. It will source or sink some current on the voltage divider circuit. That means that raising the voltage divider ...
20
votes
Accepted
Can unconnected inputs make an IC get warm?
Yes, CMOS circuits can get hot when there are floating inputs. You should always connect unused CMOS input pins to a defined voltage, usually GND or Vdd, unless the datasheet tells you otherwise (see ...
18
votes
Accepted
Considerations when using internal pull-up/down resistors
Yes... You can... It's a proven feature.
If you see pin structure in STM32 Reference manual, you can see that it has required components --
If this satisfies your requirements, then, you can do away ...
18
votes
Considerations when using internal pull-up/down resistors
In general, it is perfectly fine to use the internal pull-up or pull-down resistors.
Disadvantage is that you can forget to enable it from software, that can cause a little headache. The external ...
18
votes
12V input on microcontroller pin
I would try a resistor divider solution like shown below.
Select the resistor ratio so that the divided voltage is at the proper level for the MCU when the input is at its nominal voltage. The zener ...
18
votes
Where Does VDD+0.3V Input Limit Come From on IC chips?
This is due to the input protection diodes.
A typical input looks like this (CMOS inverter shown):
simulate this circuit – Schematic created using CircuitLab
The diodes in newer parts are ...
17
votes
12 V input on 3.3 V GPIO, TVS pulled down or Schottky pull up?
This is actually an age old problem with PLCs and not nearly as simple as your
intended solutions.
The biggest issue you have is that as well has having a wide variety of potential logic voltages you ...
15
votes
Accepted
12V input on microcontroller pin
Use a circuit like this:
simulate this circuit – Schematic created using CircuitLab
R1 and R2 determine the voltage range, and perform the initial division. These resistors must be capable of ...
15
votes
Why does most test equipment have 10 MΩ voltage input impedance?
Infinite input impedance would be ideal. 'High enough for most people' turns out to be commercially more practical.
It's relatively straightforward and cheap to make practical amplifiers with 1 MΩ and ...
14
votes
Considerations when using internal pull-up/down resistors
Unless the pullup and pulldown resistors are active during reset (I suspect they aren't, but I'm not familiar with STM32 devices), there is an undefined pin state at reset. This is one major reason to ...
14
votes
Accepted
PCB "Touch" Button
For reliability reasons I wouldn't go for an open-gate design and rely on the 50Hz noise. It probably might work, but your idea of using interleaved fingers should work quite well.
The resistance of ...
14
votes
PCB "Touch" Button
It is possible to use resistive connection pads like you show, but capacitive pads are generally better. Resistive pads leave a direct connection to the circuit open to the outside. They are ...
14
votes
What is the need for using active low inputs like EN' (read as "Enable bar") in digital electronic circuits?
Brian's "legacy" answer is quite fine.
There is another reason why active low is somewhat more reliable than active high in modern CMOS designs, and why it shouldn't disappear soon.
This ...
13
votes
Measuring 230V from Raspberry Pi
The industry-standard way of doing this is to use an optically-isolated coupler. The proper industrial method is to use a modular system where you can select a module for mains power input and logic-...
12
votes
Accepted
3 input XNOR gate operation
The misunderstanding is that, given XOR as a logic gate, XNOR is defined as being always its negation.
Having defined your XOR-3 as an odd parity checker (by accepting the minterm \$xyz\$ - ...
12
votes
Why does most test equipment have 10 MΩ voltage input impedance?
It's a happy middle ground for most users that allows satisfactory accuracy while still allowing sloppiness in use.
Too low and your signal source gets loaded and distorted more than you can tolerate. ...
11
votes
Identify Vintage Power Cord for 1980s Organ
I'm reasonably certain you need an IEC 60320 C9 plug to mate with that connector.
Wikipedia has this to say: "This kind of coupler is used by Roland Corporation for a couple of synthesizer and drum ...
11
votes
Where Does VDD+0.3V Input Limit Come From on IC chips?
The 0.3V drop comes from the Schottky clamping diodes used to protect the pins of the chip. These diodes typically connect between each pin and the two power rails. If they are forward biased by more ...
10
votes
How CRT allows use of ligh-guns or pens etc?
The quintessential example of a light gun is Duck Hunt with the NES Zapper.
When the trigger was pressed, the Nintendo would trigger a special frame at CRT refresh rates. The screen would draw a ...
10
votes
Considerations when using internal pull-up/down resistors
As others have said, internal pull-ups and pull-downs are fine as long as:
you remember to configure them,
they are strong enough,
you do not end up fighting them with an external pull, and
the ...
9
votes
12V input on microcontroller pin
If the signal levels are GND and 12V (or >5V), the most simple and 100% safe way is this:
simulate this circuit – Schematic created using CircuitLab
If it really serves your purpose depends on ...
9
votes
Accepted
What will happen if the input voltage of the buck-boost converter goes below the recommended input?
Most DC-DC chips have an input undervoltage lockout, so if the input voltage drops too low, it's probably going to shut down.
Then, since it is no longer drawing current, the input voltage will rise, ...
8
votes
Accepted
Function of a component in a Ethernet Board
It's a transformer (really several transformers and common mode chokes in single package). Often these days it is contained within the jack, but it's probably a bit cheaper to have it external.
Here ...
8
votes
12V input on microcontroller pin
I would use a resistor divider and then protect the uC with a 5.1v Zener
If you put the zener between the pin and ground in parallel with, say, a 10k pull down resistor, then feed your voltage ...
8
votes
Add a passive hardware token using a 3.5mm jack
I would make each "token" an I2C device. Using a tip-ring-ring-shank style jack would give you 4 conductors -- ground, power, data, and clock. Each token would need to have it's own I2C address, and ...
8
votes
Accepted
As a general rule, should input pins be protected with a series resistor?
The simple rule is that if the input pin is going to something that's 100% under your control and guaranteed not to misbehave, then no, you don't need protection. If you can't guarantee that, then ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
input × 531output × 119
microcontroller × 64
voltage × 51
arduino × 43
digital-logic × 38
analog × 38
operational-amplifier × 29
switches × 27
pic × 25
audio × 22
protection × 20
power × 19
resistors × 19
gpio × 19
adc × 18
stm32 × 16
impedance × 16
fpga × 15
current × 14
amplifier × 14
sensor × 13
power-supply × 12
pullup × 12
integrated-circuit × 11