Comments (16)
@iMicknl updated my comment. Freaking Github and its markdown :)
from loctekmotion_iot.
@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.
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.
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.
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.
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.
@formatBCE what is your pin-out? Have a look at #67.
In theory most ESP32's should be tolerant to 5V.
from loctekmotion_iot.
@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.
@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.
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.
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.
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.
@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.
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.
Yeah, min/max height, units - that's it :)
from loctekmotion_iot.
@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)
- One command - 2cm change HOT 4
- Error E03 results in desk height 3cm reported HOT 2
- Question about control box cb28m1j(ib)-1 and HS13A-1
- ESP32 error with ethernet only
- Commands dont execute unless i wake desk from control panel CB38M2L(IB)-1 and HS01B-1 HOT 2
- Flexispot EF1 HOT 3
- Wiring ESP3286 HOT 1
- Strange managing HOT 3
- Raspberry Pi Pin20 confusion
- Long Press M (Lock/Unlock) HOT 1
- FlexiSpot E7 Pin Map in Readme HOT 2
- No Issue | Tip for a Mushroom-Desk-Card HOT 1
- Anti-Collision function not present. HOT 2
- D1 mini seems to crash when power is supplied via Ethernet [HS13B-1, Flexispot E7] HOT 3
- Implement Time Reminder / alarm functionality
- HS13M - probably works the same HOT 7
- [Testers wanted] New ESPHome configuration and documentation improvements HOT 65
- HS11A-1C0 HOT 2
- Update height when controlling through original keypad HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loctekmotion_iot.