How can I output a signal from an electric guitar to an amp with arduino uno?

Hi, @taeminshin0708
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

analogWrite does not actually output an analog level, it outputs a PWM wave, the duty cycle from 0 to 100% represented by values from 0 to 255.

AnalogRead on a UNO has values 0 to 1023.

So your code just samples and converts to a PWM waveform.
You also will have to make sure you have a sampling rate high enough to get a proper waveform at your highest audio frequency.

The UNO may not be fast enough to do much processing anyway.

What is your electronics, programming, arduino, hardware experience?

Tom... :smiley: :+1: :coffee: :australia: