easy bluetooth module with PIC
soniah
Posts: 1
Hi I am trying to control the easy bluetooth module with a PIC microcontroller but I have not been lucky with the communication. I am using the framing model given in the user's manual but still doesn't work. Any suggestions? Thanks
Comments
The first question is whether there is communication between the PIC and the EasyBluetooth module. Are you getting any kind of response? What happens if you monitor the communications with your PC? If you have a TTL to USB serial adapter, you can connect its ground and receive connections to one of the connections between the PIC and EasyBluetooth and monitor the connection with something like HyperTerm.
Remember that CTS needs to be pulled low for the EasyBluetooth to send data to the PIC. You can either use a PIC I/O pin to do this or connect a 10K resistor from CTS to ground.
The problem is the characters are not the string I sent from the PIC nor do they have a pattern that reflect the string I sent. Example, I send "hello" from PIC-Bluetooth and receive something like "pxpxx" choosing "Force to 7-bit ASCII" in Hyper Terminal. Not choosing the option shows the characters from an extended set.
I did a PIC to PIC async serial communication test and found it to be working fine. One PIC sent a string out the hardware transmit async pin to the hardware receive async pin of the receiving PIC and then outputted the received string to LCD and successfully displayed the characters.
Assuming the problem is not with the PIC, or maybe just treat the PIC as if it were a STAMP for minute, I wonder what is going on when a string is transmitted from a PIC/STAMP to the Bluetooth if/how the string is altered when it leaves the Bluetooth to be received by the PC.
Just to clarify, I am using the Easy Bluetooth module that has one PCB attached to another that only has the Vdd, Tx, Rx, and Vss pins that go into my breadboard.
I'll post the code used as well as the sample program that is available as free download to accompany the Parallax Easy BT module. Any insight is very appreciated!!
Current code "eBT_hello.pbp" written in PicBasic Pro: Is based on: