In today's video we are going to take a look at expanding/Increasing the GPIO that is available on a ESP32 by using a Cheap $2 pcf8575 I/O Expander to add a lot more sensors, this will also work for ESP8266 devices.
Code/article
averageautomation.com/how-to-...
00:00 Intro
00:55 pcf8575 I/O Expander overview
01:34 Important Addressing with I2c
04:27 EspHome code to scan devices
05:49 Wiring up the pcf8575 to esp 32
08:10 Scanning connected addresses
08:58 Code in ESPHome with sample sensor
11:52 Testing sensor code
13:13 adding a Relay Code
14:19 Wire up Relay and test
15:51 How to add more relays/sensors
17:15 Outro
Website
averageautomation.com/
________________________
Some of the links above are affiliate links, using the links provided does earn me a small commission if you click on the link and purchase an item.
27 июл 2024