notes about double diodes

This commit is contained in:
2024-12-09 16:19:22 -05:00
parent c4830135ad
commit f078b03342
+13 -3
View File
@@ -385,14 +385,24 @@ Here is another excellent article:
I found the above at https://hackaday.com/2018/09/30/whats-the-cheapest-way-to-scan-lots-of-buttons/
#### Notes for the ESP8266
### Notes for the Hardware Design
#### ESP8266
I got burned on this. On many boards, the gpio15 has a pulldown resistor on board.
And gpio16 does not have an on-chip pullup resitor. That makes it difficult to use
these pins with the techniques above. FWIW.
#### Two Diodes
The final design above involves two diodes in series, and assumes that will present the
GPIO pin with a logic "low". I measured a pair of 1N4148 diodes in series with 100uA going
through them, and got 0.5V each, for a total of 1.0V presented to the GPIO. Many microcontrollers
will accept that as a logic low, but some may not. (The ESP8266 documents a logic low as
any voltage lower than 0.825V, an AtTiny threshold is 1.0 .....both @ 3.3Vsupply). The trouble
starts when the abient temperature drops down -60C, each Silicon diode will rise by 0.13V, and the
combination of both diodes will take it way out of detection range. So, if your keypad is going
to be outside, *definitely* use Shottkey diodes.