KlausMu / esp32-fan-controller

ESP32 fan controller with temperature sensor and MQTT
272 stars 48 forks source link

Question re pullup resistors #9

Closed patrickcollins12 closed 2 years ago

patrickcollins12 commented 2 years ago

Question for you. Is there a reason why are you using pull-up resistors when the esp32 has built-in pull-up resistors?

KlausMu commented 2 years ago

Yes, I explained it here: https://github.com/KlausMu/esp32-fan-controller/wiki/02-Obstacle-ESP32-electronics

You can try without pullups, if it works for you, then you are lucky.

For the tacho you have to change pinMode(tachoPin, INPUT); to pinMode(tachoPin, INPUT_PULLUP);

For I2C the internal pullups are active anyway (done by the library used).

patrickcollins12 commented 2 years ago

Ha, well there you go. This might explain why I couldn't get an RPM readout from a hall sensor on my gokart. Will have to go back and look into it.

I've just built a very similar project to yours using esphome. I'll send you a link if you're interested.

KlausMu commented 2 years ago

I've just built a very similar project to yours using esphome. I'll send you a link if you're interested.

Sure.

patrickcollins12 commented 2 years ago

I Klaus, I finally got around to take some photos and writing the README. I was inspired by your write-up. I'd love your feedback.

https://github.com/patrickcollins12/esphome-fan-controller

KlausMu commented 2 years ago

Hi Patrick, thanks for the link, looks great! Thanks for publishing it. Here are some points you might like to consider: