-
Notifications
You must be signed in to change notification settings - Fork 76
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
[BUG] "System is offline" after connecting GPIO leads directly to S21 Rx/Tx #552
Comments
Some images: |
And GND?!?!?!?!?!? |
Thanks for the response! Tried adding ground and it still wasn't working, then my genius was wondering if i mixed up the order of the RX/TX pins, and connected it to 3/4 instead, which I think burnt out my board. I'll be getting a new one and trying again. |
Hello! 3.3V level from the ESP appears not enough for S21 port, A/C does not hear Faikin. You need level conversion at least on Tx (Faikin side, to conditioner) line. Been there, done that, and came up with this very minimalist schematic: https://github.com/Sonic-Amiga/ESP8266-Faikin/tree/main/Hardware/S21Adapter. You can verify your board by connecting Rx and Tx together, Faikin should enter "loopback test mode" and report it in the UI. So, unless you plugged it into +14V power, you should be okay. BTW, note that you most likely need a step-down converter, because apparently +5V from the AC on S21 port (if exists) is too weak to provide power for the board; this has also been tested. |
Thanks @Sonic-Amiga! Got new boards and I think this matches what I'm seeing: S21 Rx returns data in the
I'll try figuring out how to step up the voltage - still a new field for me so I am struggling to understand your schematic but I will research more. Thanks! |
Ordered some 3.3v-5v level shifters and will try when I get them. |
@Jolt151 "S21¬Tx" and "S21¬Rx" are not what you think. ESP32 version also tries to autodetect pin inversion, so it tries for combinations for each protocol:
It consists of a very primitive inverting level shifter on Tx line and integrated step-down converter chip for power. Nothing more. |
Tried out the level shifter and I think I'm progressing, but still getting similar output of values and The wiring seems correct to me - 5v connected to HV, 3.3v to LV, GPIO 18/19 to LV1/2, and output to the unit on HV1/2. Ground is connected as well. To verify my connections, i used a multimeter and found that the level shifter outputs a constant 3.3v and 5v respectively on all the LV and HV 1/2/3/4 pins. Is this normal? I found some posts online and this might be common behavior for level shifters, but I figured I'll ask since this seems unintuitive. |
Faikin hardware
Using this ESP32 dev board, flashed with
Faikin-S1
fromrelease/
https://www.amazon.com/dp/B0DG8JFY3CThere's a pinout diagram on the amazon page.
Daikin hardware
Daikin
ctxs07lvju
, via the S21 portDescribe the bug
Pretty straightforward - I flashed the dev board, setup Faikin through the captive portal and connected it to MQTT, updated the Rx/Tx pins on the settings page to 18/19 (Tx=19, Rx=18), connected those via jumper wire from the board to pins 2 and 3 on the S21 port, and powering the board via the built in USB port. There are no other jumper wires connected
Expected behavior
Controls should work?
Additional context
Most important context is that I'm new to microcontroller/ESP32 dev, so I don't know what I'm doing. Based on whatever I read, my understanding was that Rx/Tx are the only pins required for communication, so if I power it via the USB port then I can figure out how to connect those pins later, after confirming it works. I'm able to read logs from MQTT, here's a sample:
Any ideas? Is it ok to be connecting these leads directly to the port? I appreciate all help, and I can get any logs necessary. Thanks in advance!!
The text was updated successfully, but these errors were encountered: