Showing posts with label Adalm pluto. Show all posts
Showing posts with label Adalm pluto. Show all posts

Thursday, 26 November 2020

Locking the Adalm Pluto to an external reference (Part 3; Software challenges)

 Having got the hardware finished it was time to convince the Pluto that it had a 50MHz NOT 40 MHz reference. This was easier said than done! 

It took 6 hours of internet research and trials before a working solution was finally found at https://tbspace.de/plutosdrclockinput.html  AND which would survive a pluto power down. 

The final solution was to execute the following on the pluto. No idea why it works or what it does, but it solved my problem

fw_setenvadi_loadvals fdt addr fit_load_address } && fdt get value fdt_choosen

/ fit_config }/ fdt && fdt get addr fdtaddr / fdt_choosen } data && fdt addr

fdtaddr }; if test ! n ${ad936x_skip_ext_refclk}; then if test n ${ad936x_custom_refclk}; then

fdt set /clocks/clock@0 clock frequency ${ad936x_custom_refclk}; elif test n

${ad936x_ext_refclk}; then fdt set /clocks/clock@0 clock frequency ${ad936x_ext_refclk}; fi; fi; if

test n ${model}; then fdt set / model ${model}; fi; if test n ${ attr_name } && test n ${ attr_val };

then fdt set /amba/spi@e0006000/ad9361 phy@0 ${ attr_name } attr_val };

fw_setenvad936x_custom_refclk "<50000000>"

To check if the changes were successful, we can read the device-tree:

cat /proc/device-tree/clocks/clock@0/clock-frequency | xxd

the response was

# 00000000: 02FA F080 .}x@

02faf080 is 50000000 in hex, Success

Having got the Pluto to work with the external reference I spent some time adjusting levels. It was suggested  on the internet that the pluto needed 0 to 10dbm to achieve lock but I found it needed much less than that, it would lock down to -22dbm input. I adjusted the output attenuator in the DFS50 to produce -10dBm output on mine

Sunday, 22 November 2020

Locking the Adalm Pluto to an external reference (Part 2)

 Having worked out how to inject the external reference the next question was what frequency to inject. Should I use 40MHz like the original?  Looking in my junk box I found a G4HUP DFC30 unit which takes a 10MHz reference and provides a 30MHz output. I tried retuning the output filter to 40MHz but the multiplier was very ineficent at times 4. So i tried retuning the output filter to 50MHz which worked fine. The reference was to be 50MHz

In my parts collection I found a 10MHz oscillator which could be used to drive the multiplier when no external reference was available. It also had a relay to switch between internal and external reference.

The 10MHz oscillator and DFS30 as deployed in the Langstone:-



That is the hardware done, next to get the 50MHz reference in the software!

Friday, 20 November 2020

Locking the Adalm Pluto to an external reference (Part 1)

 Having finished boxing up the Langstone Transceiver  which is based on an Adalm Pluto SDR, the next step was to improve frequency stability.

Some have tried changing the reference 40 MHz oscillator to a more stable device. The preferred device is very small and i can imagine the damage caused by taking out the old oscillator.

Others have tried feeding in an external 40MHz GPS locked signal. One discovery from here was that the existing oscillator has an enable/disable pin so it can be left in place when an external signal is injected. This is thr chosen route


Note that C123 and C124 form a potential divider to reduce the output level of the oscillator. However C124 is not fitted but it does provide solder pads to mount another 180pf 0603 capacitor (I am not brave enough to try an 0402 size!) through which to inject the external reference

This is how mine ended up:-



Note that the braid of the coax cable through which the reference is injected is soldered to the groundplane in two positions. This is to prevent the 0603 capacitor being ripped off the board if the cable moves.

Saturday, 15 February 2020

The Langstone Narrowband Transceiver with Pluto and RPI 4


At the RAL TV meeting last year G4EML demonstrated a narrowband transceiver ("Hayling") using a raspberry Pi 4 a 7" LCD screen USB soundcard and an Adalm Pluto. Talking to G8GTZ at the recent Didcot Rally I found that the code has been uploaded to github ("Langstone")so on my return from the rally I decided to try it out.

The first attempt at building the code resulted in a no frequency display on the screen. The log seemed to be objecting to my USB sound card, so I changed it for another one I had and I was getting  the frequency readout but no audio

I then noticed that the display seemed to think I was on transmit. I consulted with G4EML and found that there should have been a pullup resistor on the GPIO PTT input pin. With this modification the display indicated RX and i got receive audio and could hear signals

I took a listen to my transmit signal. The dots sounded fine but i discovered the centre button on a 3 button mouse was needed to send CW, which I didnt have. I got no audio on transmit until I discovered the USB sound card mic input needed a computer headset (electret) microphone rather than my (dynamic) heil headset 

To try it out on the air I hooked up a 3W 1296MHz module and had a nice 2 way qso with a local on the band

I mentioned my findings to G4EML who updated the code to have a key input and a PTT output to drive an amplifier. He also added band output pins to auto switch external amplifiers and preamplifiers

I was then interested  to see how the system would work as a microwave IF. I connected it the radio on 144MHz to my 5760 to 144MHz Transverter and could hear the GB3OHM beacon on 5760.9MHz on a horn antenna. I then realised the pluto works directly on 6cm so I connected it directly to the horn antenna and could hear nothing. I then used the KX3 and the transverter to calibrate the Pluto and found there was a 65kHz offset, on which frequency I could just detect GB3OHM. I dug out a DEMI ATF36077 preamp and put that infront of the Pluto and the beacon became quite readable

All that is needed now to make the rig suitable for portable operation is a panoramic display!

Thursday, 13 December 2018

RBTV Expedition to Titterstone Clee

To coincide with the BATC activity weekend on 9th December I decided to go and see what could be worked from Titterstone Clee, IO82QJ. especially as G8GTZ said he was going to Win  Hill IO80XH which would allow an attempt on the 71MHz RBTV UK Record. I also packed a 2m system

4m Antenna system 5 ele Powabeam at 5m
DVBS Signals from Noel were successfully received on 4m using the 71MHz/435MHz Nacton Transverter and Noel had little trouble seeing my transmission using the Portsdown to drive the Transverter, extending the UK distance record to 160km. I then took the 4m antenna down and put up the 2m antenna. I used the contest MHP with the HA8ET preamp that supplied some pre-selection for the minituner. Unfortunately the Portsdown Transmitter couldnt produce any 2m output, so I switched to the Adalm Pluto. This enabled me to generate a signal so Noel could see me and give me my 1st 2m DATV QSO

2m antenna system 9 ele Tonna @ 5m
The G8GTZ 2m signal from 160km