#esp32- FCU (cooling& heating ) control and light control

73 messages ยท Page 1 of 1 (latest)

vocal ore
#

i made 6 panel like this for smart system control FCU & light control for big company

sharp mauve
#

would like to see more

#

looking good

quasi pecan
#

@vocal ore another way to do this is connect the MCP23017 breakout board directly to 8ch relay board pins

prime garden
#

If you had one with pins on opposite sides like this you could even hook up both relay boards like in the box

vocal ore
vocal ore
#

and many thanx for you all best wishes for us

prime garden
#

You way works too! If you need to control more outputs though this might make it easier. PCF8575

sharp mauve
#

found this today

#

it has chip on it already and connectors G VIN SDA SCL so you can just plug more directly trough it

prime garden
#

oh nice, and the A0/A1/A2 contacts so you can configure the address. you could hook 8 of those up to one I2C bus!

vocal ore
#

When I turn on the switches through ESP32 at once, some of them work while others do not, and then the ESP32 stops responding. What is the cause of this problem, and what is the solution?

sharp mauve
#

you mean when you turn on all relays at once?

#

does it reset?

prime garden
#

When you say "turn on the switches through ESP32", what do you mean? How are you turning them on specifically? Code/commands in your yaml? The web UI? Home assistant? Share your configuration/commands.

How are you powering the ESP? And the relay boards?

vocal ore
#

using homeassistat and yaml code this code :

sphome:
name: esp32_switch
platform: ESP32
board: esp32dev

wifi:
ssid: ""
password: "
***"

Set a static IP address

manual_ip:
static_ip: 192.168.1.1
gateway: 200.62.50.52
subnet: 255.255.255.0
dns1: 8.8.8.8

api:
password: "gvsghsgfjndfsdt5ewytgerger344563ter"

logger:

Define all GPIO pins as switches

switch:

  • platform: gpio
    name: "GPIO 2 Switch"
    pin: 2
  • platform: gpio
    name: "GPIO 4 Switch"
    pin: 4
  • platform: gpio
    name: "GPIO 5 Switch"
    pin: 5
  • platform: gpio
    name: "GPIO 12 Switch"
    pin: 12
  • platform: gpio
    name: "GPIO 13 Switch"
    pin: 13
  • platform: gpio
    name: "GPIO 14 Switch"
    pin: 14
  • platform: gpio
    name: "GPIO 15 Switch"
    pin: 15
  • platform: gpio
    name: "GPIO 18 Switch"
    pin: 18
  • platform: gpio
    name: "GPIO 19 Switch"
    pin: 19
  • platform: gpio
    name: "GPIO 21 Switch"
    pin: 21
  • platform: gpio
    name: "GPIO 22 Switch"
    pin: 22
  • platform: gpio
    name: "GPIO 23 Switch"
    pin: 23
  • platform: gpio
    name: "GPIO 25 Switch"
    pin: 25
  • platform: gpio
    name: "GPIO 26 Switch"
    pin: 26
  • platform: gpio
    name: "GPIO 27 Switch"
    pin: 27
  • platform: gpio
    name: "GPIO 32 Switch"
    pin: 32
  • platform: gpio
    name: "GPIO 33 Switch"
    pin: 33
unborn ruinBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

verbal verge
#

But that also didn't answer the question that was asked.

vocal ore
#

can you ask me agian ?

vocal ore
vocal ore
verbal verge
#

Can you watch the serial logs?

prime garden
#

You're turning them on and off fast through what? Home assistant? The web ui?

vocal ore
vocal ore
prime garden
#

How many amps/watts does the mobile charger support?

#

And does the same issue happen if you program the esp and switch it fast, but not attached to the relays?

vocal ore
#

If between pressing the switch and the other a few seconds the problem does not happen

prime garden
#

I would connect your ESP's USB to your computer and run esphome logs your.yaml, then try switching fast and see if any error messages come up

vocal ore
#

I will share it with you now

prime garden
#

this happens without being attached to the relays?

prime garden
vocal ore
#

yes this just connect esp32 with pc have home assistant virtual machine and open loges then turn on off and turn on quickly

#

then dawonlad loge in txt file

verbal verge
vocal ore
#

where can find this serial logos ?

verbal verge
vocal ore
#

Now it is important to keep OTA and API in the code or not ?

prime garden
#

not for the purposes of getting the logs, but it would be good to test with the same or most similar config to the ones you've been seeing issues with

vocal ore
#

i will tell you that i have 4 panel like this all work very good

#

i connect with home assistant 6 esp32 work good but and i will try change esp32 hardware to another one and cheek

#

Allow me to thank you for your effort and interest in solving my problem thank you from the bottom of my heart

vocal ore
#

?

verbal verge
vocal ore
#

hello

fiery scarab
vocal ore
#

or shield under esp32

prime garden
#

probably means the shield, but sharing info for both might be helpful for others

vocal ore
fiery scarab
fiery scarab
vocal ore
#

which esp32 you have

#

?

fiery scarab
#

esp32-wroom32 on esp32 devkit1 board which has two rows of 15 pins each

vocal ore
# fiery scarab

i will after finish it will share it her but am late beacuse not finished this potject

#

i want add lan8720 for every panel but have proplem connection betweet lan8720 with esphome any pne expret here

verbal verge
sharp mauve
#

I think he needs pins ๐Ÿค”

vocal ore
# verbal verge Do you mean a software or hardware problem?

many thanx
i connect lan8720 with external power ESP32 connect with raspberry pi install esp32 on esphome i look for logs every thin is good and connected and show all information about connection ip mac addres duplex , link speed and ethernet connected then i go to setting add device add integration search for esphome and put ip and submit but notheing happend

vocal ore
verbal verge
#

Can you ping that IP address?

vocal ore
#

Yes, ping on the IP, it doesn't give that there is a connected device and there is no

grand iron
#

Can I Write on this thread or make a new one? I have one of them espwroom but a 16 relay board and new to all of this? ๐Ÿ™‚

verbal verge
grand iron
#

Fantastic I will do so ๐Ÿ™‚