Tone library - at a complete loss

el_supremo:
What exactly is XFG1?
Is the emitter of the transistor connected to the Arduino ground?
What is the purpose of the transistor? You don't appear to use it.

Pete

el_supremo:
What exactly is XFG1?
Is the emitter of the transistor connected to the Arduino ground?
What is the purpose of the transistor? You don't appear to use it.

Pete

The software is Multisim and XFG1 is just a virtual function generator for simulation purposes. It is not part of the real circuit.

Emitter of BD139 is connected to Arduino GND.

Transistor is meant to boost the power through the speaker and so the arduino pin is not driving it directly.

The 8 ohm resistor is a stand in for my speaker as multim does not have a speaker component.