Toshiba AC integration

Hi everyone!
During these hot days I felt the need to connect my Toshiba Shorai to my HA environment.
I bump into this tutorial and after frying my first D1 mini :stuck_out_tongue_closed_eyes: I would like to have some expert opinion.
In the tutorial, the tutorial a level shifter is used to covert 5v to 3.3v but in the schematics there is also a direct connection from the 5v of the AC to the 5v pin of the D1 mini (this is probably why I fried my D1 mini). However, the picture is showing a connection from the 5v pin to the LV pin of the level shifter.
Now, what is the right connection?

Thank you for your time

https://github.com/pedobry/esphome_toshiba_suzumi?tab=readme-ov-file

Your link doesn’t open to me. If you have 5V output on your AC, it can be connected to 5V pin of Esp, otherwise you need separate power supply for it. Gnd between Esp and Ac has to be connected anyway.

On level shifter 5V is HV side and 3.3V LV side. Level shifter is used for rx and tx lines, not for supplying power.

Edited with the correct link

Yep, the wiring scheme is incorrect.
Before you connect anything you have to test if 5V pin on your A.C. is input or output.
So measure voltage between AC 5V and GND pins without anything wired to any of AC pins.
Then we can correct your wiring.

I expect it to be output, so then the wiring would be:

This is valid if you power your esp from usb.

Here are some updates. the tutorial by pedobry states

AC unit has a wifi connector CN22 with an extension cable, usually with pink and blue colors (see the schema above).

pin number color ESP32 pin ESP8266 pin
1 blue 33 (TX) 13 (TX)
2 pink GND GND
3 black +5V (Vin) +5V (Vin)
4 white 32 (RX) 15 (RX)
5 pink unused unused

My AC has indeed this connection as you can see in the picture.
I measure the volts and had

Wire Volt
White 4.7v
Black 5.5v
Pink 3.7v
Blue 3.7v

volts between what???
You need to measure voltage between GND and 5V wire.

If your color coding is correct, place your voltmeter probes to pink and black connector to measure voltage.

Sorry for that
Measured DC with pink as GND
White, Black and Blue all got 5v
Hope this makes sense

Ok.
So are you going to power your Esp from usb or from A.C?
You can’t do both.
Also send a link to your level shifter or a good photo.
Also, your exact Esp board.

Power from AC
IMG_0843


ESP8266

D1 mini esp32 or esp8266?

It’s not correct.
Give me your actual board (not some image you think it’s similar enough), and I’m updating the correct wiring for you.

I gave you all the informations in my previous post
The D1 Mini is the ESP8266 from AzDelivery

Interesting,
This is exactly the wiring I used. Will test again with a new ESP. Maybe the first one was damaged somehow

No 5V to LV side here.
Be careful when wiring, Switch off power to A.C. when connecting. And don’t connect Esp to usb.

Now I probably understand the error.
I did the wiring, connected to the AC and then also connect to USB to flash the device.
How stupid :crazy_face:

Not good.
But that alone shouldn’t fry your board.

Ok, I am ready for the second rund. But before I connect everything I just wanted to be sure that the wiring is correct.
The one thing that I do not understand is why we are using the 5v AND the 3.3v pins
I also ordered the original WiFi adapter from Toshiba and it also has 5 wires but the AC only 4. so one is dead and they just use a 5 wire cable for convenience?
And Toahiba uses a 2mm jst connector and I only have 2.5mm. So I will just do this unorthodox connection :laughing:




5V you need to power your Esp and to “amplify” your 3.3V tx signal from esp to 5V rx signal for A.C.
3.3V you need to reduce A.C. 5V tx signal to 3.3V level for your Esp rx .

Wiring looks correct, if you have multimeter, check continuity through level shifter gnd pins and that you don’t have solder bridges anywhere.

Your “plug” doesn’t look bad, just make sure pins have tight fit.

And remember to switch off A.C. from circuit breaker, never connect wires when there is power.

Maybe you want to test your esp before connecting to A.C.
If you have 5V (breadboard) PSU, connect it to 5V (green/purple) and GND (blue) wires.