Hi all,
I'm interested in making a Picaxe-based mind machine, to provide photic stimulation and binaural signal generation. The hardware side's certainly easy; an output for LEDs on googles, and an output for each headphone with an RC filter.
The question is how to get the three frequencies I need.
1. A base tone, 300-400Hz to one earphone. Exact frequency doesn't matter so long as it's known.
2. A tone with an 10Hz offset from the base tone, to the other earphone.
3. A 10Hz square-wave output to strobe the LEDs.
The simplest solution I can see is a pair of 08M's. One would use pwmout to generate the base tone in the background while the inner loop would use pulsout to generate the 10Hz square wave. Meanwhile a second 08M would use pwmout to generate the base+offset tone.
Would this work? Is there a single-Picaxe solution?
I'm interested in making a Picaxe-based mind machine, to provide photic stimulation and binaural signal generation. The hardware side's certainly easy; an output for LEDs on googles, and an output for each headphone with an RC filter.
The question is how to get the three frequencies I need.
1. A base tone, 300-400Hz to one earphone. Exact frequency doesn't matter so long as it's known.
2. A tone with an 10Hz offset from the base tone, to the other earphone.
3. A 10Hz square-wave output to strobe the LEDs.
The simplest solution I can see is a pair of 08M's. One would use pwmout to generate the base tone in the background while the inner loop would use pulsout to generate the 10Hz square wave. Meanwhile a second 08M would use pwmout to generate the base+offset tone.
Would this work? Is there a single-Picaxe solution?