#esp32- FCU (cooling& heating ) control and light control
73 messages ยท Page 1 of 1 (latest)
@vocal ore another way to do this is connect the MCP23017 breakout board directly to 8ch relay board pins
If you had one with pins on opposite sides like this you could even hook up both relay boards like in the box
many thanks no i dont have but i will buy it soon
no i don't have but will search about it in Aliexpress
and many thanx for you all best wishes for us
You way works too! If you need to control more outputs though this might make it easier. PCF8575
found this today
it has chip on it already and connectors G VIN SDA SCL so you can just plug more directly trough it
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!
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?
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?
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
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.
But that also didn't answer the question that was asked.
can you ask me agian ?
yes and when i turn on or off switches fast
have 2 source power one for esp32 (mobile charger ) and 12v power supply for relay module and connect GND with us
Can you watch the serial logs?
You're turning them on and off fast through what? Home assistant? The web ui?
How are you turning them on specifically? using pc install virtual machine home assistant and install esphome in homeassistant then add device and chose esp32 and connect buy usb cable then connect then skip open esp32 device and write code then save and download Manual chose Modern Format then install factorty.bin file
yes or app mobile
yes i think well cheek tomorrow
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?
If between pressing the switch and the other a few seconds the problem does not happen
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
this happens without being attached to the relays?
๐
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
You need to get serial logs to find out what's happening.
where can find this serial logos ?
Plug the device into a computer and use either the web installer or a program like putty to watch the serial port.
Now it is important to keep OTA and API in the code or not ?
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
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
?
?
hello
Where did you get the board the esp32 is attached to - been looking for one just like that- Thanks
you mean the box ?
or shield under esp32
probably means the shield, but sharing info for both might be helpful for others
yes bro
is you mean shield from aliexpress or amazon or you can made it by PCB design if you want PCB design for it i can made it for you
Yes the shield - I bought similar from aliexpress a while ago but the spacing between the rows of pins was wrong for the esp32 devkitv1 board I use
Do you mean you would share your PCB design ๐
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
Do you mean a software or hardware problem?
I think he needs pins ๐ค
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
just connect 3 pin and 2 for VCC and GND
mdc GPIO23
mdioGPIO18
clk_mode: GPIO0_IN
phy_addr: 1
"nothing" happened? You should get some message. Either it fails or it works.
Can you ping that IP address?
Yes, ping on the IP, it doesn't give that there is a connected device and there is no
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? ๐
If you're wanting help with using it, create a thread in #general-support
Fantastic I will do so ๐