Displaying report 1-1 of 1.
Reports until 15:57, Wednesday 07 February 2024
Electronics General
dorot3a - posted 15:57, Wednesday 07 February 2024 (11502)
Externally clocking Red Pitaya with LTC6754 board
This is a short guide on setting up an externally clocked Red Pitaya using an LTC6754 comparator board to convert an analog clock signal to the required LVDS logic signal. 

Setting up the LTC6754:

We want a differential output on this board, which requires a few small alterations. Desolder R20 and R21 and move the resistors to the R22 and R23 pads. This removes the antennas going to J1 and J4 (out+, out- respectively) and sends the input to two of the pins on J6 (see image). I added a header to these two pins to connect a jumper cable; this is probably not the ideal connector to use permanently but it was convenient. This will be the differential clock output from the comparator board. The pin closer to the edge of the board is the negative output, although I don't think this is particularly important as long as you're consistent about the positive and negative outputs across each RP. 
We don't need to worry about J3/out-, as the board comes with this trace unconnected. Connect in+ to a BNC tee. Terminate one side with 50Ω and connect the other side to a signal generator running a 125MHz, .2Vpp signal. Finally, connect the VCC0 and VCC1 and their respective grounds each to a power supply at ~3V. These boards will short out so make sure to check the voltage levels on the power supply before connecting it and to hook up the board with the power supply off. We should now have a suitable clock source for the Red Pitayas. 

Setting up the Red Pitaya:

Follow instructions here to connect the RP to your computer: https://redpitaya.readthedocs.io/en/latest/quickStart/connect/connect.html.
I find it easiest to use a direct wired connection when first setting these up. Make sure the SD card is in the slot. The clock input pins are the second row on the RHS when looking at the RP with the RF connectors pointed up (see pinout here: https://redpitaya.readthedocs.io/en/latest/developerGuide/hardware/125-14_EXT/top.html). All we need to do is power the RP, power the LTC6754, and use two jumper cables to connect the differential output of the LTC6754 and the clock pins on the RP. 

Check your connection by typing the RP-xxxxxx.local address on the ethernet port of the RP into your browser. It should load the host page for the RP. Note that the RPs take some time to 'warm up' and connect. You can usually tell the RP is ready when the red indicator LED next to the ethernet port stabilizes to a heartbeat pattern. Once the host page loads, you have succeeded and can now use the RP to do your bidding.


I was able to load and connect to two RPs at once using the same LTC6754 board by using a splitter between the diff output and the two clock inputs. I haven't tried to clock more than 2 from the same LTC6754. 

Connecting to PyRPL:

From the host webpage, navigate to system > network manager and copy the IP address of the RP. Use this as the hostname to connect through PyRPL. The IP address will change based on how you have your network set up/how the RP is connected, so check via the host page every time you change anything about the connection. You can verify the IP by typing it into the browser; it should also load the host webpage. Do not attempt to use the 'default' IP on the RP setup website. It will not work, even though the documentation says it will.

As of today I've only been able to successfully connect to a single RP at a time through PyRPL, but I believe this is a networking issue because I'm not able to connect to either RP individually through PyRPL the way I have them networked, although I can connect to both via browser. 

Some notes: 

Sometimes the RP connections will be very slow, or not connect at all. If this is happening, some things that might help are: power cycling the RP, checking your ethernet cable/switching it out, and reflashing the SD card. If the red indicator light isn't normalizing to a consistent heartbeat pattern, it might be due to a bad connection to the clock. Check your cables.
Images attached to this report
Displaying report 1-1 of 1.