Arduino backend antenna switch and attenuator option for Kiwi v1
Hi,
I have a relay board controlled by arduino backend (bit modified for my needs and running on a esp32) for switching antennas. Initially I've installed a fixed 10dB attenuator which I can put in line using 2 relays and one antenna selection button on the kiwi is for the att. Noticed that in some occasions there would be a need for more or less attenuation.
Now I'm playing with a digital variable attenuator F1956NBGI I've got from Farnell for abt. 8 Eur. It can be set from 0 to 32dB by SPI bus. To set its attenuation for now I'm using the option to send additional CURL command available in the ant extension setup (great feature for controlling external added stuff). For example <ESP32 IP ADDRESS>/?cmd=a10 and MCU sets the att to 10dB.
For me having access to the admin console is not a problem to change the att value to any I want but other users cannot. In the future would be possible to implement the use of the attenuator slider for Kiwi1 which would send CURL commands for external attenuator? The slider is already there but of course can be used only with Kiwi2 with onboard att.
For the Kiwi to know what attenuation is set is not a problem that arduino replays with att setting as its reports which antennas are set.
Controlling the attenuator trough CURL commands and arduino can be replicated also by others. Just by adapting arduino code can be used with other att ICs. Mostly they use SPI or parallel bus to set required attenuation.
73 Andrej - s57rw