How to use BLE with LPC4330?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use BLE with LPC4330?

1,041 Views
nabeelfattah
Contributor II

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.

Labels (2)
0 Kudos
5 Replies

682 Views
BlackNight
NXP Employee
NXP Employee

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

0 Kudos

682 Views
nabeelfattah
Contributor II

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

0 Kudos

682 Views
converse
Senior Contributor V

To print on the console, use printf()

See https://community.nxp.com/message/630895 

0 Kudos

682 Views
nabeelfattah
Contributor II

many thanks Con, what about UART?

What is the input for the printf()?

0 Kudos

682 Views
converse
Senior Contributor V

There are lots of UART examples in LPCOpen for the LPC43xx family

printf and scanf both use the console.

0 Kudos