Giter VIP home page Giter VIP logo

Comments (16)

formatBCE avatar formatBCE commented on June 25, 2024 1

@iMicknl updated my comment. Freaking Github and its markdown :)

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024 1

@iMicknl you're right, i started in reverse... Looked on wrong table in README. yeah it's 8->7->...->4.
Will try with no passthrough now.

from loctekmotion_iot.

iMicknl avatar iMicknl commented on June 25, 2024 1

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.

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024 1

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.

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024

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.
At current time i'm out of ideas, and can't understand why i'm the only one with this trouble.

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.

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024

Here's full thread of my lurkings - i actually tried a lot of stuff:
https://www.reddit.com/r/esp32/comments/1742yoa/weird_wifi_issues_on_external_5v_power_from/

from loctekmotion_iot.

iMicknl avatar iMicknl commented on June 25, 2024

@formatBCE what is your pin-out? Have a look at #67.

In theory most ESP32's should be tolerant to 5V.

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024

@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...

from loctekmotion_iot.

iMicknl avatar iMicknl commented on June 25, 2024

@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.

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024

RJ45 pin--------What--------Desk->ESP--------ESP->Keypad --------Desk->Keypad

1----------------VCC------------VCC---------------------------------------YES
2----------------GND-----------GND---------------------------------------YES
3-----------------TX-----------GPIO17-------------GPIO26
4-----------------RX-----------GPIO16-------------------------------------YES
5----------------Pin20---------GPIO23-------------GPIO22

Maybe this is better? All other colors from controller are going directly to keypad.
It's actually default pinout. Also i tried with GPIO18 instead of GPIO26, and GPIO27 instead of GPIO22. Same behaviour.

from loctekmotion_iot.

iMicknl avatar iMicknl commented on June 25, 2024

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.

from loctekmotion_iot.

iMicknl avatar iMicknl commented on June 25, 2024

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.

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024

@iMicknl tried with your config and replaced sensor file code just in case.
It works, without keypad. (Not mentioning some weirdness because my desk height is in inches, and some buttons are screwed too.

from loctekmotion_iot.

iMicknl avatar iMicknl commented on June 25, 2024

Thanks! What is different for a desk that uses inches? Is changing the numbers (and unit just for visual purposes) not enough?

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024

Yeah, min/max height, units - that's it :)

from loctekmotion_iot.

formatBCE avatar formatBCE commented on June 25, 2024

@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. :)

from loctekmotion_iot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.