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

SX1278 LNA Gain #523

Open
73-de-LZ opened this issue Feb 14, 2025 · 0 comments
Open

SX1278 LNA Gain #523

73-de-LZ opened this issue Feb 14, 2025 · 0 comments

Comments

@73-de-LZ
Copy link

73-de-LZ commented Feb 14, 2025

Looking trought the datasheet of SX1278 and RX_FSK.ino i found that LNA Gain is controlled by "RegLna 0x0C" and it is initialized once with that line in RX_FSK.ino:
sx1278.setLNAGain(0);
trought sx1278.cpp in the register should be written 0x20 or 0b00100000, which is perfectly fine for highest LNA gain.
Further this value will be changed by internal AGC, as it is enabled for some sondes.
But the interesting part of that register 0X0C is the last two bits, as described in the manual:

bits 1-0 --> LnaBoostHf High Frequency (RFI_HF) LNA current adjustment
00 --> Default LNA current
11 --> Boost on, 150% LNA current

And they are not changed by AGC. As i can't see this register to be changed anywhere else in the code i did this modification in RX_FSK.ino:

//sx1278.setLNAGain(0);
sx1278.writeRegister(0X0C, 0b00100011);

I did a test during sonde flights with two identical TTGO boards, fed by splitter from the same RF signal and i was unable to see undeniable difference of RSSI, but I have well filtered LNA, which i can't remove from the test setup easily. I did also try to measure the current, drawn by the boards, but since WiFi is working, it was hard to distinguish any difference also, so if somebody can do some real test and tell if there are some RX improvements, would be great to share the results here. More current could improve IP3 of the LNA also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant