I have a 08M PICAXE and two HopeRF HM-TR/232 Transceivers.
I managed to connect the two transceivers to the PC via RS232 cable and set both chips to Default settings
433 Band
434 Frequency
Crystal Load Cap 12pF
+/-90kHz
PA Level 0dBm
RX Bandwidth 134kHz
I've tried to set up serial comms with two pic chips using the 08M development boards. Here is my code.
****************************Transmitter*********************
init: 'V+ - VCC - 5V
'0V - DTX - Data output to PICAXE
'0V - GND - GROUND
'0 - RTX - Data input from PICAXE
'1 - CONFIG - Set HIGH for CONFIG MODE // LOW to NORMAL MODE
'2 - ENABLE - Set HIGH to ENABLE CHIP // LOW to DISABLE CHIP
'3 - N/A
'4 - N/A
'V+ - N/A
'0V - N/A
HIGH 2
LOW 1
SerialOut: serout 0, N2400, ("HELLO",$D)
LOW 0
PAUSE 1000
goto SerialOut
****************************Receiver***********************
init: 'setfreq m8
'V+ - N/A
'0V - N/A
'0V - N/A
'0 - ENABLE - Set HIGH to ENABLE CHIP // LOW to DISABLE CHIPRTX
'1 - CONFIG - Set HIGH for CONFIG MODE // LOW to NORMAL MODE
'2 - Data input from PICAXE
'3 - Wired to Ground
'4 - DTX - Data output to PICAXE
'V+ - VCC - 5V
'0V - Wired to 3
HIGH 0
LOW 1
SerialIn: HIGH 0
pause 100
serin 4, T2400, ("HELLO",$D)
HIGH 2
PAUSE 1000
LOW 2
PAUSE 1000
goto SerialIn
The red LED on the HM-TR/232 Module flashes on the transmitter PICAXE and the green LED flashes on HM-TR/232 Module, but the PICAXE doesn't seem to follow through with the code and make PIN2 High.
Any suggestions?
Cheers
K
I managed to connect the two transceivers to the PC via RS232 cable and set both chips to Default settings
433 Band
434 Frequency
Crystal Load Cap 12pF
+/-90kHz
PA Level 0dBm
RX Bandwidth 134kHz
I've tried to set up serial comms with two pic chips using the 08M development boards. Here is my code.
****************************Transmitter*********************
init: 'V+ - VCC - 5V
'0V - DTX - Data output to PICAXE
'0V - GND - GROUND
'0 - RTX - Data input from PICAXE
'1 - CONFIG - Set HIGH for CONFIG MODE // LOW to NORMAL MODE
'2 - ENABLE - Set HIGH to ENABLE CHIP // LOW to DISABLE CHIP
'3 - N/A
'4 - N/A
'V+ - N/A
'0V - N/A
HIGH 2
LOW 1
SerialOut: serout 0, N2400, ("HELLO",$D)
LOW 0
PAUSE 1000
goto SerialOut
****************************Receiver***********************
init: 'setfreq m8
'V+ - N/A
'0V - N/A
'0V - N/A
'0 - ENABLE - Set HIGH to ENABLE CHIP // LOW to DISABLE CHIPRTX
'1 - CONFIG - Set HIGH for CONFIG MODE // LOW to NORMAL MODE
'2 - Data input from PICAXE
'3 - Wired to Ground
'4 - DTX - Data output to PICAXE
'V+ - VCC - 5V
'0V - Wired to 3
HIGH 0
LOW 1
SerialIn: HIGH 0
pause 100
serin 4, T2400, ("HELLO",$D)
HIGH 2
PAUSE 1000
LOW 2
PAUSE 1000
goto SerialIn
The red LED on the HM-TR/232 Module flashes on the transmitter PICAXE and the green LED flashes on HM-TR/232 Module, but the PICAXE doesn't seem to follow through with the code and make PIN2 High.
Any suggestions?
Cheers
K