Programming si5351 with the PyBoard

  Рет қаралды 6,251

NA5Y

NA5Y

Күн бұрын

Пікірлер: 37
@NeedleBender785
@NeedleBender785 2 жыл бұрын
Great instructional video!!! I am actually building a 20m rig using some of the code. I was able to add a correction factor to the code so the frequency is spot on. However i was testing it using the original code and anything above 11mhz there looks like an error causing the frequency to be 5mhz off. Once I track down the error I’ll be able to have an awesome VCO.!!!
@na5y
@na5y 2 жыл бұрын
I know I've had a few bugs in that code. I did so some fixes to the ESP32 C++ code which you can find here github.com/thaaraak/ESP32-Transmitter/blob/master/main/main.cpp Honestly it might be easier to generate the quadrature signals with a pair of D-type flip flops than using the si5351s inbuilt functionality. Heres an example if you want to try that www.newioit.com.au/archives/34 I'll have to check that python code out and see if I can find the problem
@stevew9945
@stevew9945 3 жыл бұрын
Very interesting keep up the good work
@na5y
@na5y 3 жыл бұрын
Thank you. I've done si5351 programming for Micropython, Arduino, STM32 and ESP32 now - its a great little board
@generalingwer4341
@generalingwer4341 5 ай бұрын
Nice video.i wandering have you seen a very significant negative temp.coefficient within the 5351 boards.
@na5y
@na5y 5 ай бұрын
I didn't see that - but I didn't really do any measurement of temperature sensitivity. Thank you for the comment
@HitAndMissLab
@HitAndMissLab Жыл бұрын
Great video! Just two questions: - Can this board be made to output frequency in 1 Hz increments? - can the phase difference between the two channels be made to be any other value except quadrature? Like, can it be any arbitrary angle?
@na5y
@na5y Жыл бұрын
To answer - Yes the board has sub-hz precision - Yes - setting the phase difference is a little counter intuitive. The phase is set in terms of the multiplier ("mult" below) passed to the "set_frequency" call where passing in "mult" to "set_phase" results in a 90 phase shift. So to do a 45 degrees phase shift you pass in mult/2 to the "set_phase" self._si5351.set_frequency( self._frequency, self._si5351.clock_0, self._si5351.pll_a, self._mult ) self._si5351.set_frequency( self._frequency, self._si5351.clock_2, self._si5351.pll_a, self._mult ) if ( self._mult != self._old_mult ): self._si5351.set_phase( self._si5351.clock_2, self._si5351.pll_a, self._mult ) Note that "mult" is an integer so you don't have great control over the phase. I hope this answers your question and thank you for the comment
@jungsuhong
@jungsuhong Жыл бұрын
Thanks for your kind explanation, can this board generate below 180 kHz (25MHz X15/2050)? i think it stucks with a limitation under the python adafruit software
@na5y
@na5y Жыл бұрын
Hi Jungsu. The datasheet says that the output can go all the way down to 2.5KHz. I have never tried that low myself and its quite possible there's some bugs in the library as it attempts to guess the multiplier, numerator and denominator from the desired frequency. What I would suggest is to determine the multiplier, numerator and denominator yourself to get 180KHz and then manually call "configure_registers_bulk". I hope this helps and thank you for the comment
@na5y
@na5y Жыл бұрын
Have a look here for how you go about calculating the multiplier, numerator and denominator for any frequency kzbin.info/www/bejne/aJTFYn-CpMqHY7s
@natewelch6490
@natewelch6490 2 жыл бұрын
Interesting! When setting the PLL using the fractional method you didn't seem to get any jitter on the clock signal. The 5351a boards that I have been playing around with have some pretty noticeable jitter on the signal unless I use the even integer mode of setting up the part.
@na5y
@na5y 2 жыл бұрын
Thank you for the comment Nate - which version of the boards were you using?
@na5y
@na5y 2 жыл бұрын
Just came across this video from Kevin Loughlin BTW: kzbin.info/www/bejne/bZDVlWaGrJKafNU
@natewelch6490
@natewelch6490 2 жыл бұрын
The version I have are the Hiletgo brand off of Amazon. I ordered an Adafruit one that just came today to do some comparisons. Should be the same IC. I just wonder if one of them has a register set differently that isn't getting set in the software. The datasheet for the part does mention the jitter being worse for non integer dividers.
@natewelch6490
@natewelch6490 2 жыл бұрын
@@na5y VERY interesting! Looks like exactly the problem I ran into. Here is a video I made (on my other channel) of what I was seeing. kzbin.info/www/bejne/mmOvdpJjaJaegpo
@davidegiuffrida1532
@davidegiuffrida1532 2 жыл бұрын
Stupid question....I can program and it hold the programmed frequency so i can use in a computer like a ttl clock ?
@na5y
@na5y 2 жыл бұрын
Davide, do you mean use it as a timebase to drive a real time clock? It will hold a frequency pretty well (depending on the stability of its own crystal source of course - which you have to provide externally). You could use it like that. Its generally intended to be emit a programmable variable frequency though (as a local oscillator for a radio for instance). Thank you for the question - I hope this helps!
@CharudattUplap
@CharudattUplap 3 жыл бұрын
Will this work with uPython ? Planning to emulate this code on RPi PICO using uPython
@na5y
@na5y 3 жыл бұрын
This code was written for micropython - should be no problem with a different board although GPIO numbers will be definitely different
@pascalmestdagh5074
@pascalmestdagh5074 4 жыл бұрын
Hi Ian, I just replicated your set-up with an si5351 and Teensy4.0 with circuitpython and mu-editor, works fine! Would it be possible to post your circuit diagrams for the complete set-up somewhere together with a component list please? I would like to replicate your complete project. Very interesting and educational stuff overhere:) Best 73, Pascal,Belgium
@na5y
@na5y 4 жыл бұрын
You bet Pascal. I use kicad at the moment - would kicad projects work or do you need an image? For the kicad projects the main board is here: github.com/thaaraak/Tinypico-Radio/tree/master/kicad/Radio The phase shifter is here: github.com/thaaraak/Tinypico-Radio/tree/master/kicad/Phase%20and%20Filter
@pascalmestdagh5074
@pascalmestdagh5074 4 жыл бұрын
​@@na5y Well, I have no experience with kicad software for the moment, but I very much like your oldschool handwritten schematics:) But I could figure out how to use Kicad of course.
@na5y
@na5y 4 жыл бұрын
No worries - I have put the schematic in the Radio directory above as "Radio.pdf". There is also a BOM in the directory in the file "Radio". Let me know if you can see them. If thats what you are after I will do the same in the Phase directory
@pascalmestdagh5074
@pascalmestdagh5074 4 жыл бұрын
@@na5y yes, I can see them on your github page, thanks! Will start ordering parts:) Best 73, Pascal
@na5y
@na5y 4 жыл бұрын
Cool. Let me know how you get on! Something not spelled out in the schematic is the toroids are 2 x T37-6 and 1 x FT50-75 (marked T50 splitter). The turns ratio on the T37-6 are 6:31 in input and 31:6 on the output. The FT50 is wound trifilar with 11 turns
@karthikraja5772
@karthikraja5772 3 жыл бұрын
Hey, which connector did you use to connect the clock output to Oscilloscope?
@na5y
@na5y 3 жыл бұрын
That is a male to male SMA cable with an SMA to BNC adapter at the oscilloscope end
@karthikraja5772
@karthikraja5772 3 жыл бұрын
@@na5y Thanks for the reply
@zoodzood2709
@zoodzood2709 2 жыл бұрын
I need the software, please
@na5y
@na5y 2 жыл бұрын
Code is in my github repo - github.com/thaaraak/Tinypico-Radio
@zoodzood2709
@zoodzood2709 2 жыл бұрын
@@na5y thanks you so much
Pyboard Radio - Updated Tayloe Detector
8:00
NA5Y
Рет қаралды 4,3 М.
Si5351A Clock Generator Programming+
9:32
Jeremy Clark
Рет қаралды 2,3 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 16 МЛН
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 24 МЛН
Bend The Impossible Bar Win $1,000
00:57
Stokes Twins
Рет қаралды 42 МЛН
Si5351 VFO/BFO Software: Part 1 Hardware overview
17:28
Charlie Morris ZL2CTM
Рет қаралды 35 М.
Homebrew si5351 Board
3:38
NA5Y
Рет қаралды 2,4 М.
#967 Why not use a Si5351 clock generator?
18:43
IMSAI Guy
Рет қаралды 32 М.
Calibrating an Si5351 VFO with Arduino Software
10:55
Q26
Рет қаралды 1,9 М.
MicroPython Basics: What is MicroPython? with Tony D! @micropython #LIVE
46:51
Playing around with Tayloe Detector at 150 MHz
13:29
NA5Y
Рет қаралды 1,7 М.
Phase Shifting with DSP using the Teensy
24:24
NA5Y
Рет қаралды 15 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 194 М.
Худший из Samsung? #samsung
0:58
Не шарю!
Рет қаралды 318 М.
iPad 10 за 350$ - лучший в 2024?
12:20
ЗЕ МАККЕРС
Рет қаралды 32 М.
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 9 МЛН
Электронный звонок #shorts
0:26
TheBestBike
Рет қаралды 1,4 МЛН