ich hab ein Bauteil, das mehrere Buttons verbaut hat.
Bei den Buttons ist immer parallel noch ein 3,3 kOhm widerstand verbaut.
Wie kann ich die Buttons auswerten?
Am besten wäre es, wenn ich die Buttons über eine Digitalen I/O auswerten kann, da mir sonst die Analogen I/O ausgehen.
irgendwie eröffnet sich mir der Sinn für den Widerstand nicht. ich würde ich einfach rausknipsen.
Es konnte sein das an der Klemme E nochmals irgendwie ein Widerstand an plus gehangen hat. H auf GND Dann wurde sich mit dem 3,3K ein Spannungsteiler ergeben. Bei geschlossenen Schalter würde die Spannung an E dann 0V werden.
As the Atmega datasheet says, the input high voltage should be more than 0.6Vcc. It follows that for given 3.3 kOhm the upper resistor of divider should be about 1.5-2.0 kOhm (<2.2 kOhm). This @my_xu_project already said above.
I mean Atmega 328P Datasheet. The author of the question does not say which controller he has. I meant that, for example, the Atmega 328P from the popular Arduino boards has Vih = 0.6Vcc at a supply voltage of 2.4 ... 5V (i.e. 3V at Vcc = 5V). As you said, the Atmega 32U4 has 1.9V at Vcc = 5V. We need to have more information for an accurate calculation.
The MK64FX512VMD12 processor of your Teensy 3.5 board has min high level voltage Vih = 0.7 × Vdd = 0.7 × 3.3 V = 2.3 V. You may use additional resistor < 1.4 KOhm. So, 1 - 1.3 KOhm will be ok. I would use 1 KOhm resistor. You can check this yourself here Voltage Divider Calculator .