Main page
Recent changes
Band decoder MK2
B
I
U
S
link
image
code
list
Show page
Syntax
!!!PWM (Analog) output '''Activate''' uncomment line {{#define PWM_OUT}} PWM signal output is on '''pin 12, DB-25''' connector. For convert to analog voltage 0-5V need add RC filter to this output. * R '''10k''' * C '''10uF''' [https://remoteqth.com/img/wiki-bd2-26.png|noborder] For each band set PWM output (range 0-255) in table {{ const long PwmByBand[16] = {/* PWM 0-255 */ 0, // #0 OUT of band 15, // #1 [160m] 30, // #2 [80m] 45, // #3 [60m] 45, // #4 [40m] 60, // #5 [30m] 75, // #6 [20m] 90, // #7 [17m] 105, // #8 [15m] 120, // #9 [12m] 135, // #10 [10m] 150, // #11 [6m] 165, // #12 [4m] 180, // #13 [2m] 195, // #14 [70cm] 210, // #15 [23cm] 225, // #17 [13cm] }; }} After assembly, measure the output voltage and adjust the PWM values according to your requirements. '''Warning:''' the output is high impedance, a load of low impedance will affect the output voltage. You can use an OP-AMP buffer for low impedances.
Password
Summary of changes