Exemple code LiLYGO T3_V1.6.1 #820
Replies: 4 comments 4 replies
-
I'm not familiar with that board, so here's a couple generic ideas:
|
Beta Was this translation helpful? Give feedback.
-
A couple of code suggestions ( I’m not sure if your meter is supported though ) This library decodes a lot of 433 MHz device signals with that board /~https://github.com/NorthernMan54/rtl_433_ESP And this package wraps it into a slick framework |
Beta Was this translation helpful? Give feedback.
-
Thanks for the replies, I'm still trying with this. |
Beta Was this translation helpful? Give feedback.
-
Hi All I'm also tinkering with this lilygo T3_V1.6.1 module, and I made some progress which I thought I'd share. The pinout for the sx1276 LORA module is shown below. If you hold the LILYGO board with the antenna pointed down, then vcc pin is on the right side. One problem that I found is that it seems like something wrong with the SPI pin definitions. Debugging with a Serial.printf hightlights the problem: void setup() { Then the output looks like this: rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) Notice how the ESP32 thinks that MOSI, clock, and chip select pins are 23, 18, and 5 respectively, but according to the pinout diagram they've been assigned as 27, 5, and 18. Check out the manual for the LILYGO T3_V1.6.1 here https://www.manualslib.com/download/2830608/Lilygo-T3-V1-6-1.html. Good news is I managed to get the RadioLib SX127x examples working by manually connecting dio1 and io34 as shown below and changing the code a little as shown below. Had to change dots to arrows because of something to do with pointers. I hope this is helpful. More good news is this unit works just fine without any extra wires using the openMQTTgateway with LORA enabled (upload from the web and use the ttgo-lora32-v21 option). I tested it and homeassistant can receive json LORA messages. #include <RadioLib.h> //LILYGO/TTGO T3_V1.6.1 board pinout SPIClass newSPI(HSPI); void setup() { //define hardware SPI pins Serial.printf("MISO: %d, MOSI: %d, SCK: %d, SS: %d\n", MISO, MOSI, SCK, SS); // initialize SX127x with default settings // set carrier frequency to 433.5 MHz // set bandwidth to 250 kHz // set spreading factor to 10 // set coding rate to 6 // set LoRa sync word to 0x14 // set output power to 10 dBm (accepted range is -3 - 17 dBm) // set over current protection limit to 80 mA (accepted range is 45 - 240 mA) // set LoRa preamble length to 15 symbols (accepted range is 6 - 65535) // set amplifier gain to 1 (accepted range is 1 - 6, where 1 is maximum gain) Serial.println(F("All settings successfully changed!")); void loop() { |
Beta Was this translation helpful? Give feedback.
-
I would like some help. I tried several sample codes but I couldn't get an interrupt to work with the LILYGO T3_V1.6.1 module. Can anyone provide code that works? Usage is for FSK wmbus mode T. I will try to decode an IZAR 433 water meter.
Beta Was this translation helpful? Give feedback.
All reactions