New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the drive level of tune doesn't work. #279
Comments
I don't think that I can do anything about this problem. It's a known limitation of the Red Pitaya board. Red Pitaya does not have any hardware for the drive control. I suppose that some kind of variable or fixed amplifier or attenuator should be used to adjust the output level. I've seen a nice set of fixed value SMA attenuators at the FUNKAMATEUR online shop: Another idea discussed on the Red Pitaya forum was to use the OUT2 output to control an external amplifier: |
Maybe this could be used : AD8321 or a replacement for it. I have still 2 in the my junkbox. |
AD8324 could be used 3.3V supply or AD8325 5V supply. |
Advantage of the ADXXXX is that it is to be programmed by SPI. |
I've just found an interesting article about a variable attenuator based on HSMP-3816. Looks like it works quite well between -4 and -20 dB. |
I think that a pin diode attenuator could be combined with a small SPI or I2C DAC like AD5601 or AD5602. |
Both solutions could be tried out and see what is best. Always available for testing -;) |
Pavel, PE4302 Digital RF step attenuator. This could be used in the TX path and also in both receiver paths and is not so expensive. |
Hello Pavel, http://wiki.redpitaya.com/index.php?title=Command_line_utilities Here i found that via the command line utility it is possible to set the amplitude of the generated signal:
Is that not something that can be implemented in the transceiver also for the output drive ? Rgds |
The generate program scales the signal digitally before it's sent to the DAC. In case of SDR applications, I don't think that scaling the input to the DAC is a good idea. It decreases the effective DAC resolution, SNR, etc. Then it depends on what exactly you want to achieve. If it's just for the test signals, then it's possible to generate digitally scaled test signals with via Setup/Tests. Level controls amplitude. Freq # 1 and Freq # 2 can be set to 0 to generate only one frequency. If it's for the transmitted signals, then with Radio Model set to HPSDR the signals can be digitally scaled with the Drive slider. |
Well we had a discussion here at the QRL and indeed scaling the DAC, you will pay in resolution SNR etc. So you say that with the type of radio set to HPSDR iso hermes the output level can be changed with the drive slider ? |
Here is what is written in HPSDR - USB Data Protocol :
|
Pavel, The output of the DAC could be changed by putting in serie with the resistors used in AVIRES and BVIRES (R47 and R48 ) a FET like is done with some DDS chips. Hence it would be possible to drive the fet with a DC voltage and control the output voltage of the DAC and still keep the resolution etc. Much simpler then using the AD chips or PIN diodes. Of course this needs some soldering on the red pitaya. Rgds |
Yes, it's similar to how it's done on the Hermes board:
If I'm not mistake FSADJ is similar to AVIRES and BVIRES. |
code changed for the HW modification. |
Great! I've added this code with a few minor changes to my repository: 384c6b0. I've just replaced the 8-bit command 0xAF with the 16-bit command 0xA9. |
Pavel, 73 de ON3VNA |
Pavel, You have us all very curious. I was wondering if you could publish a
Inquiring minds are REALLY curious! Thanks, Steve KA6S On Thu, Sep 15, 2016 at 1:14 AM, on3vna notifications@github.com wrote:
|
Yes, the slow analog inputs are used for the Fwd and Rev power measurement. Fwd - Analog input 0, Rev - Analog input 1.
The I2S interface is sharing pins with the ALEX interface. So, the two can't be used simultaneously.
It's what I didn't want to implement initially but after all I've added a multiplier just before the DAC interface. This way the DAC samples are scaled down digitally. The scale factor is controlled by the Drive slider in PowerSDR mRX PS. |
Thank you Pavel - that helps greatly! Steve On Sat, Sep 17, 2016 at 2:28 PM, Pavel Demin notifications@github.com
|
When setting the TUNE level in the transmit options to 10 we would assume that the output power would be 10% of the maximum output level.
There is no change at all in the output level it is always fulll transmit power.
The text was updated successfully, but these errors were encountered: