Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
TinySA Arduino
I am starting to build my TinySa.. finally.
First issue... If you use pin D0(RxD) and D1(TxD) for both Si4432 and USB to the PC, isn't that going to present a conflict? I have done this before but I had to remove the peripheral (NEO-6) during programming. TinySA will need to communicate both ways during operation, right? 73, Gary WB6OGD |
Gary,?
I think Erik is using an Arduino Due, which does not have TxD and RxD connected to D1 and D0. I have been using a Nano together with 5V<->3.3V level converters and I also changed the pin assignments in the code: ![]() ![]() ![]() With a Nano you will also have to reduce the BUFFERSIZE. This code change is for the HyperVFOSI_new code,? that Erik published.? As I do not yet have the PE4302, I also commented out the related code (those pin definitions will also need a change). I have to say, that I am really impressed by the performance of the TinySA compared to the SPECAN by Asha Farhan, that I built before.? -- Joerg, ex-DB2OO |
As the SPI interface in the tinySA is completely done in SW you can change all pins to whatever you want.
-- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
Hello Joerg,
??? Like Gary I intended to use a Nano as the controller, Partly because I have several of them, and the Due is so much more expensive. It was also because I assumed that Erik's emphasis on the use of a 3.3 volt board was simply a case of the data level change, which is easy to achieve after all. ??? I hadn't realised that there was so much more to it! So thank you for the very helpful reply that you posted. ?? After "assignments in the code" there are three little boxes. What are they for? I couldn't make them do anything. ?? Tony (G3PTD) |
Hello Tony,?I guess, you receive the postings as e-mails. The boxes stand for the pictures in the posting, which show the changed code. If you open?/g/HBTE/topic/tinysa_arduino/69756920?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,69756920?in a browser, it will look ok.? Unfortunately the system inserted the picture three times.? -- Joerg, ex-DB2OO |
It doesn't and it makes no difference whether one receives the messages via email. The linked images (/g/HBTE/draftattachment/5010980/Screenshot_20200117-071429_QuickEdit.jpg) are corrupted. On Fri, 17 Jan 2020 at 17:36, Joerg ex-DB2OO <jhwhu@...> wrote: Hello Tony,?I guess, you receive the postings as e-mails. The boxes stand for the pictures in the posting, which show the changed code. If you open?/g/HBTE/topic/tinysa_arduino/69756920?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,69756920?in a browser, it will look ok.? |
So Erik, what Arduino board are you using??? Build doc sure looks like it was Nano before at least.
You are moving so fast, I can't keep up!? No problemo, keep it up, I will try to follow. Your new code is slightly too big for a Nano.?? I plan to get my SA up without encoder or display at first, can eliminate all that code..? your compile directives don't allow that easily anymore... anyone else have modified code available yet?? I will be working on it.?? I do understand you did not even want to post debug code, but thanks for letting us get going with it. Also, looks like your new code already only supports the serial PE4302, I have the old parallel board, FYI.? I saved an one older rev copy but maybe you could keep older revs in the files area. I am glad to hear that this SA is actually better than Farhan's.. which I was going to build before you came up with this one. Thanks again for a great project, 73, Gary WB6OGD |
Hosting the code on github is always a good idea, anyone can pull previous versions in case of issues. Also, looks like your new code already only supports the serial PE4302, I have the old parallel board, FYI.? I saved |
I am using a Arduino zero clone that uses the nano footprint.
If you only use the SPI interface you only need one input level shifter At the top of tinyAS.ino are three defines you can comment out to remove display and local UI controlled by the rotary. I will move the code to GitHub
I should not have removed the parallel pe4302 code. Will repair -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
It is a bit weird: I made the image as a screen snapshot on a Galaxy S9 and this displays it correctly also through the link, as well as on my laptop running Windows 10 with the Chrome browser.
Anyways, this is the section, where I changed pin assignments in HyperVFOSI_new.ino: // PINS SI4432
//const int SI_nSEL = 0 ;
//const int SI_nSEL[2] = { 0,5 };
// DB2OO, 9.1.20: nSEL for TX=D5, RX=D7
const int SI_nSEL[2] = { 7,5 };
//const int SI_SCLK = 1 ;
// DB2OO, 9.1.20: SCLK D6
const int SI_SCLK = 6 ;
const int SI_SDI = 2 ;
const int SI_SDO = 3 ;
const int SI_GPIO = 4 ;
If I find the time later this weekend, I will try to upload to Github my modified code running on the Nano w/o display and encoder. Joerg, ex-DB2OO |
If this is not too much of a hassle please create a "fork" and post your modifications in a separate branch. That way others can follow everyone's changes easily and Erik (if he finds those changes useful) can easily merge them. There is a nice guide here on how to do that if you are not familiar with that workflow:
|
Arduino code pushed to Github
Rotary and display disabled by default Also some other code size reductions done and comment added Documentation also added to Github -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
THANK YOU thank you Erik!
You didn't have to do that, we would have figured it out eventually. Compiles just fine for Nano now even with local display/encoder...? construction can resume. Edit:? one small change needed for parallel PE4302: "int p;" ??? needs to be declared, I put it at line 770 right before it it used 73, Gary WB6OGD |
@Joerg
Can you share the schematics of the 5v->3.3v IO conversion you used with the Arduino nano I guess you only need voltage dividers for the CLK, SDI and two LE lines and no conversion for the SDO? (e.g. connect a 3.3V output directly into a 5V input) or did you not dare to do this? -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
¿ªÔÆÌåÓýI am going to try red LEDs in series likesomeone did in their attenuators design. Yes, SDO should be ok with direct connection. 73, Gary Wb6ogd? On Jan 18, 2020, at 11:15 AM, erik@... wrote:
|
Be carefully
The attenuator may have pull down resistors and the si4432 does not and you will destroy the si4432 -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
I used an I2C level shifter module with 4 level shifters, which I purchased on eBay (approx EUR 1.95).
This does a conversion between the low and the high voltage in a bi-direction way: For the 5th signal I simply used a resistor voltage divider with 560Ohm connected to the Nano output (5V) and 1kOhm connected to ground. The midlle of the divider is connected to the SI4432 input. Generally you can use these voltage dividers for all outputs of the Nano. This will leave just one signal, that needs a 3.3V --> 5V conversion, which requires e.g. a level converter as shown above. Not using an up-level converter might work, but the input level at the 5V Arduino will be out of spec. There are other ways for level conversion like shown here:?. Overall my prototype TinySA with an Arduino Nano looks like this: -- Joerg, ex-DB2OO |
For $1.40 you can get a STM32F103C8T6 "bluepill" board that is 3.3V (with some 5V tolerant pins) and you would not have to bother with a level shifter. On Sat, 18 Jan 2020 at 21:42, Joerg ex-DB2OO <jhwhu@...> wrote: I used an I2C level shifter module with 4 level shifters, which I purchased on eBay (approx EUR 1.95). |
I tried the blue pill but most don't come with the maple bootloader so it's another step to take.
But I agree the blue pill is a much better choice for the tinySA. Faster, cheaper and much more RAM and rom -- HBTE Files section:?/g/HBTE/files Erik, PD0EK |
to navigate to use esc to dismiss