-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP won't boot up with keypad connected #62
Comments
So from my findings, "Pin20" contact has 5v (actually 4.7) on it. Not safe to use directly with ESP32 GPIO (although might work for some time, but can eventually break the chip). I tried to build small voltage divider on that, but it doesn't work as well. If i don't connect Pin20 from keypad to ESP, it boots up normally - but nothing works, operations don't take any effect. I tried 2 different boards, with as clean config as i could: NodeMCU ESP32, and ESP32-MINI boards. Have same results on both. Could it be, that my desk keypad is somehow different? It's Flexispot E5. |
Here's full thread of my lurkings - i actually tried a lot of stuff: |
@formatBCE what is your pin-out? Have a look at #67. In theory most ESP32's should be tolerant to 5V. |
@iMicknl according to data sheets, they aren't. Max allowed voltage on GPIO is 3.6-3.9V depending on board, if the specific board has no special voltage handling included. By docs, it MIGHT work for some time, but is dangerous long-term. My pinout is according to that Reddit post, here's the image: https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fy5d1kf1ar8tb1.png I tried different pins yesterday for both UART and PIN20, behaviour is unchanged. P.S. don't get me wrong, it works on 5V for PIN20 (at least to that extent i described), and actually it doesn't work with voltage divider on PIN20, which brings voltage to 3.2V. Screen is always off... But officially it's dangerous for chip, they're saying... |
@formatBCE the pinout on your image is hard to read. Should I read it as pin 1 to 8 (from top to bottom) on your desk controller and keypad? Please have a look at my link and try the other pin-out. Regarding 5V tolerance, I have to say this is quite a mess. There are not many official sources. https://hackaday.com/2016/07/28/ask-hackaday-is-the-esp8266-5v-tolerant/ describes a bit (with sources), but no official statement. In my own tests, I had issues with ESP8266 and with ESP32 it has been solved. |
RJ45 pin--------What--------Desk->ESP--------ESP->Keypad --------Desk->Keypad 1----------------VCC------------VCC---------------------------------------YES Maybe this is better? All other colors from controller are going directly to keypad. |
In the past we used colors to describe the pinout, but this can differ per control panel or ethernet cable. In the end this was very confusing, hence we moved back to the normal notation (1-8 count). This should be the same for every pin-out/ethernet cable. Based on your reply and images it is hard to see if you use the same pin-out and configuration. |
@iMicknl updated my comment. Freaking Github and its markdown :) |
Haha, makes sense. If I am not mistaken, your pin-out is still different than the one mentioned in #67? Or did you start counting in reverse? Have you tried with my config, without your desk keypad connected? So no pass through. |
@iMicknl you're right, i started in reverse... Looked on wrong table in README. yeah it's 8->7->...->4. |
Thanks! And please try with my new YAML as well. I have been running this for a long time and it is stable, especially compared to previous versions. |
@iMicknl tried with your config and replaced sensor file code just in case. |
Thanks! What is different for a desk that uses inches? Is changing the numbers (and unit just for visual purposes) not enough? |
Yeah, min/max height, units - that's it :) |
@iMicknl frankly saying, it wasn't giving me troubles to rule the desk without passthrough before. Just needed to set PIN20 to always on - (virtual screen that is). But the best thing would be to have keypad also working. :) |
Alright, i unplugged pin20 cable, that is going from keypad to ESP, and, using your new code from #67 it works now, no hanging on reboot. Will try it a bit more, but looks like it's working. I guess i will have to live without child lock, but it's alright. |
Maybe someone already had this problem:
My device works really good, everything is supported. I power it from 5v cord of the table controller.
However, if i pull the table plug out and put it back in, ESP won't boot, if keypad was connected to RJ45 socket...
So i need to pull keypad out of the device, reset ESP and put it back again after 5-6 seconds. (
And even then, sometimes ESP blinks and stops responding - today, for example, it took me 4 tries to put it back to work with keypad connected.Disregard that, looks like it was just bad power contact. Main problem still is there though.)Is it something related to the power? I checked all connected pins, and they shouldn't prevent ESP from starting, according to docs... Also i tried to use different pins just in case - still same behaviour.
The text was updated successfully, but these errors were encountered: