Pedal Pi Circuit Analysis.

7 years 7 months ago - 6 years 9 months ago #848 by Ray
The complete project is Open Source Hardware, the design was done using KiCad , an open-source and free of charge ECAD tool. All the project files, schematics, and bill of materials are public. The circuit can be broken down into 5 simpler blocks: Power Supply, Input Stage, Output Stage, User Interface and Raspberry Pi Connector:





In a nutshell, it works like this: One op-amp will prepare the signal to be digitized by the ADC (amplifying and filtering the waveform) and also 1 opamp will recover the signal from the Pi Zero board. One external ADC is used to read the guitar signal and two PWM signals are used in parallel to generate the output signal.

Input Stage:
The guitar signal is amplified and filtered using one op-amp, this part of the circuit looks very similar th the MXR MicroAmp guitar pedal, you can have a look to the analysis .
The trimmer VR1 adjusts the gain of this amplifier from 1 to 21, so the guitar level (typically 200mVpp) can be optimized for the ADC (ideally 3.3Vpp). The signal pass through several filters:
- 2 low pass filters (formed by R2&C2, R4&C5) that will remove the excess of high harmonics that can create aliasing during the ADC signal acquisition . The cut frequency used is 5KHz, also used in other commercial effects.
- 2 high pass filters: (formed by R1&C1, R3&C3) that will remove DC and avoid any hum in the signal.

Other important parts:
R0: is a pull-down resistor which avoids popping sounds when the pedal is switched on. The input pull-down resistor becomes the maximum input impedance of the pedal.
R1: Is a bias resistor, it gives the virtual ground (1.5V) to the op-amp.
C4: Will eliminate oscillations or noise in the line.

Output State:
Uses a Sallen & Key 3rd order low pass filte r which removes harmonics above 5KHz. Two PWM signals are used in parallel improving the bit resolution (2x6bits). If you want to read more about the PWM audio generation read the forum topic dedicated to the PWM configuration options. There is also a fantastic research done by OpenMusic Labs referring to this topic.

Power Supply:
The power supply is a crucial part of the design, it is limited to 3.3V, this is why a rail-to-rail op-amp that allows to work with audio signals very close to the supply rails.

The power rails used in the design 3.3V and 5V are taken from the Raspberry Pi Zero, these levels are famous for being noisy, this is why several power filters are used:
- 100nF caps (C10 and C15) are placed very close to the ICs (opamp and ADC) for local decoupling.
- Two C-R-C filters (C11&R13&C12 and C13&R14&C14) are used to remove high freq noise from the power lines. The values are pretty high (220uF and 300R) that will guarantee that any noise over 2Hz is attenuated.

A resistor divider R11&R12 generates 1.6V for virtual ground and the cap C16 remove ripple on the power line.

User Interface:
The player can use 2 configurable push-buttons, 1 configurable toggle switch, 3PDT true-bypass footswitch and a programmable LED.

Raspberry Pi Connector:
2x20 pin header will link the hat with the PiZero transferring the signals and power supply.
Attachments:
The following user(s) said Thank You: travis, Wrangler

Please Log in to join the conversation.

6 years 9 months ago #1280 by CBPEDALMAN
On this diagram where does the +1V5 on the input stage connect? Does it connect to the power supply?

Please Log in to join the conversation.

6 years 9 months ago #1282 by Ray
Replied by Ray on topic Pedal Pi Circuit Analysis.

On this diagram where does the +1V5 on the input stage connect? Does it connect to the power supply?

This image will help you:

Attachments:
The following user(s) said Thank You: CBPEDALMAN

Please Log in to join the conversation.

6 years 8 months ago #1297 by CBPEDALMAN
Hello,
Question regarding this image again.
I am using two input jacks from mouser. Mouser number 568-NMJ6HCD2-RM.
This is the page describing it. www.neutrik.us/en-us/plugs-jacks/m-series/nmj4hf-s.

My question regards how the jack connects to the circuit, regarding the 1 going in and the 2 and 3 going to ground. With a six prong jack would that be pointing to the first pair of prongs as "1"?

Thanks in advance.

Please Log in to join the conversation.

6 years 8 months ago #1302 by Ray
Replied by Ray on topic Pedal Pi Circuit Analysis.
Hi, this image will help you:


Basically, the tip (signal) is pin1 and goes deeper into the jack.The pins 2 and 3 are ground (guitar mono signal) and are more at the "output side of the jack".
pins 1 2 3 are mirrored at the "other side" of the jack 1 faces 1, 2 faces 2, 3 faces 3.
The trick here: Is that the pins of the left hand side get disconnected from the ones on the right hand side, so you only need to connect to the pins on the right (if you look straight to the hole)
Attachments:

Please Log in to join the conversation.

6 years 8 months ago #1316 by woshiren
Replied by woshiren on topic Pedal Pi Circuit Analysis.
In MXR MicroAmp,the impedance is Zin=(R1//R2)//(R3+Zinopamp)=(22M//10M)//(1K+106M)=6.8M
so this pedal impedance is 1M//1M=500K?

But in Pedal Pi page,it said Pedal Pi impedance Zin=1MΩ
Attachments:
The following user(s) said Thank You: Ray

Please Log in to join the conversation.

6 years 8 months ago - 6 years 8 months ago #1318 by Ray
Replied by Ray on topic Pedal Pi Circuit Analysis.
Yes, you are right, as we discussed here:
www.electrosmash.com/forum/pedalshield-m...ome-question?lang=en

The Zin = 0.5MΩ

We have updated the pedal-pi article. Thanks for your help!

Please Log in to join the conversation.

2 months 3 weeks ago #3368 by woshiren

Please Log in to join the conversation.

1 month 1 week ago #3370 by woshiren

Please Log in to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio

Follow us

You can also follow us on:

facebook   google   instagram

pinterest   youtube   twitter