KC868-A32M Using GPIO from 4G module for SPI / P9813 board - 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-A32M (https://www.kincony.com/forum/forumdisplay.php?fid=49) +--- Thread: KC868-A32M Using GPIO from 4G module for SPI / P9813 board (/showthread.php?tid=6500) |
KC868-A32M Using GPIO from 4G module for SPI / P9813 board - giliardi - 08-28-2024 Hi, I need to connect P9813 board, which uses serial interface, to A32M board. I wondering if I could use the GPIO33 AND GPIO32, both from 4G A32M`s RX AND TX, to expose to SPI and configure Esphome like bellow: spi: clk_pin: GPIO33 mosi_pin: GPIO32 id: spi_a32m light: - platform: spi_led_strip name: "P9813 RGB LED" num_leds: 1 default_transition_length: 1s spi_id: spi_a32m Thanks in advance. RE: KC868-A32M Using GPIO from 4G module for SPI / P9813 board - admin - 08-28-2024 SPI bus usually have 3 wires, MISO,MOSI,CLK. are you sure two pins is enough? i think you can confirm with your P9813 module's seller. RE: KC868-A32M Using GPIO from 4G module for SPI / P9813 board - giliardi - 08-28-2024 P9813 has 4 pins: VCC GND DIN - Digital Signal Input pin CLK - Serial Clock Input pin I think the correct config options are: light: - platform: fastled_spi chipset: P9813 data_pin: GPIO33 clock_pin: GPIO32 num_leds: 1 rgb_order: BRG name: "FastLED SPI Light" RE: KC868-A32M Using GPIO from 4G module for SPI / P9813 board - admin - 08-28-2024 i am not sure this can work, i never see a SPI bus only have two wire. But you can test, need practice, now i can't say whether can work. RE: KC868-A32M Using GPIO from 4G module for SPI / P9813 board - giliardi - 08-28-2024 Can you confirm if I am using the pins on the A32M correctly? Also, could you indicate which physical pin on the 4G socket I should use to test? RE: KC868-A32M Using GPIO from 4G module for SPI / P9813 board - admin - 08-28-2024 4G SIM7600 GSM module: RXD:GPIO33 TXD:GPIO32 you can use these two pins, if you not need to use 4G module. |