Hi all,
I first started playing with PICAXE about 9 months ago, but I discovered that PICAXE wouldn't provide a good solution to my project, so the project got shelved and I haven't played with it since.
Anyhow, I'm trying to create a CTCSS encoder for one of my old Ham Radios.
The local repeater has had Tone access installed to to allow me to key it.
A similar subject has been raised before, but never got resolved.
I know that I could probably achieve the same out come with a 555 timer, but I thought I might just pull the PICAXEs out and have another go.
This time using a 08-M
CTCSS tones are sub-audible.
The tone I am after is 123.0Hz, I thought about PWM, but PWMOUT won't come down that far.
So I looked at the SOUND command
Where ## is the following, the measured frequencies were:
27 = 121.9 Hz
28 = 121.9 Hz
29 = 125.0 Hz
30 = 125.0 Hz
Close, but not close enough.
Next thought was just to toggle the output manually:
Where # is the following, the measured frequencies were:
3 = 136.9 Hz
4 = 106.3 Hz
5 = 87.7 Hz
I tried increasing the CPU speed with SETFREQ M8
I then got:
7 = 128.2 Hz
8 = 116.2 Hz
9 = 102.0 Hz
Has anyone got any ideas how I can get closer to the mark of 123Hz?
Thanks,
Jamie
I first started playing with PICAXE about 9 months ago, but I discovered that PICAXE wouldn't provide a good solution to my project, so the project got shelved and I haven't played with it since.
Anyhow, I'm trying to create a CTCSS encoder for one of my old Ham Radios.
The local repeater has had Tone access installed to to allow me to key it.
A similar subject has been raised before, but never got resolved.
I know that I could probably achieve the same out come with a 555 timer, but I thought I might just pull the PICAXEs out and have another go.
This time using a 08-M
CTCSS tones are sub-audible.
The tone I am after is 123.0Hz, I thought about PWM, but PWMOUT won't come down that far.
So I looked at the SOUND command
Code:
main:
sound 1,(##,255)
pause 1000
goto main
27 = 121.9 Hz
28 = 121.9 Hz
29 = 125.0 Hz
30 = 125.0 Hz
Close, but not close enough.
Next thought was just to toggle the output manually:
Code:
main:
high 1
pause #
low 1
pause #
goto main
3 = 136.9 Hz
4 = 106.3 Hz
5 = 87.7 Hz
I tried increasing the CPU speed with SETFREQ M8
I then got:
7 = 128.2 Hz
8 = 116.2 Hz
9 = 102.0 Hz
Has anyone got any ideas how I can get closer to the mark of 123Hz?
Thanks,
Jamie