¿ªÔÆÌåÓý

Date

Re: General Si5351 Question - Pi?

 

You are correct about the 3.3V I/O and lack of ADC pins.? I imagine we'd design a special 'HAT' (as Pi daughterboards are often called) that contained an ADC like the one you suggested plus the Si5351 and other miscellaneous circuitry (such as 5V output drivers and LCD support circuitry) and just replace the entire Raduino instead of just the Nano.

As far as coding in C is concerned, I am fine with that.? I use Linux every day at work and have been coding C for over 30 years now.? I just thought Python might be less intimidating for people unfamiliar with Linux and the Raspberry Pi, as it seems to be the language of choice for new Raspberry Pi users.??


Re: General Si5351 Question - Pi?

 

Greetings, all!

I seem to have put a cat among some pigeons! :) My hope would be that they can fly ... me, I'm hobbled.

Financially - I'm a pensioner, and my reserves have been pillaged by bureaucracy. Beyond the original Kit and replacement Raduino, such componentry as I can glean is from defunct 'trash', tools are what I had prior to that systemic abuse. I envy those in nations with reasonable access to less-costly 'gear'. Here in NZ, and lacking individual mobility beyond this little town (Feilding, FYI) a Pi Zero-W will cost at least double its price at the nearest outlet (Element 14 in Auckland).

Situationally - workspace is cramped, storage cluttered with inadequate room for organisation.

Capability - my programming capability doesn't go beyond schoolboy BASIC and atrophied Assembly. I'm a Thinker, not a Doer.

I'm active here to keep my brain functioning - I've had a stroke. Online is my preferred human interaction. My long-term memory is unimpaired, so knowledge is not a problem - and more recent developments here are documented and can be researched. I really treasure this project!

73, folks

Dex, ZL2DEX

?


 

At the bitx40 we built, the BFO frequency varies in the voice signal.
I wonder if it is normal or if someone has ever faced this problem as he did it.
Thank you!


Re: General Si5351 Question - Pi?

 

Yes,?the?RPi?does not have an ADC, so you would need to add an external one. There are a number of options available from Adafruit:??(and of course, even more options on eBay, but without the support you get from Lady Ada).?


Advanced Speech Processing Options

 

Doing a little poking around on speech processing and ran into a couple of interesting possibilities, not necessarily cheap.

A very powerful homebrew digital approach:



From a previous hobby, an analog approach:

The IC has a VCA, an RMS detector and a couple of opamps.

See especially Design Note 115:



That design note is based on the chip that uses ¡À15V for power; the 4320 is the same thing that can run on 12V which is available in the BitX.

Is anyone using pro audio hardware for this sort of thing?


Re: General Si5351 Question

 

Update: The measurements I took earlier seemed odd. Further experiments (better setup) displayed actual delay for both operations are closer to 735 uSec each. Makes more sense. 73, Don, ND6T


Re: General Si5351 Question - Pi?

 

Wouldn't an RPi need an external ADC?


Re: General Si5351 Question - Pi?

 

Hmmmm, I wonder if there would be enough processor to run some sort of digital audio workstation app with compressor/gate/limiter/eq plugins for TX audio processing.


Re: General Si5351 Question - Pi?

 

Should work.
The RPi-Zero is $5, and way way way more capable than a Nano.
Note that the RPi has 3.3v IO pins, not 5v like the Nano.

Could get by without any analog pins, or could add something like this:
? ??Cost is somewhere between $1 and $3 for just the chip, depending on how many you buy.
Probably need to cook up an OSHPark board for that plus an si5351, maybe an ad8307 too.

I'd leave Allard's code in C, the RPi can run linux, and has the gcc compiler.
Just need to move from Arduino's wire.h library to code suitable for the RPi's IO ports
and clean up the minor Arduino-isms, like add a standard C main() at the top level:
? ? void main() {?setup();? ? while (1)?loop(); }?

But if you really want to re-code Allards sketch in python, go for it.
That's what this is all about, learning and having fun and staying out of the bars.
No need to rationalize beyond that.

Jerry, KE7ER



On Thu, Nov 9, 2017 at 07:05 am, RCBoatGuy wrote:

I'd be interested in collaborating on using a Pi instead of an Arduino for the Bitx/uBitx.? Should be fairly easy to convert Allard's Arduino sketch to Python to run on the Pi.??

?


Re: General Si5351 Question

 

A quick bench test revealed an ON time delay of 800uSec using set_freq() and a 480uSec delay in turning it off with output_enable(). This was with the Etherkit version 2.0.6. I pulsed a digital pin before and after each activation of the '5351 to duplicate your test and measured with a 100 MHz DSO
I use that method at speeds up to 35 WPM without noting any difference. However others may disagree. This is not the "normal" way of turning it on, just a shortcut that works faster than the output_enable() method for me. 73, Don,ND6T


Home brew 5 band BitX

 

Hey guys,?

I¡¯m finishing up my build of a multi band BitX and need two more bands to fill my filter board. I already have 80, 40, & 20 meters in place. Has anyone gone higher than 17 meters without an I.F. amp? (like the Hycas or similar)


Re: General Si5351 Question - Pi?

 

I joined this group a few weeks ago, and have been lurking about trying to learn as much as I could about the Bitx/uBitx before making the plunge.

I, too, have been considering replacing the Arduino with a Raspberry Pi to get better horsepower, memory, and more GPIO for added featues.? I also think a Pi would be a good choice for adding support for digital modes as well support for CW encoding / decoding via a USB sound card.? The other nice thing is that the recent versions of the Pi (A+, B+, 3, Zero, Zero-W) all share a common 40-pin GPIO interface, so each user could choose the Pi that works best for them without impacting compatibility.

I'd be interested in collaborating on using a Pi instead of an Arduino for the Bitx/uBitx.? Should be fairly easy to convert Allard's Arduino sketch to Python to run on the Pi.??

73

Carl, K0MWC


Re: General Si5351 Question

 

It depends on what all lies within that function call.? Look at the lib to see if it can be tightened up. I would just use the 2 clock outputs or use a faster cpu.

--
Paul Mateer, AA9GG
Elan Engineering Corp.

NAQCC 3123, SKCC 4628

Virus-free.


Re: General Si5351 Question

 

Not sure which library you are using, perhaps Etherkit?

The current code from Allard uses si5351bx_setfreq() and a frequency update takes about a dozen bytes,
or 100 bits of i2c writes to the si5351.
The i2c clock rate on the Nano is probably around 100khz, so would take around 1ms to get those 100 bits out.
Math is strictly 32 bit integer or less.

The Etherkit library does a bunch of 64 bit floating point, which will take some time on an 8bit uC. ?
And the Etherkit library may do a bunch more register writes, or may not do them as a write burst.

Might be possible to bump up the i2c clock rate to 400khz.
Tempting to try to avoid writing to si5351 registers that don't change, but I doubt this would save much if anything.
Or could convert to an si5341 and use a 20mhz spi bus, if you are really serious about this ? ;-)

Jerry, KE7ER




On Wed, Nov 8, 2017 at 07:39 pm, W0PWE wrote:
It seems to take about 6ms to execute the set frequency function - ??si5351.set_freq(f , SI5351_CLK0);


Re: General Si5351 Question - Pi?

 

I recently replaced my kit's Raduino. This has left me with a likely-functional SI5351 with usable points for wiring. I've been wondering: could that be farmed onto a Raspberry Pi Zero? Display HDMI for freq and menu/s, GPIO for key (not sure about capacitive) and PTT, USB for audio in/out, probably only lacking ADC for S/SWR metering, though one of the audio channels might serve. 3.3V and I^2C or SPI bus available, Networking for remote ops possible (WiFi with Zero-W) and secure with Raspbian Linux, normal attach to BITX (the CLK0 to DDS point) ... :)

73
Dex, ZL2DEX


Re: General Si5351 Question

 

Most codes go to Tx at key-down (6ms delay) and stay there until more than # ms after last key-up (beyond last CW character and word-space time) then back to Rx (delay imperceptible). That delay only applies semi-intrusively to first key-down - is that too slow?


General Si5351 Question

 

It seems to take about 6ms to execute the set frequency function - ??si5351.set_freq(f , SI5351_CLK0); I determined this by toggling an output pin before and after this line of code. Is that normal? Is there any way to do it faster?

?

I am updating an AD9850 based CW xcvr I built a few years back. It switches the DDS from (Freq-IFOffset) on receive to (Freq) on transmit. I need to key the transmitter ON after the Si5351 has been set to the transmit freq and OFF before I set it to the receive freq. My CW element length will then be at least 6ms too short. At 30 WPM that is about 15% shorter than normal and I don¡¯t think that will sound good.

?

I guess I could just use two clock outputs ¨C one for the transmitter and one for the receiver, but I would like to do it all with one clock if possible. ?Thanks and 73 - Jerry - W0PWE


W8TEE B40 - interested in your experiences with it

 

Hi All,

I've been reading the discussions about the W8TEE B40 and am considering ordering parts for this mod. I read through the build manual, but I was hoping to learn more about your real world experience with building and operating it. It would be especially helpful if anyone has a video that demonstrates the operation and new features. A quick Google search didn't come up with anything outside of this group.?

Thanks,
Jason - W4JAL


Re: Signal generator.

 

Brent

There are two different types of inexpensive mechanical rotary encoders available
from various sources.? One type has the detent every cycle and one has the detent
every two cycles.? A slight modification to the software should allow one to make it
compatible with the type that you have.? Maybe the software authors can provide
encoder type selection as an option?

A?????????? B???????????????????? 1????????????????????????????? 2
Low? Low ???? Detent??????
Low? High ??? Detent?????? Detent
Hi?? Low ???? Detent
High High ??? Detent?????? Detent

One can determine which type you have by adding a pair of LEDs in series with
2.2K resistors to show the A and B outputs of your encoder.?

Arv? K7HKL
_._


On Tue, Nov 7, 2017 at 3:35 PM, Brent Seres <brentseres1@...> wrote:
Hi Mike

I have a couple of ideas.

I received the rotary encoders today, and am having a similar issue as you. It seems for each detent my encoder is moved, the frequency jumps 2 units. If you are careful, there is an encoder position between the detent positions where you can tune to odd units. It's like the encoder outputs 2 pulses for every click.

What if the code where changed to move==2 and move==-2?

Also, one of my interests is restoring vintage radios. To align theses, it is helpful to have a modulated signal, as there is no bfo. Rather than build a modulated output stage, what about using clk1 for the main carrier output, and if you want modulation, have clk0 and clk2 track with clk1, but offset by say +/- 700 or 1000 hz. If these outputs were attenuated by 6 dB relative to clk1, and mixed, they would approximate a 100% AM modulated signal. I know from a spectral purity standpoint things will not be the greatest, as the raduino does not output a sine wave, but you would at least have a tone you could hear on a receiver without a bfo.

73
Brent



Re: W8TEE B40 real time clock connections #w8tee

 

Yup I do that too, use what I've got on hand. If I have time this week maybe I'll add the standard RTC code in and ifdef it so you can chose which RTC module you want to have. When Jack gets back from "vaca" I will ship him a copy of the changes and he can use if he wants. Most of the RTC modules have an extra eeprom on board you can use and you can never have enough memory. I use it to store web pages on one of my projects.

Another fun thing to add to the B40 would be a wifi module, just think of the possibilities..

Before for I forget (trying to get caught up on things), did Jack ever come out with the ACG card and info on hooking up the B40 S-meter?

73,
Kevin - KB0VHA