Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A32M Using GPIO from 4G module for SPI / P9813 board
#1
Hi,

I need to connect P9813 board, which uses serial interface, to A32M board.

Idea

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.
Reply
#2
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.
Reply
#3
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"
Reply
#4
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.
Reply
#5
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?
Reply
#6
4G SIM7600 GSM module:
RXD:GPIO33
TXD:GPIO32
you can use these two pins, if you not need to use 4G module.
Reply


Forum Jump:


Users browsing this thread: