DSC00014.jpg (302801Bytes)
DSC00013.jpg (349390Bytes)
DSC00010.jpg (336145Bytes)
Hey guys,
I wonder if someone here could enlighten me a little bit with an issue I'm having with a Picaxe project with a CHI035A board wired to a motor,a buzzer, a led and a L6 (or BC4) bluetooth module which I'm trying to control and communicate with an Android cellphone.
CHI035A -> http://www.picaxe.com/docs/chi035a.pdf
L6 ->http://www.elechouse.com/elechouse/images/product/Serial%20Port%20Bluetooth%20Module/BC4_Blue2.0.pdf
I have made a little Android program with the AppInventor (appinventor.mit.edu) to control the picaxe chip which contacts with the L6 bluetooth module and establishes a connection between both of them. I programmed the Picaxe chip with the following commands:
--------------------------------------------------------------------------------------------------------------
#picaxe18m2
setfreq m8
hsersetup B9600_8, %00
main:
hserin b1
serin 0,N9600_8,b1
serin 2,N9600_8,b1
serin 0,T9600_8,b1
serin 2,T9600_8,b1 ' I used all the commands to receive data that are available with the picaxe and tested all the
'possible pins, but any of those tests worked,
if b1 ="A" then call motor_adelante
if b1 ="B" then call motor_atras
if b1 = 1 then call motor_gizquierda
if b1 = 2 then call motor_gderecha
goto main
motor_adelante:
forward A
forward B
return
motor_atras:
backward A
backward B
return
motor_gizquierda:
forward A
backward B
return
motor_gderecha:
backward A
forward B
return
---------------------------------------------------------------------------------------
I have programmed the Android app to send a value or a string ( like 1,2 or A,B ) to the bluetooth module when a button is pressed and then the picaxe receives the value and it moves accordingly with what it received ( or does the required
function).
However, when I open up the android app and I establish a connection with the bluetooth module and send a value to the picaxe, it does not seem to receive anything although the connection is working.
The photos attached to the post show where the bluetooth module is connected, the TxD pin in the PORTB.2 hole, and the RxD pin in the PORTB.0 hole. Sorry for the bad quality, I don't have a good camera
I think that the possible problem may be that the TxD and RxD wires are not connected where they belong, or some programming error. But after trying and trying possible solutions to solve the problem I haven't found any fix.
So here I am ,to see if anyone can give me any hint to solve this.
Any help is highly appreciated.
Many thanks to anybody who helps me.