Open ladislavkrivy opened 4 years ago
It's quite terrible but good enough for compensating crystal's temperature drift (on small crystals tends to be linear-ish). In my case just with linear compensation by LoRa.setFrequency(F_UPLINK + 150 * LoRa.temperature());
before sending a packet I can easily get away with 20.8k bandwidth.
Yes, to measure the temperature it switches to FSK mode momentarily and restores the mode afterwards. It could be improved if there's a way to check wether the module is currently receiving a packet (trough I'd rather leave user to to this check in the sketch)
Thanks a lot for your code. Let me try next week.
It should be good for LoRa node in outdoor environment?
Cool, It'll be interesting to know whether the temperature characteristic is somewhat similar for those 32M crystals (was for mine but they are probably same batch) or actually it has wilder variance.
Keep in mind the reading is not calibrated so you'll probably need to use frequencyError for initial calibration. I have 3 outdoor nodes at different places and with temperature compensation the system works even when sun hits one of the nodes.
Any chance we can merge this one in?
Should be a good feature to merge in the main.
@ladislavkrivy How good is the builtin temperature? I thought the temperature measure can only be done in FSK mode?