LilyGO TTGO T3 LoRa32 433MHz V1.6.1 ESP32 as 433RF reciever

hello ,

i want to create a yaml file that show rf433 messages that it recieves into the log.
the esp i use is : LilyGO TTGO T3 LoRa32 433MHz V1.6.1 ESP32

it has all hardware onboard , because when i flash it with
openmqttgateway
then i recieve many messages from the area where i live.

I use GPIO26 as input , according to this schematic : pcb layout

and my esphome code is the default yaml

remote_receiver:
  pin: GPIO26
  dump: all
  # Settings to optimize recognition of RF devices
  tolerance: 50%
  filter: 250us
  idle: 4ms
  buffer_size: 2kb

what can i do better ?
do i need to setup miso and mosi etc ?

thx in advance

2 Likes

If you’re interested, it’s possible to include only the 433MHz devices you want and exclude all others. I helped someone else with the same issue here.

It can be done manually or with an automation.

and how to create a esphome-yaml , so i can use my ttgo for other things , such as binary sensors , oled lcd etc??

when i use other firmware i cant control my free gpio and lcd to my custom items

You’re right.

I didn’t know that you wanted to do other things with the LilyGO TTGO T3 LoRa32 433MHz V1.6.1 ESP32. Your first post gave me the impression you only wanted to use it for receiving data from 433MHz devices because you had tried it with openmqttgateway firmware. However, I overlooked to notice that you posted this in the ESPHome category so you intend to use it with firmware customized for your specific requirements.

Sorry for the misunderstanding. Hopefully someone else will help you soon with your ESPHome question.

no problem , thanks anyway
and also openmqttgateway was a test so i know that my hardware works fine…
now the software :wink:

I don’t think the sx12XX chips are supported yet in core ESPHome… it looks like there is a custom component.

thank you !!

Hi
can this device only be used as a receiver? or also as transmitter?!

The custom component for ESPHome linked above supports both receiving and transmitting… OpenMQTTGateway only supports receiving on this device.

2 Likes

hi
how do i install this custom component? I saw there only 2 files

1 Like

thank you, will try that

external_components:
  - source:
      type: git
      url: https://github.com/swoboda1337/sx127x-esphome
      ref: main
    refresh: 1d

spi:
  clk_pin: GPIO5
  mosi_pin: GPIO27
  miso_pin: GPIO19

sx127x:
  nss_pin: GPIO18
  rst_pin: GPIO23
  frequency: 433920000
  modulation: OOK
  rx_floor: -90
  rx_bandwidth: 50_0kHz

remote_receiver:
  pin: GPIO32
  #filter: 255us
  #idle: 2000us
  #buffer_size: 100000b
  memory_blocks: 3 #8
  dump: 
    - rc_switch
    - raw

thanks, i was able to use this integration
however, this receiver gets bombarded with all RF433 in my neighborhood…
Not sure how i can filter what i want with this configuration
I eventually reverted to using OpenMQTT Integration, where I can create sensor based on topics, etc

Hello

Hope someone can help me, i receives but can’t send
Can’t find which pin to use, gpio 33 was the one I found that should work.

esphome:
  name: esphome-web-f64384
  friendly_name: ESPHome Web f64384
  name_add_mac_suffix: False

esp32:
  board: esp32dev
  framework:
    type: arduino

external_components:
  - source:
      type: git
      url: https://github.com/swoboda1337/sx127x-esphome
      ref: main
    refresh: 1d

spi:
  clk_pin: GPIO5
  mosi_pin: GPIO27
  miso_pin: GPIO19

sx127x:
  nss_pin: GPIO18
  rst_pin: GPIO23
  frequency: 433920000
  modulation: OOK
  rx_floor: -90
  rx_bandwidth: 50_0kHz

remote_receiver:
  pin: GPIO32
  #filter: 255us
  #idle: 2000us
  #buffer_size: 100000b
  memory_blocks: 3 #8
  dump: 
    - rc_switch
    - raw

remote_transmitter:
  pin: GPIO33
  carrier_duty_percent: 100%



button:
  - platform: template
    name: "RF Power Button"
    on_press:
      - remote_transmitter.transmit_rc_switch_raw:
          code: '1010101010100110100110010101010110011010100101010110100110101010'
          protocol: 8
          repeat:
            times: 10
            wait_time: 0s

Hi,
I have a question,
I’ve used LoRA end devices with OpenMQTT GW before and the OpenMQTT GW supports a 1 to many arrangement (1 G/W to many LoRa End Devices).
I’m less familiar with ESPHome.

What is this arrangement with ESPHome using the LilyGo and custom component, is it 1 to 1 (one LilyGo as the HA Device and one LoRa end device I guess as the sensor entity) or can their be many LoRA end devices connected to the LilyGO?

Thanks!

If you haven’t given up, this is how I was able to get this to transmit:

external_components:
  - source:
      type: git
      url: https://github.com/swoboda1337/sx127x-esphome
      ref: main
    refresh: 1d

spi:
  clk_pin: GPIO5
  mosi_pin: GPIO27
  miso_pin: GPIO19

sx127x:
  nss_pin: GPIO18
  rst_pin: GPIO23
  frequency: 433920000
  modulation: OOK
  rx_start: true
  rx_floor: -90
  rx_bandwidth: 50_0kHz
  pa_pin: BOOST
  pa_power: 17

remote_transmitter:
  pin: GPIO32
  carrier_duty_percent: 100%
  on_transmit:
    then:
      - sx127x.set_mode_tx
  on_complete:
    then:
      - sx127x.set_mode_standby

button:
  - platform: template
    name: rfswitch
    on_press:
      then: 
        - remote_transmitter.transmit_rc_switch_raw:
            code: '111000010010100100101000'
            protocol: 1
            repeat:
              times: 4
              wait_time: 0s

I gave up for a while, but now I’ve got it working to transmit.
I read all the RF codes, deleted the reciver function and then copied your settings.
So now I can transmit.

Thanks