![]() |
|
KC868-A16v3 ESP32-S3 IO pins define - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A16v3 (https://www.kincony.com/forum/forumdisplay.php?fid=68) +--- Thread: KC868-A16v3 ESP32-S3 IO pins define (/showthread.php?tid=7614) Pages:
1
2
|
KC868-A16v3 ESP32-S3 IO pins define - admin - 02-15-2025 ANALOG_A1 4 ANALOG_A2 6 ANALOG_A3 7 ANALOG_A4 5 IIC Bus: SDA:GPIO9 SCL:GPIO10 Relay_IIC_address 0x24 Relay_IIC_address 0x25 Input_IIC_address 0x21 Input_IIC_address 0x22 24C02 EPROM i2c address: 0x50 DS3231 RTC i2c address: 0x68 SSD1306 display: i2c address:0x3c ----------------- 1-wire (pull-up resistance on PCB): 1-wire1:GPIO47 1-wire2:GPIO48 1-wire3:GPIO38 free GPIOs (without pull-up resistance on PCB): free gpio-1:GPIO39 free gpio-2:GPIO40 free gpio-3:GPIO41 ----------------- Ethernet (W5500) I/O define: clk_pin: GPIO42 mosi_pin: GPIO43 miso_pin: GPIO44 cs_pin: GPIO15 interrupt_pin: GPIO2 reset_pin: GPIO1 -------------------- RS485: RXD:GPIO17 TXD:GPIO16 -------------------- SD Card: SPI-MOSI:GPIO12 SPI-SCK:GPIO13 SPI-MISO:GPIO14 SPI-CS:GPIO11 SD-CD:GPIO21 -------------------- RF433MHz wireless receiver: GPIO8 RF433MHz wireless sender: GPIO18 free gpio on PCB (beside ESP32-S3 module) GPIO39 GPIO40 GPIO41 RE: KC868-A16v3 ESP32-S3 IO pins define - kotyara12 - 06-09-2025 Hi! How can I get the schematic for this board version? It will make it easier to develop firmware for it. And another question: why don't you want to output interrupts from the input expanders to the ESP32? They are very necessary! RE: KC868-A16v3 ESP32-S3 IO pins define - admin - 06-09-2025 send me your email. ESP32 use PCF8574 enough work well without interrupt pin. RE: KC868-A16v3 ESP32-S3 IO pins define - kotyara12 - 07-05-2025 (06-09-2025, 09:27 AM)kotyara12 Wrote: Hi! Hi! I have to disagree with you. The lack of interrupts does not allow writing a handler for a pulse counter. For example, for a water flow counter or wind speed counter. In addition, the lack of interrupts forces the programmer to poll the chip too often than necessary. You wouldn't refuse a doorbell in your house instead of walking around and checking if there is anyone at the door every 5 minutes. On the old version (KC868-A16), I had to do some magic with the board to fix this problem on one of the two input expanders. I used the pin occupied by the RS433 receiver for this, which I do not need. On the new version of the board, this is a little easier to do, since there are several free GPIOs. But you still have to pull the wire. RE: KC868-A16v3 ESP32-S3 IO pins define - kotyara12 - 07-05-2025 And I also don't like the protection scheme of the A and B RS485 lines: https://kotyara12.ru/wp-content/uploads/esp32-thslcd/ths02rs485.png Thermal fuses are placed BETWEEN the connector and the TVS diodes, and not between the TVS diodes and the chip, as you have done. In your version, this is pointless. RE: KC868-A16v3 ESP32-S3 IO pins define - tobi.gubo - 07-07-2025 Can you tell me the GPIO id of the RS485 RTS pin for switching between sending and receiving data? RE: KC868-A16v3 ESP32-S3 IO pins define - admin - 07-07-2025 this RS485 circuit of KC868-A16v3. RE: KC868-A16v3 ESP32-S3 IO pins define - tobi.gubo - 07-08-2025 The pins RE and DE of the MAX13487 are used to controll the data flow between sending and receiving. They are linked to vcc with RE inverted so it is always set to sending data. Since you are providing example code with also receiving data does this mean this chip automatically switches between sending and receiving? It looks like it here: https://www.analog.com/en/products/max13487e.html RE: KC868-A16v3 ESP32-S3 IO pins define - admin - 07-08-2025 here is RS485 arduino demo source code for KC868-A16v3: https://www.kincony.com/forum/showthread.php?tid=7385 RE: KC868-A16v3 ESP32-S3 IO pins define - kotyara12 - 07-09-2025 (07-07-2025, 10:58 PM)admin Wrote: this RS485 circuit of KC868-A16v3. I would unsolder resistor R82 and connect the control circuit to some ESP32 output with a wire. It will work much more reliably. And I don't like the implementation of input protection on these boards (it's like that everywhere, unfortunately), which does not protect TVS diodes. If you accidentally apply +12 or higher to lines A or B for a long time, then the protective diodes will simply overheat and burn out, and the fuses will not even be able to work. Therefore, it is better to put additional self-restoring fuses outside the 0.1A board, on the connector. It's a mess, but better than nothing |