Chat
U1:D4U1:D5U1:D12U1:D13U1:D14U1:D15U1:D18U1:D19U1:D4.U1:D21 to SDA on the I²C expander.U1:D22 to SCL on the I²C expander.74HC165 Pin 8 (GND) to U1:GND__1 or U1:GND (ground).74HC165 Pin 16 (VCC) to U1:3V3 (for power).74HC165 Pin 1 (Serial Output, Q7) to a GPIO on ESP32 (let's say U1:D19 for data reading).74HC165 Pin 2 (Clock Inhibit, /INH) to U1:GND to always enable the clock.74HC165 Pin 15 (Clock, CLK) to U1:D18 (for clock signal).74HC165 Pin 11 (Load, /PL) to another GPIO on ESP32 (say U1:D5), to latch the input data.74HC165 Pin 9 (Serial Input, SER) to the Q7 of the preceding register.74HC165 Pins 3 to 7 and Pins 10 to 13) for one 74HC165. If you are measuring more fans, daisy-chain another 74HC165 and continue accordingly.ledcWrite function in the ESP32 Arduino library to generate PWM signals for controlling the fan speeds.ESP32 DEV Kit Template
ahadjamal
copilot
The typical pins on an SSD1306 display are:
Connect the display to the ESP32 as follows: