I’ve just started up using XB24-Z7 modules for a simple experiment for my school project.
I’m using pin 6 output for obtaining RSSI value but even though I’m getting values from the pin, the values does not really make sense for me and I’m quite puzzled.
As a comparison, I observed the RSSI value in dB using AT command and the value decreases as the distance increases as expected.
However, when I used pin 6 out the followings were the values I got: 3ft-48%, 6ft-28%, 9ft-49%, 12ft-35% and 15ft-32%. There may be a few percent differences but the results I got were quite consistent.
If I simply use the values that got to convert them to get dB, the results become very low. If i’m not mistaken, even at 3ft, the value is below -80. So not only the trend does not any similarity to the result using AT command, but also the dB converted values are way too low.
Another thing that I’m not clear about is that up to 6ft, the counts for one square wave length was 2400 but it became 1200 at and after 9ft. So actually the % calculations that I mentioned above is base on 1 wave length for the first two measurements and two wave length for the 3rd and after.
I’m just kind of lost at this point. I hope anyone can point me out to the right direction so that i can actually use pin6 output for obtaining right RSSI dB values.
I may be making very stupid mistake but I don’t have any clue.
Thank you for your time and help in advance.