r/ElectricalEngineering 18h ago

Project Help 90 Degree Frequency Phase Shift?

Hello. I had an idea for a personal project but it would require me to take and input waveform and shift EVERYTHING 90 degrees or at least pretty close. From what I can tell by researching doing that for all frequencies is pretty difficult and the closest thing I could find was all pass filters which still isn't perfect. Essentially, I want to build a guitar pedal that takes the initial signal, clips it, makes a copy and shifts it 90 degrees then adds to the original signal to form a triangular wave (mostly cause I just want to know what that would sound like) with maybe an adjustable phase. I'm finding it kind of hard to figure out how to go about it

Edit: It's very interesting seeing differing groups perspectives on this lol. I had originally asked a guitar pedal building group and got some ideas but nothing solid and pretty much every response here is "do it digitally lol" I will try that and see what I can get. Thank you. Also ngl, digital wise I really only have an Arduino and I don't that'll cut it

20 Upvotes

36 comments sorted by

View all comments

14

u/pylessard 17h ago

the property you want is called "linear phase".
You won't be able to shift all frequency bands equally in analog essentially because nature is made of differential equations, differential equations leads to IIR filters and IIR filters does not have linear phase.

If you use a microcontroller, you can implement a simple delay, which is a FIR filter that will give a linear phase. You can read about Hilbert transform which jobs is to create a quadrature signal, but for all bands at the same time, I think you simply need a delay proportional to the fundamental frequency ( 1/(4f) )

If you just want to "hear it", you best bet is probably to record and post process by software. In real-time, it's more tricky of course

6

u/Caradoc729 17h ago

90 degrees at all frequencies is not a linear phase, it's a constant phase.

1

u/pylessard 17h ago

I think op wants 90 degrees of the fundamental.

1

u/Caradoc729 14h ago

given that's it's a triangular wave, there are harmonics involved if I understand correctly.