Idiots guide to getting an esp32 to control AC Infinity Cloudline EC fans esphome/HA

cubelite

Active Member
From there, what you do is up to your imagination. That being said, I'm more and more leaning towards coding a project outside of esphome. If it was just for me, I'd go for a native esp-idf project since I'm very familiar with the environment, but I might also go with the Arduino framework. It does add a massive amount of bloat and can be frustrating to work with, but it's more accessible to a broader audience I think.

Nonetheless, you are right; the UI could be built with lvgl and speed control could be supported as a slider. Something to think about.

Oh and the button there is a rotary encoder with push button, so a good clicking feeling and no limits on number of turns
How's the board working out for you? Is the control circuit for PWM control of the fan working well?
Does the fan go to 100% while the ESP is being programmed/rebooting? IE same as the fan being powered but unplugged from AC Infinity controller?
Can you share the schematic (or easyeda project)?

I was thinking of making a test circuit to try out a basic opto design. Wondering if R1 would prevent the fan from it's fail-safe ramp to 100% with a weak pull down.
1711041823163.png
 

sle118

Member
How's the board working out for you? Is the control circuit for PWM control of the fan working well?
Does the fan go to 100% while the ESP is being programmed/rebooting? IE same as the fan being powered but unplugged from AC Infinity controller?
Can you share the schematic (or easyeda project)?

I was thinking of making a test circuit to try out a basic opto design. Wondering if R1 would prevent the fan from it's fail-safe ramp to 100% with a weak pull down.
View attachment 5379688
I just did an OTA update and the fan didn't move during the flash operation or during reboot.

I've attached the schematics in case others would want to see. I didn't clean up so don't judge me on that; is a hobby not a Job ;)

The schematics includes a resistor connected to the tachometer screw terminal in the fan enclosure. This isn't tested yet. I followed some findings from another forum and pulled up the output and connected that to a gpio to measure RPM (I love measuring). I wonder if there's a linear relationship between the PWM duty cycle and the rotational speed.

I am also internally debating on whether I'll write a proper UI with navigation for this on, say, the Arduino platform . My preference goes to a raw esp-idf project, but the Arduino is more accessible if others want to fiddle around at some point. The idea would be a UI that is based on the lvgl library, and connecting to home assistant would be optional through mqtt.

I did shape the controller to mount it in the fan enclosure, but it can also be mounted remotely. I didn't bother keeping the connector; I tap the signals from the screw terminals directly
 

Attachments

cubelite

Active Member
I just did an OTA update and the fan didn't move during the flash operation or during reboot.
Interesting - I was thinking that I needed to ground the PWM pin while you're actually pull it up to 10V via R17 - Good thing I found this post

I've attached the schematics in case others would want to see. I didn't clean up so don't judge me on that; is a hobby not a Job ;)
No worries, all of this is a hobby...

The schematics includes a resistor connected to the tachometer screw terminal in the fan enclosure. This isn't tested yet. I followed some findings from another forum and pulled up the output and connected that to a gpio to measure RPM (I love measuring). I wonder if there's a linear relationship between the PWM duty cycle and the rotational speed.
I like measuring too, and if it's available, why not. That terminal is labeled FG in my fan and isn't brought down to the molex as they only use a 3 conductor cabled. That's easy enough to with a 4C wire as I want to have the terminals wired out from the fan case as it will be in my attic.

As far as the duty cycle relationship, here is some testing I did with the oscope. Left is their controller, the right is me using a dev board with esphome using a monochromatic light output at 4khz.
1711546343907.png

I am also internally debating on whether I'll write a proper UI with navigation for this on, say, the Arduino platform . My preference goes to a raw esp-idf project, but the Arduino is more accessible if others want to fiddle around at some point. The idea would be a UI that is based on the lvgl library, and connecting to home assistant would be optional through mqtt.
I've got no need for a UI as it will be node-red automations to control it. But it sounds like we have different use cases for the fans.


I did shape the controller to mount it in the fan enclosure, but it can also be mounted remotely. I didn't bother keeping the connector; I tap the signals from the screw terminals directly
If the tach works, it sounds like the molex connector is going to be more PITA than it's worth.
 

sle118

Member
View attachment 5381401


I've got no need for a UI as it will be node-red automations to control it. But it sounds like we have different use cases for the fans.



If the tach works, it sounds like the molex connector is going to be more PITA than it's worth.
Last reading is really odd and unexpected. Does it have an explanation?

As for my board, the display is not of an exercise in style as I took the opportunity to also build something that I would want in other places around the home. For instance, the mic chips are there to control power for very specific reasons, as I want to hook up a particle sensor from Panasonic which I found to have a poor MTBF unless powered off between reads. It's the most accurate sensor I could find on digikey and one I bought had endured over 12 months being outdoors in the north east (Quebec city). So being able to power sensors on demand was a must. So it packs a lot of features, much more than what I would have included if it were for the single trask of controlling a AC-Infinity fan.

As a matter of fact, I'll dedicate one board to bridging my Mitsubishi HVAC with home assistant
 

sle118

Member
Mmmm... That's excellent to hear. Clicky encoders are always a great time. Can't wait to get my mitts on one of these, ha.
If you're interested, better get the ball rolling before I pull all my boards into some project. I do need to order the components to build more, but real life is keeping me super busy right now.
 

Kommkat

New Member
For those interested the tachometer works really well as outlined in my schematics. Note here that air speed and CFM values are approximated from air flow measurements I took at various fan speeds. I don't have (yet) a mass airflow sensor connected :lol:
That's awesome! Any update on getting my filthy mitts on one of these? :D
 

sle118

Member
That's awesome! Any update on getting my filthy mitts on one of these? :D
PM me for this and we'll see how we can arrange something. I've never done it before, but I'm sure we can manage. I currently have only one left (one controls the fan, the second one is used as a test bed and I was eying the third one for another project, but it is a bit of an overkill).

I'm trying to find the budget to purchase more components in bulk so I can make more at some point, but with the current interest rates, cash flow isn't loose)
 

cubelite

Active Member
PM me for this and we'll see how we can arrange something. I've never done it before, but I'm sure we can manage. I currently have only one left (one controls the fan, the second one is used as a test bed and I was eying the third one for another project, but it is a bit of an overkill).

I'm trying to find the budget to purchase more components in bulk so I can make more at some point, but with the current interest rates, cash flow isn't loose)
any chance you'd be willing to share your easyeda project so I can browse around your overall board design?
 
Top