I'd posted a triple 555 timer synth/sampler project on here a little while ago which I successfully completed but it's a bit of a hassle to use when I'm wanting to chug through a song. It used two knobs for effects, one for pitch/frequency, and required a careful ear. So now I've moved onto a guitar project in which I'd like to turn the waves from the guitar's pickups into square waves.
So far I've made a humorous circuit with very limited knowledge which slightly works. I first experimented with the LM324 op amp-chip as a comparator, using a few resistors for a voltage divider to V+, and a guitar jack which resulted in a very nasty output similar to sporadic white noise. But I was able to trigger a difference by plucking the low E string which generated a tone in the mist of all the noise. So through curiosity I used an LM386 in an amplifier circuit (https://ask.audio/articles/how-to-build-your-first-amplifier) to amplify the guitar signal which would be sent to the LM324. I fed the output of the LM386 amplifier circuit directly to the V- and fed ~2 volts to the V+ instead. My idea was that the larger band/gap between voltages would help the LM324 distinguish between the guitar's frequencies and smaller irregular frequencies that may occur in the circuit. I'm not sure if that idea's correct but it did something. The result was a... success?
I'm getting a nice 8-bit sound out of it if I play with around with the potentiometers to the LM386 but I continue to have issues with the smaller strings triggering the LM324. I expect they don't cause a big enough change to the field of the pickups so the amplifier doesn't peak the signal high enough to trigger the LM324. The same issue occurs when trying to get notes to sustain for long periods of time. As the vibrations from the larger strings die down the LM324's output quickly cuts out.
So the question is:
Is there a good way to go about getting a square wave output from a guitar?
I've looked around the internet but I've only found "this schematic sounds like square waves", "it's really easy", and "here's a link that leads to unknown pages or advertisements" pages which have little to no information. For anyone who may be wondering I'm doing this all to help my friend with custom 8-bit music for his Twitch streams. And who wouldn't want a guitar that sounds like an old Atari?
So far I've made a humorous circuit with very limited knowledge which slightly works. I first experimented with the LM324 op amp-chip as a comparator, using a few resistors for a voltage divider to V+, and a guitar jack which resulted in a very nasty output similar to sporadic white noise. But I was able to trigger a difference by plucking the low E string which generated a tone in the mist of all the noise. So through curiosity I used an LM386 in an amplifier circuit (https://ask.audio/articles/how-to-build-your-first-amplifier) to amplify the guitar signal which would be sent to the LM324. I fed the output of the LM386 amplifier circuit directly to the V- and fed ~2 volts to the V+ instead. My idea was that the larger band/gap between voltages would help the LM324 distinguish between the guitar's frequencies and smaller irregular frequencies that may occur in the circuit. I'm not sure if that idea's correct but it did something. The result was a... success?
I'm getting a nice 8-bit sound out of it if I play with around with the potentiometers to the LM386 but I continue to have issues with the smaller strings triggering the LM324. I expect they don't cause a big enough change to the field of the pickups so the amplifier doesn't peak the signal high enough to trigger the LM324. The same issue occurs when trying to get notes to sustain for long periods of time. As the vibrations from the larger strings die down the LM324's output quickly cuts out.
So the question is:
Is there a good way to go about getting a square wave output from a guitar?
I've looked around the internet but I've only found "this schematic sounds like square waves", "it's really easy", and "here's a link that leads to unknown pages or advertisements" pages which have little to no information. For anyone who may be wondering I'm doing this all to help my friend with custom 8-bit music for his Twitch streams. And who wouldn't want a guitar that sounds like an old Atari?