Hello,
I have been struggled with using BLE board such as HC05/06 for more than one month.
can some tell me how to use BLE with LPC4330 for receiving data then printing this data on the console in LPCXpresso?
BLE is connected to the UART1. All the examples has been tested and tried different ways but not successful.
Hi Nabeel,
Do you mean the HC-05/HC-06 module (see Using the HC-06 Bluetooth Module)? These modules are classic Bluetooth modules, and *not* BLE modules and incompatible with BLE.
It could be that you are missing to add a pull-up to the Rx line, see Getting Bluetooth Working with JY-MCU BT_BOARD V1.06.
I hope this helps,
Erich
Hi,
It has been used with Ardunio and my PC successfully.
HC05/06 was connected to the Arduino and Plugable Bluetooth dongle was connected to the PC. sending data from PC and receiving it by Arduino, it was okay.
but now, the HC05/06 was connected to the LPC4330 board, I can see the received data on the oscilloscope connected to Bluetooth module's pins but how can I write a code using LPCXpresso to print the received data?
The code for the UART1 (TX - GPIO1[6] and RX- GPIO1[7])?
and
The code for printing data?
Regards
Nabeel
To print on the console, use printf()
many thanks Con, what about UART?
What is the input for the printf()?
There are lots of UART examples in LPCOpen for the LPC43xx family
printf and scanf both use the console.