Digital Electronics Simulator
You can try CircuitLab to help you get started.

https://www.circuitlab.com/ 

Here is an example with a Piezzo:

https://www.circuitlab.com/circuit/6syafk/bjt-audio-amplifier/