kiatAWDSA / EMC2301

An Arduino library for interfacing with the Microchip EMC2301 RPM-based PWM fan controller using a custom I2C library.
GNU General Public License v3.0
3 stars 0 forks source link

need little help using this Lib #1

Open basestring2 opened 5 years ago

basestring2 commented 5 years ago

Hi,

Could you give me a little example on how to use this. Your Lib is the only one I could find.

Many Thanks

kiatAWDSA commented 5 years ago

Hello,

I am in the middle of writing the documentation and will let you know when it's ready.

In the meantime, are you using the native Wire library for I2C communication in your Arduino? This EMC2301 library was written for a custom I2C library which will have conflicts with the Wire library.

RStaes commented 2 years ago

Are you still writing the documentation? Can you give us an example on how to use this? There are no other Arduino IDE based libs.

Thank you in advance!

kiatAWDSA commented 2 years ago

Hello,

I wrote this library quite a while ago during graduate school but didn't write a proper documentation due to other priorities. I'll try to refresh my memory and write one this month. The good news is that it definitely works because the library has been and is still being used in multiple research equipment for almost 3 years now. In the meantime, could you describe your use case such as target fan speed (RPM), number of fan poles (if you're not sure, this should be in the datasheet for your fan), etc..? I'll try to provide a code snippet for you to test.

Please also note that this EMC2301 library uses a custom I2C library (https://github.com/kiatAWDSA/I2C) instead of the official Arduino's Wire library.

RStaes commented 2 years ago

Hi Kiat, thanks for your reply! I'm very pleased about you wanting to help me.

What I want is to remotely (OTA) control a string of 25Khz 4-wire PWM fans (4pcs). I was planning to use a ESP8266 or ESP32 for the Wifi access and controll over mqtt. Because, as far as i know, the max. PWM frequency of a ESP8266 and ESP32 is 10Khz I bought me a Fan click board (MIRKOE-20004). So my ingredients are:

1x 12V powersupply for the fans 1x 5v powersupply for the ESP32 1x ESP-WROOM-32 or Joy-it ESP8266 1x Fan click MIRKOE-2004 4x Arctic F12 PWM PST fans 1x MQTT broker (Home Assistant add-on)

I can't find out how to use the Fan click board so i thought, i'll try to use the EMC2301 chip on it. Maybe you can help me out. I would be very pleased!

Yes, i'm using the custom library.