Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

si5351a get started alternative to arduino / python / window
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

si5351a get started alternative to arduino / python / window

by bosmrg on Sun Nov 03, 2019 3:21 pm

https://github.com/gomer-grondin/si5351a

this uses perl on a BeagleBone Black, but should be easy to port to other platforms. Can configure clk0 from 3.256kHz to 150MHz.

# freqscan.pl -- use arrow keys to invoke changes in Adafruit si5351A clock gen
#
# This script configures clk0 of the Adafruit si5351A board from a I2C
# capable SBC.. My setup is a headless BBB some distance away using SSH.
# For this reason, I did not use a rotary encoder as I first considered.
# Instead, I use the arrow keys unbuffered for quick response.
#
#sub usage {
# print " up -- increase frequency\n";
# print " down -- decrease frequency\n";
# print "right -- increase scale\n";
# print " left -- decrease scale\n";
# print " enter ... terminate program\n";
#}
#
# invocation:
# [JSON=1] ./freqscan.pl 2>/dev/null
#
# ignore stderr unless you'd like to see debug output
# invoke with JSON support if you'd like to build a json database


Also .. elsewhere in various posts, others are trying to use the Adafruit si5351a "standalone", without having to configure it each time.
I believe, that the proper response should be that the si5351a configuration will not survive a loss of power, this does NOT mean that it is necessary to have a MCU connected to it after configuration.

I've verified that this works.
1) connect MCU to si5351 including scl and sda
2) connect alternate (longer term) vin and gnd to si5351 (easy to do on breadboard, assure gnd from MCU and other source are connected )
3) configure desired frequency to clk0 on si5351
4) disconnect scl, sda, gnd, and vin from MCU
5) verify that clk0 still outputs desired frequency

as positive and constructive as my nature will allow.

bosmrg
 
Posts: 2
Joined: Sun Nov 03, 2019 2:54 pm

Re: si5351a get started alternative to arduino / python / wi

by bosmrg on Wed Nov 13, 2019 9:01 pm

I've updated the github repository to use INTEGER solutions where possible. See the README.md file for new options, and updated usage.

I've identified 31 frequencies (there are probably more) that don't work correctly in integer mode.. Any assistance or verification is appreciated. The github README.md documents how to compensate for this.

here are the problem frequencies:
# 20.5 Mhz Problem
# 19.5 Mhz Problem
# 18.5 Mhz Problem
# 16.5 Mhz Problem
# 15.5 Mhz Problem
# 14.5 Mhz Problem
# 13.5 Mhz Problem
# 8.8 Mhz Problem
# 8.6 Mhz Problem
# 8.4 Mhz Problem
# 8.2 Mhz Problem
# 7.8 Mhz Problem
# 7.6 Mhz Problem
# 7.4 Mhz Problem
# 7.2 Mhz Problem
# 6.8 Mhz Problem
# 6.6 Mhz Problem
# 6.4 Mhz Problem
# 6.2 Mhz Problem
# 5.8 Mhz Problem
# 5.4 Mhz Problem
# 5.2 Mhz Problem
# 4.8 Mhz Problem
# 4.3 Mhz Problem
# 4.1 Mhz Problem
# 3.9 Mhz Problem
# 3.7 Mhz Problem
# 3.3 Mhz Problem
# 3.1 Mhz Problem
# 2.9 Mhz Problem
# 2.7 Mhz Problem

bosmrg
 
Posts: 2
Joined: Sun Nov 03, 2019 2:54 pm

Please be positive and constructive with your questions and comments.