Modifications

Sauter à la navigation Sauter à la recherche
481 octets ajoutés ,  27 février 2022 à 23:09
Ligne 100 : Ligne 100 :     
=== Transmission Power ===
 
=== Transmission Power ===
The transmission power is set with the function call.
+
The transmission power is set to 13 dBm by default (it is safer across all RFM modules, the library also work for RFM95).  
   −
The range of power is 14 to 20 (in dBi). Lowest values requires less power. Means higher battery life but also smaller transmission distance.  
+
The transmission power can be set from 14 to 20 dBm by assigning the {{fname|tx_power}} property.
   −
<syntaxhighlight lang="c">rf69.setTxPower(20, true);</syntaxhighlight>
+
Lowest values requires less power. Less power means higher battery life but also smaller transmission distance.  
   −
Notice: the second parameter concerns the HCW radio modules and indicates that extra amplifier is present.
+
<syntaxhighlight lang="python">rfm = RFM69( spi=spi, nss=nss, reset=rst )
 +
# rfm.tx_power = 13  # 13 dBm = 20mW (default value, safer for all modules)
 +
rfm.tx_power = 20 # 20 dBm = 100mW, 20 dBm for FRM69HW only</syntaxhighlight>
    +
{{underline|Tips & Tricks:}}<br />It is possible to estimate the transmission power (in milliWatts) by using the following function.
 +
 +
<syntaxhighlight lang="python">def dbm_to_mw(dBm):
 +
""" Transform the power in dBm to its equivalent in milliWatt """
 +
return 10**((dBm)/10.)</syntaxhighlight>
    
{{ENG-CANSAT-PICO-TRAILER}}
 
{{ENG-CANSAT-PICO-TRAILER}}
29 917

modifications

Menu de navigation