How to get tone out of arduino nano

i am making a strange synth for a school project using the arduino nano's tone function and have run the audio output through a large speaker and a piezo buzzer, but i want to be able to directly record the square wave audio from the tone function to my computer, using an audio jack or cable connected to the nano so it can be used in DAWs without having to mic up a piezo buzzer. i dont know if there is any way to do this and im relatively new to arduino so help soon pls! project is due
in a month!

I'm going to guess you have a laptop with a mic-headphone combo jack?

There are two (or 3) problems with that. You need a 4-conductor TRRS plug to make the microphone connection. And the output from an Arduino is 5V peak-to-peak which is about 100 - 1000 times stronger than a microphone signal.

It's about right for a line-level input (blue on a soundcard) but it's still a little "hot" so you might need an attenuator (potentiometer or voltage divider) and you should put a capacitor in series to block the DC bias.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.