Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A24 ESP32 I/O pin define
#1
#define ANALOG_A1  GPIO35
#define ANALOG_A2  GPIO34
#define ANALOG_A3  GPIO39
#define ANALOG_A4  GPIO36

IIC Bus-1:A

SDA-A:GPIO16
SCL-A:GPIO5

PCF8575:U15 (relay1-12): i2c address:0x21

PCF8575->U15->P0 (relay 1)
PCF8575->U15->P1 (relay 2)
PCF8575->U15->P2 (relay 3)
PCF8575->U15->P3 (relay 4)
PCF8575->U15->P4 (relay 5)
PCF8575->U15->P5 (relay 6)
PCF8575->U15->P6 (relay 7)
PCF8575->U15->P7 (relay 8)
PCF8575->U15->P10 (relay 9)
PCF8575->U15->P11 (relay 10)
PCF8575->U15->P12 (relay 11)
PCF8575->U15->P13 (relay 12)
PCF8575->U15->P15 (CS1 of MAX31855)
PCF8575->U15->P16 (CS2 of MAX31855)
PCF8575->U15->P17 (CS3 of MAX31855)

PCF8575:U27 (relay13-24): i2c address:0x22

PCF8575->U27->P0 (relay 13)
PCF8575->U27->P1 (relay 14)
PCF8575->U27->P2 (relay 15)
PCF8575->U27->P3 (relay 16)
PCF8575->U27->P4 (relay 17)
PCF8575->U27->P5 (relay 18)
PCF8575->U27->P6 (relay 19)
PCF8575->U27->P7 (relay 20)
PCF8575->U27->P10 (relay 21)
PCF8575->U27->P11 (relay 22)
PCF8575->U27->P12 (relay 23)
PCF8575->U27->P13 (relay 24)

PCF8575:U16 (input1-16): i2c address:0x24

PCF8575->U16->P0 (input 1)
PCF8575->U16->P1 (input 2)
PCF8575->U16->P2 (input 3)
PCF8575->U16->P3 (input 4)
PCF8575->U16->P4 (input 5)
PCF8575->U16->P5 (input 6)
PCF8575->U16->P6 (input 7)
PCF8575->U16->P7 (input 8)
PCF8575->U16->P10 (input 9)
PCF8575->U16->P11 (input 10)
PCF8575->U16->P12 (input 11)
PCF8575->U16->P13 (input 12)
PCF8575->U16->P14 (input 13)
PCF8575->U16->P15 (input 14)
PCF8575->U16->P16 (input 15)
PCF8575->U16->P17 (input 16)


PCF8575:U28 (input17-32): i2c address:0x25

PCF8575->U28->P0 (input 17)
PCF8575->U28->P1 (input 18)
PCF8575->U28->P2 (input 19)
PCF8575->U28->P3 (input 20)
PCF8575->U28->P4 (input 21)
PCF8575->U28->P5 (input 22)
PCF8575->U28->P6 (input 23)
PCF8575->U28->P7 (input 24)
PCF8575->U28->P10 (input 25)
PCF8575->U28->P11 (input 26)
PCF8575->U28->P12 (input 27)
PCF8575->U28->P13 (input 28)
PCF8575->U28->P14 (input 29)
PCF8575->U28->P15 (input 30)
PCF8575->U28->P16 (input 31)
PCF8575->U28->P17 (input 32)

-----------------

1-wire: GPIO15

-----------------

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT

--------------------

RS485:
RXD:GPIO32
TXD:GPIO33

4G module:
RXD:GPIO13
TXD:GPIO4

--------------------
SPI bus for MAX31855
SCK: GPIO14
MISO: GPIO12

-------------------
GP8403 DAC i2c address: 0x58
Reply


Messages In This Thread
A24 ESP32 I/O pin define - by admin - 12-18-2023, 11:28 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)