-
Notifications
You must be signed in to change notification settings - Fork 44
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
ESP32 - D1 Mini Pro #43
Comments
First thing that comes to mind is that you should check the pins. The pin layout is different, and you may need to change some around in the core library's h and/or c files. Also, I think you can remove the CPU frequency option as it may be invalid for ESP32. |
I think, that the pin layout is pretty equal. The other tip I will try somewhere next weeks. And about the other, I hope someone can confirm/deny that some programmatic changes are needed (not yaml, but the others: core library's h and/or c files). |
If you can't even get it to boot/join your WiFi, something is probably trying to do something that is not possible or causes an error on the ESP32. You might be able to hook-up the ESP32 to the serial monitor built-into the Arduino desktop app to debug a bit what error is triggered. |
PS: Pins are definitely different. Please see https://github.com/ginkage/MHI-AC-Ctrl-ESPHome/blob/master/MHI-AC-Ctrl-core.h#L33. They determine which pins to use for SPI communication. The ESP32 does not have specific purpose default pins (like the 8266 has) for SPI, you will have to tell it what to do on each pin. If we look at the pinout for the one you have there, the edits should be something like this inside MHI-AC-Ctrl-core.h to get the SPI working;
Also, connect the ESP32 based variant entirely at your own risk. ;-) No guarantees given. EDIT: Updated pins. Was looking wrong as ESP32 has two rows of pins. Please see below image for pinout reference used. Note that it is not possible to mix both ESP8266 and ESP32 devices if you edit the core library pins. They are not pin-compatible. We may need to open a feature request to be able to set the pinout from library/core initialisation. Or simply copy the library files and include the correct variants into your projects. |
I think from now on ESP32 is the only viable option and most future proof. Lower power and better wifi and BLE. I really would appreciate support for this 😀 |
If you can test it out with above pinout and it works, the maintainer of the library could consider the possibility of setting the pins in such a way that it remains drop-in compatible with this project. |
Have you tested it out yet with above config? I also got intrigued by the possibilities of using an ESP32 instead of an 8266 and eventually extending the module in the AC with (for example) a PM2.5/PM10 sensor. So I've also ordered some ESP32 Mini's now. |
Hi, no not yet and no active plans. Since I discovered shelly plus which have esp32 and I can flash with esphome I do not really need them yet... |
Can you please elaborate on "how to submit" a feature request? Still would like to have ESP32's in my aircos... |
Little update for everybody else who might want to try to use an ESP32 D1 Mini.
My config in ESPHome looks like this:
Everything else is unchanged. When the ESP32 is only connected via USB to my PC I get the same error as in #29. Hope this helps. |
Hi all, I also like to help with this (as I would really like to use WPA3 WiFi features only available on ESP32), but to enlarge the success factor, I am wondering where you guys but your ESP32 boards, and what version? I only have 2 TTGO devices left, which do not suffice for the MHI interface. Any tips for decent price versus normal shipping times in Europe are greatly appreciated. I just want to buy the proper board so I can focus on the MHI side of things. |
Last time I bought an ESP it was from TinyTronics. I bought this one: Mind you this is not a D1 but C3 variant with the RiscV processor architecture and I'm not sure if it does WPA3. They have other variants too. I also order from HobbyElectronica: I don't know too much about the success factor thought. I think the D1 mini V3 is pretty okay but heard people who order from sketchy sources getting bad clones with mixed results. |
I've got an Ai-Thinker ESP-C3-32S-Kit board. I'm rewriting the code to use hardware SPI on the IDF platform, which works fine :). So harware-wise that's possible |
That's nice! |
Did you had any success with this? |
Yes, I've got two running in my home right now, works great. I'm not on full feature parity with this repo yet but works fine so far. I'm looking at the developments in absalom-muc/MHI-AC-Ctrl#77 to implement those as well. @glsf91 are you interested? My code needs some cleaning but I can upload whatever I already have if that helps |
@hberntsen |
I'm also tracking Bluetooth advertisements on both ESPs (for temperature), the one with 8 temperature sensors attached to it sometimes generates frame errors: The other one with just one sensor a lot less (0 since last boot). I did not investigate the cause of them. Given that we receive a new frame every 40ms the error rate is quite low :). I'm planning to report the Bluetooth temperature to the AC as reference temp. The trick with Hardware SPI on my ESP32-C3 was to generate a CS signal on the ESP itself, and loop it back to the hardware SPI CS pin. Otherwise It would never receive a frame. The ESP docs say that it should be able to operate without CS signal but I could not get that to work at all. I've dumped my code at https://github.com/hberntsen/mhi-ac-ctrl-esp32-c3 :) |
A lot of work to change this. I'm not familiar with IDF, so takes some time to try to understand your code.
Strange that the other project you referring to (homekit) is not using a CS. |
Indeed, though that project is targeting the ESP32, not the C3 variant. |
I have an ESP32 (D1 mini ESP32 clone). So this means it maybe could work without CS and therefore I can use the mhi-ac-ctrl PCB. |
Can anyone comment on the long term stability, I am considering using a ESP32 as it's a lot better option in most contexts in 2023. Did you encounter any issues? Apart from setting the pin definitions and CPU frequency, did everything else simply 'work'? |
@thehaxxa
I have ESP32s and and 8266 running in my units. None of them had any issues until now. |
Hi,
Do anyone using esp 32 got rid of these errors? |
I'm really interested in running this project on an ESP32 as well. Like many I think having the BT proxy feature is what makes this controller the better option over the ESP8266 it was originally created for. But now for a complete n00b question; how should one make these modifications? Simply fork the project, make the modifications and install from your own repo like this?
And when doing so, how would one keep track of changes in the main project. If after all you are simply looking for a few changes in the PIN assignment? |
Hi, I have tried to use a D1 Mini Pro ESP32 instead of an ESP8266. But to no avail, it just wont boot.
I want to use the advantage of also using the new bluetooth proxy component in the ESP32.
Is there any hard coding towards ESP8266?
Is it possible to use an ESP32?
board type: wemos_d1_mini32
The text was updated successfully, but these errors were encountered: