cancel
Showing results for 
Search instead for 
Did you mean: 

CONNECTING HC 05 with nucleo 64 board

Divesh Dutt
Associate II
Posted on November 05, 2017 at 05:40

hi all hope you are doing well,

I wanna connect HC 05 bluetooth module with stm32f303 using nucleo 64 board but i couldn't find any way to connect it with the nucleo 64 board but i found the various illustration using arduino.i need the some sort of way to connect it with nucleo 64 board.Anyone of you know about please let me know.

Regards

Divesh Dutt

2 REPLIES 2
RomainR.
ST Employee
Posted on November 05, 2017 at 18:44

Hello,

You need to connect it with STM32F303 UART GPIO's.

But any U(S)ART wil works, STM32F303 had 5 UART peripherals.

I can suggest following setup using UART4:

HC05 PIN NucleoF303 CN7 PIN

TX(1) -------------------------- PC11 UART4_RX

RX(2) --------------------------- PC10 UART4_TX

3.3V(12) ------------------------ 3V3

GND(13) ----------------------- GND

http://developer.mbed.org/media/uploads/edodm85/1-881-.jpg

https://os.mbed.com/media/uploads/adustm/nucleo_f303re_morpho_left_2016_7_png

Then for software you can start with thei example

https://os.mbed.com/users/joeata2wh/code/xej-Nucleo-F401RE-and-HC05-Bluetooth/file/e985657f12b1/main.cpp

And replace in main.cpp line 48

Serialhc053(PA_11,PA_12);

by

Serialhc053(PC_10,PC_11);

You need also check the default baudrate of your HC05 and adjust the code if necessary.

Best regards

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Posted on November 06, 2017 at 02:18

>>

i found the various illustration using arduino.

The Nucleo conveniently has a shield connector so you should be able to emulate the connectivity illustrated. Perhaps you can cite some of the pages in question.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..