From f078b03342ce7cf0be7ffa4d9610514ae5530e86 Mon Sep 17 00:00:00 2001 From: Pat Beirne Date: Mon, 9 Dec 2024 16:19:22 -0500 Subject: [PATCH] notes about double diodes --- keypad_to_microcontroller.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/keypad_to_microcontroller.md b/keypad_to_microcontroller.md index 96aac11..c104d82 100644 --- a/keypad_to_microcontroller.md +++ b/keypad_to_microcontroller.md @@ -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.