Hello!
thanks for reply
the bluetooth to PIC 3.3v
should i use a rs232 for this or should directly connect it ? im using the EGBT045MS
also if i use flowcode to program the pic how can i write a statement on the RC7/RX of my PIC
other people tell that the bluetooth module sends characters to the PIC or should i use other software?
You should connect the Bluetooth module directly to the microcontroller.
RS232 signals are used basically when you use a cable and want to connect to a PC.
Otherwise, it's called UART, and you can connect the UART directly to the module's
UART (make sure you cross signals, RX of a device connected to the TX of the other
one.
Sorry for your second question, I don't really get it. A Bluetooth device can
transmit whatever you feed to it. You may choose to transmit only printable ASCII,
that's a bit easier to debug because you can read the memory directly, but there is nothing
constraining to do this. Therefore, if you want to transmit a 16-bit value, you can transmit
an ASCII string like for example "12345", or you can send the binary value 0x3039 which
would take 2 bytes instead of 5.
I have made a similar application. In fact, it's a board for robotic experiments.
It can drive simultaneously 6 serovs + 4 DC motors. Or steppers, but remember that
one stepper will eat 2 DC motor ports.
Here is a demonstration of this board:
NB: in my case, for some reason, I don't see the translation when I use Safari on
Mac. In this case, you should right click and choose "restore flash" on the video.
From the beginning scene, you should see "iPhone control of a small motor car".
From Firefox, it works fine. And for portable device, it doesn't work at all because
the bubbles are not supported. So look at this on a PC if you have trouble
understanding japanese.
Note that the code for wheel and servo drivers is online, and there will be more
examples in the coming weeks. Unfortunately for you, it's not an Android application.
I will probably write an Android app when I have some time to kill.
This application uses 1 DC motor port (4 DC ports) and 1 servo port (6 servo ports
in total), so I'm sure some better applications could be written, but that's a matter
of time.
Dora