Keyboard Shortcuts
Likes
Search
I was able to compile the BITX40 code
Hi To me, as a non-programmer guy, this is a huge step. Since I struggled a bit, I thought I would show how I got it working. I am using IDE version?1.6.12. BITX40 code from - Inside the sketch, it says to get the Si5351 library from - Install the library, search for how to do this, lots of info on the internet... Select TOOLS - Board - Arduino?Nano When I clicked Verify I saw this as the first error ?????si5351.set_freq((bfo_freq + cal - frequency) * 100LL, ?SI5351_PLL_FIXED, SI5351_CLK2);? ????raduino:313: error: no matching function for call to 'Si5351::set_freq(long long unsigned int, long long unsigned int, si5351_clock)' I have no idea what this gobbledygook means. But, it is probably bad... So, I searched the message archives for any hints. I found that?Ron ¨C PA3FAT said that??Si5351 library version 1.1.2 should be used. Under SKETCH?- Include Library - Manage Libraries? Filter for etherkit, you should see Etherkit Si5351 by Jason ... Ver 2.0.1 INSTALLED. Ah, not version .1.1.2 Go to Select Vers, pick 1.1.2 and click Install. Clicked Verify again, and it complied successfully. I am no expert in the Arduino programming environment. I have experimented with some simple sketches. I have watched most of??Arduino?videos. Paul has a series of Arduino videos that he has made for his students. If you have the Feb QST, Paul is the high school teacher of the of the students in the Edge of Space article. These kids have done an amazing job. Many of the students have their licenses. When I feel brave, I may try uploading the code into my Raduino. I hope this helps. When things don't go as you expect, slow down, search, think and have a cup of coffee (or tea in UK land). 73 & good luck Randy, K7AGE |
Jack Purdum
Randy: Another source for people who have absolutely no programming background with the Arduino (or anything else), I might suggest...ahem... Read the reviews and see if it sounds like something that might help you understand the Raduino code. Also note that you can click on the cover and read the Table of Contents. You can then click on a chapter and read a few pages from that chapter. It would give you a feel at least for how the book is written. The first chapter would help you get the IDE environment set up properly and chapter 12 discusses how to use the libraries. There are more reviews on the first edition, even though the 2nd edition is a better book. Jack, W8TEE From: Randy Hall <listk7age@...> To: [email protected] Sent: Saturday, January 21, 2017 11:50 AM Subject: [BITX20] I was able to compile the BITX40 code Hi To me, as a non-programmer guy, this is a huge step. Since I struggled a bit, I thought I would show how I got it working. I am using IDE version?1.6.12. BITX40 code from - Inside the sketch, it says to get the Si5351 library from - Install the library, search for how to do this, lots of info on the internet... Select TOOLS - Board - Arduino?Nano When I clicked Verify I saw this as the first error ?????si5351.set_freq((bfo_freq + cal - frequency) * 100LL, ?SI5351_PLL_FIXED, SI5351_CLK2);? ????raduino:313: error: no matching function for call to 'Si5351::set_freq(long long unsigned int, long long unsigned int, si5351_clock)' I have no idea what this gobbledygook means. But, it is probably bad... So, I searched the message archives for any hints. I found that?Ron ¨C PA3FAT said that??Si5351 library version 1.1.2 should be used. Under SKETCH?- Include Library - Manage Libraries? Filter for etherkit, you should see Etherkit Si5351 by Jason ... Ver 2.0.1 INSTALLED. Ah, not version .1.1.2 Go to Select Vers, pick 1.1.2 and click Install. Clicked Verify again, and it complied successfully. I am no expert in the Arduino programming environment. I have experimented with some simple sketches. I have watched most of??Arduino?videos. Paul has a series of Arduino videos that he has made for his students. If you have the Feb QST, Paul is the high school teacher of the of the students in the Edge of Space article. These kids have done an amazing job. Many of the students have their licenses. When I feel brave, I may try uploading the code into my Raduino. I hope this helps. When things don't go as you expect, slow down, search, think and have a cup of coffee (or tea in UK land). 73 & good luck Randy, K7AGE
|
Congrats on the compile! You called it right when you identified that the sketch was written for the V1.1.2 library. ?Thankfully, it's pretty easy to update the code for V2. Here's the 'read me' info for the library: ? Here's the info on the change: ?"The?set_freq()?method is now more streamlined and only requires two parameters: the desired output frequency (from 4 kHz to 150 MHz) and clock output. In your old code, you can delete the 2nd parameter in?set_freq(), which was the PLL frequency.?" If you use a code-friendly editor like Notepad++, you can search for the instances of set_freq and delete the middle term (SI5351_PLL_FIXED) and the code will likely compile with the V2 library. Enjoy the fun! Andy |
Hi Jack My copy arrived yesterday. Haven't started reading yet, but a quick glance, looks to be an excellent book. Thanks Jack. 73 Ken VA3ABN On Sat, Jan 21, 2017 at 12:21 PM, Jack Purdum via Groups.Io <econjack@...> wrote:
|
Andy -
Since I'm waiting on my BITX40, I decided to play with the raduino sketch. I installed the most recent Si5351 library (Etherkit_Si5351-2.0.1). I followed your advice and searched for the instances of set_freq and deleted the middle term (there were four instances), however when I compiled I still got an error. I referenced the library change log and found this: "The init() method now has three parameters: the crystal load capacitance, the reference frequency, and the frequency correction value (with this last parameter being a new addition). You'll need to add that third parameter to your old init() calls, but then you can delete any set_correction() calls after that (unless you explicitly are changing the frequency correction after the initialization)." And the init call was indeed the compile error.? I added a 0 as the third parameter and now the code compiles with the new library, though I'm as of yet unable to test it. I have uploaded the sketch to the KA0NEB File Folder, along with a compiled hex for those who wish to forgo library installation and compiling and would rather just load it with XLoader. Steve, KA0NEB |
I was having difficulty trying to build and upload the most recent code (sketch) found at??. ?Just wanted to pass along to others that I found it necessary to use the?Etherkit_Si5351 version 2.0.6. ?That appears to be the last version before it got rolled to v2.1.0... and v2.1.0 breaks the build with changes to parameters passed in function calls. ?So make sure you have Etherkit_Si5351 in your libraries and choose v2.0.6 (Arduino IDE: Sketch-> Include Libraries-> Manage Libraries and Search for "5351", or similar, then select v2.0.6, if it isn't already the one you have chosen).
Hopefully this helps someone. ?I'm not certain what version sketch is currently being shipped in the Raduinos as they are being built. ?Regardless, what was there was sufficient as a starting point for the experimentation and customization of the Bitx40 / Raduino that came in the mail a few weeks ago. ?What a great platform for us to quickly have a working transceiver from which to expand on using our imaginations ! ?Kudos to the various minds and hands that have made it so we can all benefit !! 73, Paul NT7U |
That's probably not the code you want.
toggle quoted message
Show quoted text
You'd be better off looking at Allard's code: ? ?? Many many more features and a few bug fixes. It has the si5351 calls embedded in the main sketch, no need for messing with etherkit libraries. Yup, we had many threads here about 6 months ago from people having various problems with the various etherkit library versions. On Thu, Nov 2, 2017 at 09:53 am, <nt7u@...> wrote: I was having difficulty trying to build and upload the most recent code (sketch) found at??. |