Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PA15 not working on T102_V1.1 Board but works on wr2 #227

Open
ModuloFS opened this issue Dec 23, 2023 · 2 comments
Open

PA15 not working on T102_V1.1 Board but works on wr2 #227

ModuloFS opened this issue Dec 23, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ModuloFS
Copy link

ModuloFS commented Dec 23, 2023

Hello,

i am using ESPhome to flash my Tekin SP22 smart plug. It has a T102_V1.1 board with an RTL8710BN chip on it. Sadly GPIO PA15, which is driving the Relay is not working. If i change the output in my switch-section of the config yaml of esphome to PA14 the output works perfectly fine. So i think it is not a config problem.

-EDIT-

If i change the board from t102_v1.1 to wr2 the output is working perfectly!! Maybe the board config is not correct.

-EDIT-

BTW. If i want to add the power sensor i also get the same change interrupt error as described in this issue:

#155

Here is my esphome config which is NOT working:

esphome:
  name: esphome-tekin-sp22


rtl87xx:
  board: t102-v1.1

    
logger:

web_server:
    version: 1

mdns:

ota:
  password: ""

wifi:
  ssid: "MY-NET"
  password: "MY-PW"


output:
  - platform: libretiny_pwm
    id: output_led_1
    pin:
        number: PA5
        inverted: true

light:
  - platform: monochromatic
    id: light_switch_1
    output: output_led_1

binary_sensor:
  - platform: gpio
    id: binary_switch_1
    pin:
      number: PA23
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_1

switch:
  - platform: gpio
    id: switch_1
    name: Relay 1
    pin:
        number: PWM1
        mode: OUTPUT
    on_turn_on:
      - light.turn_on: light_switch_1
    on_turn_off:
      - light.turn_off: light_switch_1

status_led:
  pin: 
    number: PA18
    inverted: true

And here is the config which IS working:

esphome:
  name: esphome-tekin-sp22


rtl87xx:
  board: wr2

    
logger:

web_server:
    version: 1

mdns:

ota:
  password: ""

wifi:
  ssid: "MY-NET"
  password: "MY-PW"


output:
  - platform: libretiny_pwm
    id: output_led_1
    pin:
        number: PA5
        inverted: true

light:
  - platform: monochromatic
    id: light_switch_1
    output: output_led_1

binary_sensor:
  - platform: gpio
    id: binary_switch_1
    pin:
      number: PA23
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_1

switch:
  - platform: gpio
    id: switch_1
    name: Relay 1
    pin:
        number: PWM1
        mode: OUTPUT
    on_turn_on:
      - light.turn_on: light_switch_1
    on_turn_off:
      - light.turn_off: light_switch_1

status_led:
  pin: 
    number: PA18
    inverted: true
@ModuloFS ModuloFS changed the title PA15 not working on T102_V1.1 Board RTL8710BN PA15 not working on T102_V1.1 Board but works on wr2 Dec 23, 2023
@kuba2k2 kuba2k2 added the bug Something isn't working label Jan 4, 2024
@fasax1284
Copy link

some problem with PA15 pin not work

@alexl2709
Copy link

I had got the same problem. After the changing name board to wr2 - works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants