jwilleke / ArduinoHA-examples

Various attempts to Connect to home assistant using MQTT
0 stars 0 forks source link

fans and pumps run on startup #7

Open jwilleke opened 4 months ago

jwilleke commented 4 months ago

The fans and pumps run on startup until the Arduino code is initialized we need two relays on for 5V and one for 12V supplies to keep them off until the code is initialized.

readCount is a counter that counts the number of reads performed and in the loop() function we use

  if (readCount > INITIAL_READER_COUNTER )
  {...}

To prevent readings until things settle down. The sensors run all the time power is applied to the Arduino, but we just do not read them until this counter reaches the INITIAL_READER_COUNTER.

jwilleke commented 4 months ago

Appears if we power the Pin Rail from an external power supply and then turn it on from an Arduino controlled relay it should do we we need.

Need to find out how that can be done on the Arduino UNO R4 WiFi (ABX00087) or the IO Expansion Shield for Arduino

jwilleke commented 3 months ago

Installed switch to allow manual intervention to stop pumps from running. This could work as a workaround to a missing feature.