Hi everyone, after hours of trial and error, I finally got the HC-06 Bluetooth to serial module connected and working with a Picaxe 20M2. I have the Picaxe sending text in a loop to the module (Loop execution #1, Loop execution #2, etc), which I can then view in a terminal window when connected to the virtual bluetooth comm port. Here is my code:
My question is that when I program the following code instead,
I get no response from the Picaxe (no LED toggling on/off). I think it must have something to do with the data format (ASCII or not) in the qualifier, or a special character missing. I feel it is something simple but cannot figure it out. Any help form the forum would be much appreciated. Thanks again
Code:
Setfreq M8
init: pause 500
symbol rx = c.2
symbol tx = c.1
symbol i=b0
let b0=0
high tx
pause 100
do
serout tx, t9600_8,("Loop #", #i,cr,lf)
b0=b0+1
pause 200
loop
Code:
Setfreq M8
symbol rx = c.2
symbol tx = c.1
high tx
pause 100
main:
serin rx, t9600_8,("set"),#b0
select case b0
case "1"
high b.1
serout tx, t9600_8,("ON",cr,lf)
case "0"
low b.1
serout tx, t9600_8,("OFF",cr,lf)
end select
pause 200
goto main
I get no response from the Picaxe (no LED toggling on/off). I think it must have something to do with the data format (ASCII or not) in the qualifier, or a special character missing. I feel it is something simple but cannot figure it out. Any help form the forum would be much appreciated. Thanks again