ESPHome Dosing (Automated inside ESPHome)

jazzy123

New Member
View Badges
Joined
Jul 29, 2024
Messages
2
Reaction score
0
Location
UK
Rating - 0%
0   0   0
Hey all,

Im not a reef guy but you chaps certainly love your DIY dosing! I use Deep Water Culture and in need a of some help with some code for automating the pumps but not using Home Assistant to trigger as if Wifi or HA crashes (which is does sometimes) I want everything to run off the ESP and not having HA trigger dosing times etc, only using HA to alter them.

I am 3D printing a 4 + 4 12v dosing pump housing using the G928 pumps (none affiliate link ). Each box holds 4 of them and then a separate box holds the water temp, pH and EC values along with a few other sensors (not reef related but the rest is).

The pumps are powered by two tb6612fng in each box and also a PCA9685 inside. The PCA9685s then connect to the main box through one another via i2c to the ESP32 in the 3rd box. The PCA9685s is a 16 channel pwm driver which can act like a switch 0% or 100% and the tb6612fng's need to many pins to operate of just one ESP and I didnt want to use multiple ESPs. If you check out this breakout board from Adafruit I got the component idea from them: https://learn.adafruit.com/adafruit-stepper-dc-motor-featherwing:

Im fine with everything but the ESPHome automation side. Any ESPHome gurus able to point me in the right direction?

Many thanks and love looking at your chaps Reefs!
 

theatrus

Valuable Member
View Badges
Joined
Mar 26, 2016
Messages
2,223
Reaction score
3,632
Location
Sacramento, CA area
Rating - 0%
0   0   0
Im fine with everything but the ESPHome automation side. Any ESPHome gurus able to point me in the right direction?

Sure - what part do you have automated and do you want to handle the automation on the Home Assistant side or all in the ESPHome side?

I'd start by simply making output objects for all of the I/O you have connected to the PCA9685s:

 

HAVE YOU EVER KEPT A RARE/UNCOMMON FISH, CORAL, OR INVERT? SHOW IT OFF IN THE THREAD!

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top