Hello, I am using ADAR1000 but unfortunately, there is no reference source code. I could not find anywhere. Just we have SPI PROGRAMMING EXAMPLE in the Datasheet. I want to make and control the SPI communication protocol without using GUI. Can you provide example source code?
Source code emailed.
Please also send me the source code, this would help a lot.
Hi, just one question, the code you sent me for the GPIOs...it´s for the interface SDP, right? I want to control the ADAR via SPI and Raspberry Pi...
No, we don't have anything similar in python.
It looks like you could make your own based off of the one done for the AD9850?
Yes, all code including the GPIO control, is to control the SDP.
Yes thank you very much, I think its possible and not difficult to implement it....my only question is, that I dont know how to write the adresses...for example there is the following function to send a byte:
A few things:
So, I think you'd want to change the tfr_byte2() to something like this (changed in bold):
GPIO.output(CSB, false) #Pull the CSB low to enable the SPI port for i in range (0,24): GPIO.output(DATA, data & 0x01) pulseHigh(W_CLK) data=data>>1 GPIO.output(CSB, true) #Pull the CSB high to disable the SPI port
You will need to take care of the CSB-to-GPIO pin number mapping in your code.
Also, in your initialization code of the GPIO lines, you'll want to start the CSB pulled high with:
GPIO.output(CSB, true) #Pull the CSB high to disable the SPI port
No guarantees that this works, but it should give you a pretty good start. Hope this helps.
hi jdobler, I have one question...with the ADAR1000 you also can set up the phase assignment. With the phase assignment you can choose your maxima of azimut and elevation angle...
Could you give me an advice how I can realize an elevation angle of 20 degrees for example with the phase assignment?
Thanks in Advance
This is very system dependent. I would recommend taking a look at: https://en.wikipedia.org/wiki/Phased_array