Hi everyone,
In my project I currently use a looped pwmout command to drive a piezo.
The main Picaxe 40X2 has lots of blocking commands to drive displays and other Picaxe chips. So to solely produce the sound I used a spare 14M2, which waited for specific serial commands from the main Picaxe in order to determine whether to loop a continuous 2800Hz or 1400Hz output. However, this is a waste of a chip that I want to use elsewhere.
I'd like to know if there's a way I can drive this piezo at 2800 Hz and 1400Hz to create a continuous sound without using a Picaxe?
Ideally I want to start/stop one of these two sounds by making pins high/low on my main Picaxe.
I'll eventually be amplifying the sound with a MAX232 as I read elsewhere these can boost the signals but if you know a method that will do this too then great.
In my project I currently use a looped pwmout command to drive a piezo.
The main Picaxe 40X2 has lots of blocking commands to drive displays and other Picaxe chips. So to solely produce the sound I used a spare 14M2, which waited for specific serial commands from the main Picaxe in order to determine whether to loop a continuous 2800Hz or 1400Hz output. However, this is a waste of a chip that I want to use elsewhere.
I'd like to know if there's a way I can drive this piezo at 2800 Hz and 1400Hz to create a continuous sound without using a Picaxe?
Ideally I want to start/stop one of these two sounds by making pins high/low on my main Picaxe.
I'll eventually be amplifying the sound with a MAX232 as I read elsewhere these can boost the signals but if you know a method that will do this too then great.
Last edited: