LANGUAGE
Chinese (Simplified)
Japanese
Korean
Vietnamese
Spanish
French
Italian
Portuguese (Portugal)
German
Arabic
Tswana
Sundanese (Indonesia)
Friulian
Greek
Chiga
Limburgish
Arabic
Zulu (South Africa)
Ndebele (Zimbabwe)
Ganda
Malay
Guarani
Hindi
Quechua
Wolof
Bengali
French
Afar
Kazakh
Djerma
Ndebele (South)
Ukrainian
Malay (Jawi)
Waray
Kutchi
Crimean Tatar
Betawi
Tswana
Faroese
Acholi
Akan
Dhivehi
Norwegian
Uzbek
Belarusian
Kyrgyz
Krio
Chechen
Dzongkha
Bosnian
Albanian
Welsh
Balochi
Punjabi (Gurmukhi)
Urdu
Malagasy
Lithuanian
Dombeya
Kekchi
Pampanga
Papiamento
Persian
Assamese
Welsh
Lombard
Punjabi (Shahmukhi)
Udmurt
Marathi
Ilocano
Mizo
Greenlandic (Kalaallisut)
Pangasinan
Pashto
Polish
Assamese
Balinese
Kongo
Sango
Bambara
Malayalam
Ibanag
Minangkabau
Croatian
Armenian
Latin
Finnish
Russian
Chamorro
Ewe
Santali
Nahuatl (Eastern Western)
Marshallese
Igbo
Aymara
Ligurian
Azerbaijani
Latgalian
Abkhazian
Bulgarian
Hunsrik
Hawaiian
Thai
Somali
Madurese
Icelandic
Sicilian
Nuer
Acehnese
Latvian
Avar
Sindhi
Komi
Kurdish (Kurmanji)
Tamil
Mari
Marwari
Hungarian
Silesian
Hebrew
Northern Sotho
Tongan
Awadhi
Afrikaans
Corsican
Kurdish (Sorani)
Telugu
Goan Konkani
Khmer
Indonesian
Spanish
Hiligaynon
Chichewa
Lingala
Amharic
Cebuano
Maltese
Haitian Creole
N’Ko (West African Script)
Hmong
Xhosa
Arabic
German
Portuguese (Portugal)
Italian
French
Spanish
Vietnamese
Korean
Japanese
Chinese (Simplified)
2024.12.24
Blog

Using Arduino to Operate the MN52H-C40 Bluetooth Module: Implementing Bluetooth Beacon Functionality

Share:

[TAIWAN, 24th Dec. 2024]

 

Introduction

        In our previous exercise, we explored how to set up and program the Nordic nRF52 series chip using the Arduino IDE, successfully running the Arduino environment on the MN52H-C40 module. This time, we will delve deeper into utilizing these techniques to implement Bluetooth Beacon functionality. Bluetooth Beacon is a low-power wireless technology widely used in location services, asset tracking, and Internet of Things (IoT) devices. This demonstration will show you how to configure and program the MN52H-C40 module to function as a Bluetooth Beacon, thereby expanding your development projects and application scope. Whether you are a beginner or an experienced developer, this article will provide practical steps and tips to help you get started quickly.

 

Step 1: Arad connectivity MN52H-C40 Arduino design process demonstrating 

1.1 Hardware cabling demonstration

1.1.1 Cable setting chart

ALL_news_24L17_rslytguz1l

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1.1.2 Cabling layout

 

ALL_news_24L17_Uvq5ozyLpJ

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1.2 Setup Arduino IDE

1.2.1 Run Arduino IDE:

 

ALL_news_24L17_YTrBBljTIC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ALL_news_24L17_XC9WvF0Vqc


1.2.2 Board library package select

 

ALL_news_24L17_RKKyF3R24k

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ALL_news_24L17_WZoUHYDpBg

 

1.2.3 Click on “LIBRARY MANAGER”

 

ALL_news_24L17_B9jUxmdV1n

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

1.2.3.1 Install “Adafruit nRFCrypto”

Search “Adafruit nRFCrypto” and install.

 

 ALL_news_24L17_VVtQLuSAh1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1.2.4 Setup COM PORT for example upload

 

 

Step 2: MN52H-C40 BLE beacon advertising trial

2.1 Run beacon example:

File->Examples->Adarfuit Bluefruit Nrf52 Librarys->Peripheral->beacon

 

ALL_news_24L17_O0cScaiV68

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.2 Compile example:

Click Sketch-> Verify / Compile

Compile complete IDE shows the message as below: 

“Library Adafruit nRFCrypto has been declared precompiled:”

 

ALL_news_24L17_fMaTbkRmX9

 

2.3. Flash “beacon example executable file” to MN52H-C40 EVB

Click on Sketch -> Upload

Upload the successful message shown below.

 

ALL_news_24L17_KmVlfhyp6L

 

Step 3: MN52H-C40 beacon advertising demonstration

3.1 Use the beacon scanner board of Arad connectivity (PN: BN52H-C40) to capture the beacon advertising packets of MN52H-M EVB.

3.1.1 Hardware Setting Chart

 

ALL_news_24L17_Ndi0IyqJST

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3.1.2 Cable Layout

 

ALL_news_24L17_ajEGUygIwn

 

3.2 Environment setup of a personal computer

3.2.1 Run Tera Term VT: set up the COM port of the beacon scanner board.

 

ALL_news_24L17_A5qKLy6zrN

 

ALL_news_24L17_WzPUaP9Y90

 

3.2.2 Pairing MN52H-C40 MAC address to BN52H-C40 beacon scanner.

3.3 Trial start and result

3.3.1 Power on MN52H-C40 EVB

3.3.2 Power on BN52H-C40

3.3.3 Data capture result as below.

 

ALL_news_24L17_4PaDkjCFBh

 

3.3.4 Confirm the sent information is matched.

The sent information is matched to the received information, confirming that the beacon communication is complete.

 

 ALL_news_24L17_2HOzzIb310

 

Conclusion

The above instructions provide a general overview of how to integrate the Arduino IDE with the MN52H-40 BLE EVB for program development. Depending on their specific application scenarios, readers can further utilize example scripts available in the Arduino IDE for secondary development, thereby shortening the development time.

 

 

FURTHER PRODUCTS

MN52H-C40
MN52H-C40

■ 64 MHz ARM Cortex-M4 with FPU
■ NVM 1 MB / RAM 256KB
■ Communication Range 550 meters (line of sight)

MN52H-U40
MN52H-U40

■ 64 MHz ARM Cortex-M4 with FPU
■ NVM 1 MB / RAM 256KB
■ Communication Range 700 meters (line of sight)

MN52H-P33
MN52H-P33

■ 64 MHz ARM Cortex-M4
■ NVM 512KB / RAM 128KB
■ Communication Range 600 meters (line of sight)

MN52H-C33
MN52H-C33

■ 64 MHz ARM Cortex-M4
■ NVM 512KB / RAM 128KB
■ Communication Range 550 meters (line of sight)

MN52M-C32
MN52M-C32

■ 64 MHz ARM® Cortex®-M4 32-bit processor
■ NVM 512KB / RAM 64KB
■ Communication Range 300 meters (line of sight)

MN52M-P32
MN52M-P32

■ 64 MHz ARM® Cortex®-M4 32-bit processor
■ NVM 512KB / RAM 64KB
■ Communication Range 330 meters (line of sight)

MN52M-U32
MN52M-U32

■ 64 MHz ARM® Cortex®-M4 32-bit processor
■ NVM 512KB / RAM 64KB
■ Communication Range 490 meters (line of sight)

MN52M-C11
MN52M-C11

■ 64 MHz ARM® Cortex®-M4 32-bit processor
■ NVM 192B / RAM 24KB
■ Communication Range 300 meters (line of sight)

MN52M-P10
MN52M-P10

■ 64 MHz ARM® Cortex®-M4 32-bit processor
■ NVM 192B / RAM 24KB
■ Communication Range 330 meters (line of sight)

MN52M-C10
MN52M-C10

■ 64 MHz ARM® Cortex®-M4 32-bit processor
■ NVM 192B / RAM 24KB
■ Communication Range 300 meters (line of sight)

LANGUAGE
Chinese (Simplified)
Japanese
Korean
Vietnamese
Spanish
French
Italian
Portuguese (Portugal)
German
Arabic
Tswana
Sundanese (Indonesia)
Friulian
Greek
Chiga
Limburgish
Arabic
Zulu (South Africa)
Ndebele (Zimbabwe)
Ganda
Malay
Guarani
Hindi
Quechua
Wolof
Bengali
French
Afar
Kazakh
Djerma
Ndebele (South)
Ukrainian
Malay (Jawi)
Waray
Kutchi
Crimean Tatar
Betawi
Tswana
Faroese
Acholi
Akan
Dhivehi
Norwegian
Uzbek
Belarusian
Kyrgyz
Krio
Chechen
Dzongkha
Bosnian
Albanian
Welsh
Balochi
Punjabi (Gurmukhi)
Urdu
Malagasy
Lithuanian
Dombeya
Kekchi
Pampanga
Papiamento
Persian
Assamese
Welsh
Lombard
Punjabi (Shahmukhi)
Udmurt
Marathi
Ilocano
Mizo
Greenlandic (Kalaallisut)
Pangasinan
Pashto
Polish
Assamese
Balinese
Kongo
Sango
Bambara
Malayalam
Ibanag
Minangkabau
Croatian
Armenian
Latin
Finnish
Russian
Chamorro
Ewe
Santali
Nahuatl (Eastern Western)
Marshallese
Igbo
Aymara
Ligurian
Azerbaijani
Latgalian
Abkhazian
Bulgarian
Hunsrik
Hawaiian
Thai
Somali
Madurese
Icelandic
Sicilian
Nuer
Acehnese
Latvian
Avar
Sindhi
Komi
Kurdish (Kurmanji)
Tamil
Mari
Marwari
Hungarian
Silesian
Hebrew
Northern Sotho
Tongan
Awadhi
Afrikaans
Corsican
Kurdish (Sorani)
Telugu
Goan Konkani
Khmer
Indonesian
Spanish
Hiligaynon
Chichewa
Lingala
Amharic
Cebuano
Maltese
Haitian Creole
N’Ko (West African Script)
Hmong
Xhosa
Arabic
German
Portuguese (Portugal)
Italian
French
Spanish
Vietnamese
Korean
Japanese
Chinese (Simplified)
circuit
circuit
Inquiry Cart

total 0 items

Compare
For use within products in the same category only

total 0 items

In compliance with EU personal data protection laws, we are committed to protecting and providing you with control over your personal data.
By clicking "Accept All", you allow us to place cookies to enhance your experience on this site, help us analyze site performance and usage, and enable us to deliver relevant marketing content. You can manage your cookie settings below. By clicking "Confirm" you agree to the current settings.

Manage Cookies

Privacy Preference Center

In compliance with EU personal data protection laws, we are committed to protecting and providing you with control over your personal data.
By clicking "Accept All", you allow us to place cookies to enhance your experience on this site, help us analyze site performance and usage, and enable us to deliver relevant marketing content. You can manage your cookie settings below. By clicking "Confirm" you agree to the current settings.

View Privacy Policy

Manage consent settings

Necessary Cookies

Enable all

The website cannot function without these cookies and you cannot switch them off on your system. These cookies are typically set only in response to an action you perform (i.e. a service request), such as setting privacy preferences, logging in, or filling in a form. You can set your browser to block or prompt you for these cookies, but this may prevent some site features from working.