nRF52 BLE tester project PART1 [Building the nRF52 firmware]

  Переглядів 18,151

nrf5 dev

nrf5 dev

3 роки тому

This video is about the PART1 of building the BLE tester project.
The project has 2 parts.
In this 1st part, the main goal is to teach you how to :
* Use the template project to build your BLE peripheral based application.
* Create a custom BLE service for your application.
* Add characteristics with multiple properties enabled to this service.
* Use the custom service characteristic functions in your application.
* Write and read data and send notifications to a characteristic.
* Add a BLE service (SIG adopted. ex: Battery service) to your application.
* Handle the Buttons states using the app_button.h library.
* Control the Leds states using the bsp.h library.
* Use the Saadc peripheral to read multiple analog values.
* Convert the analog values to voltages.
* Create and use application timers.
* Use the nRF connect mobile app to interact with your application BLE services and characteristics.
* Use the Terminal Emulator included in Segger embedded studio to access the application uart LOGs.
The software tools needed for the development of this part :
* The nRF5 sdk v16 downloaded and extracted.
www.nordicsemi.com/Software-a...
* The nRF command line tools installed.
www.nordicsemi.com/Software-a...
* Segger Embedded Studio IDE installed.
www.segger.com/downloads/embe...
* The nRF connect mobile app installed, will use it for testing till we build our app.
play.google.com/stor/apps/det...
apps.apple.com/us/app/nrf-con...
* An nRF52 based development kit.
The project is supporting both the nRF52 DK (nrf52832 SOC), and the nRF52840 DK (nRF52840 SOC).
For any other nRF52 based SOC, you can just follow the same steps to rebuild the project for that SOC.
Project Github repo : github.com/rmptxf/nrf52_ble_t...
I've added the Android apk file, so you can also test that on your phone, till I finish recording how to build the other part.
If you found this project helpful, consider SUBSCRIBING to the channel and LIKE the video if you do so.
Also, if you encounter any issues while you build this part of the project, let me know in the comments section.
Part 02 : • nRF52 BLE tester proje...

КОМЕНТАРІ: 45
@doctoragoing6392
@doctoragoing6392 Рік тому
Thank you Sir! You saved my life ;-) Wish you the best :))
@clade8659
@clade8659 2 роки тому
Thanks for your sharing this amazing helpful video 고맙습니다
@Bianchi77
@Bianchi77 2 роки тому
Cool video, keep it up, thank you :)
@nielspaulin2647
@nielspaulin2647 3 місяці тому
EXCELLENT, save a LOT of time!
@JSC-4
@JSC-4 2 роки тому
Honestly, this is the best tutorial for using Bluetooth with the nRF52 boards. I haven't found much information online, and yet this video has taught me so much! You really should do a course on this, or at least put a link in the description where people if they want can send you money. Can I ask where you learned how to program the nRF boards?
@nrf5dev
@nrf5dev 2 роки тому
Thanks @JSCBLOG, Glad you find it helpful. I'll look into all that, thanks! I've learned how to program the nRF board, just by following the tutorials/instructions/ documentations on nordic website, the infocenter and also the devzone.
@gozdeguvendi7329
@gozdeguvendi7329 2 роки тому
Thanks for sharing your information with us, i want to rearrange this code for my analog sensor data, my sampling frequency should be at least 2kHz, i increased sample number in buffer. While i increase the sample number or decrease the app timer ticks, i had connection problems (device couldn't connect with pc via BLE. How can i change and define the timer and BLE parameters properly? Thanks for your help.
@damianfernandez4368
@damianfernandez4368 2 роки тому
Great video! very well explained step by step and in a simple way. I have bought the same development board as you and I have followed all the steps with some variations, but I would like you to be able to make a variant of this program to be able to upload an update file using the app, because there is little information about it and it would be Great !!
@nrf5dev
@nrf5dev 2 роки тому
Will look into that! Thanks
@DannyBokma
@DannyBokma 3 роки тому
Wow such a comprehensive video! Thanks for making all this! Question because I think I have missed it, why did you end up using Segger instead of Keil voor de SoC SDK?
@nrf5dev
@nrf5dev 3 роки тому
Thank you! Well, It's a good IDE to use and it is free for the use with Nordic SOCs. www.segger.com/news/segger-embedded-studio-ide-now-free-for-nordic-sdk-users/
@felipeiglesias4829
@felipeiglesias4829 2 роки тому
The best video tutorial for nRF5 development I've found so far. I am having an issue where the app you provided. I have it installed in 2 phones and can not see the Board advertising. Xiaomi 11 and Xiaomi Mix3 phones. If I use nRF connect or only checking BLE devices in my phone I can see. But your app is not working. I gave all the permissions, etc. Any thougths?
@aji9798
@aji9798 2 роки тому
excuse me sir, how i can change the ADC and Battery data to data from other sendor? I already create a new register and include the final data to change potensio and battery level but the Aplication still receive the potensio and battery level. How can i fix it sir? Please help me:(
@efedemir8123
@efedemir8123 3 роки тому
thanks for all the info can you also help how to send data that we read with i2c what is the difference between adc read and i2c read or are ther any difference while advertising them ?
@nrf5dev
@nrf5dev 3 роки тому
You're welcome! It doesn't matter where you get the data from, whether it is from the i2c or the saadc... you just need to have it in bytes so you can easily forward it to the ble characteristic value update function!
@MuhammadAhsan-rr4js
@MuhammadAhsan-rr4js 3 роки тому
make it complete tutorial on segger studio with nrf52 kit. and provide tips and trick on that. Because configuration of SDK.CONFIG.H it is mess, so please continue making video on this kit with more samples. thanks
@nrf5dev
@nrf5dev 3 роки тому
Will do !
@karthikguruchandran6926
@karthikguruchandran6926 2 роки тому
Thank you for the video. Extremely useful. I followed the view until about 1:30:00 and when i build it i can see my device advertising but i am not able to connect to it. I can see nothing under client on nRF connect app on my phone and Generic attribute on server. I am using a U-blox BMd-360 dev kit which has the nRF52811 so i used the PCA10056e to make changes. Any ideas why this is happening? Many thanks !!
@karthikguruchandran6926
@karthikguruchandran6926 2 роки тому
Just to add to my previous comment, i ended up buying a nrf52840 DK to follow this tutorial and it worked a treat! Thanks again for spending time to make this video.
@JustHangOutWithMe
@JustHangOutWithMe 3 роки тому
Can you please indicate which function is in charge of sending the data by BLE. For example, if I want to send any other variables, which function should I use? I'm a bit confused about the BLE functions. Thank you very much for your very constructive videos.
@nrf5dev
@nrf5dev 3 роки тому
It depends on the service characteristic. Cause you send data through the characteristic. For example: For the buttons states characteristic, this function // ble_cus_buttons_states_update(&m_cus, buttons_states, m_conn_handle) // is used to send buttons_states (which is just an array of 4 values representing the 4 buttons states) to the characteristic. At the central level (the mobile app (nrf connect or ..)) you can then read these values.
@JustHangOutWithMe
@JustHangOutWithMe 3 роки тому
@@nrf5dev Thank you for your reply; for example, I want to make a counter which is rising up every 200ms in accordance with Timer_Intervals that you've mentioned in your video, also I set up the ble_cus_init for making a new category to appear in the ble_connect app, but still, I cant send the value through the ble. I would appreciate it if you kindly let me know what I should do.
@toanduongthanh8625
@toanduongthanh8625 2 роки тому
2:41:20 which app did you use to control mobile from desktop?
@nrf5dev
@nrf5dev 2 роки тому
Hi @Toan, I use this one : github.com/Genymobile/scrcpy
@toanduongthanh8625
@toanduongthanh8625 2 роки тому
@@nrf5dev thank you so much, it's very useful
@namanveerbhan5960
@namanveerbhan5960 2 роки тому
Hi nrf5 dev, I am making a BLE project using Segger embedded studios. Would it work if I use segger embedded studio only ( not visual code) and follow your tutorial as well?
@nrf5dev
@nrf5dev 2 роки тому
Not sure what you mean by (visual code), but yeah segger IDE is what you'll all need in terms on an IDE.
@namanveerbhan5960
@namanveerbhan5960 2 роки тому
@@nrf5dev Thank you nrf5dev for a fast reply. By visual code I mean VS code or Visual Studio Code software.
@efedemir8123
@efedemir8123 3 роки тому
i am trying to make my project considering your code but when code enters bme280_value_update=potentio_level_update it goes to APP_ERROR_CHECK and after NRF_BREAKPOINT_COND; i didnt change much from your code what could the problem be ? thanks
@nrf5dev
@nrf5dev 3 роки тому
Hi @Efe, Hmm, could be something wrong with the data type! The potentio_level is a 1 byte data. Where do you get this error? is it at the stage of updating the data on the BLE characteristic ?
@efedemir8123
@efedemir8123 3 роки тому
@@nrf5dev yes i am using bme280 for the sensor i think it sends 8 bits of data and i am trying to send it as array like {temperature ,pressure, humadity} so i think i couldnt make the data type correctly / i am getting this error at updating the BME280 characteristics that i made using ur formulas but with 3 bits instead of 1 bit at .h file if i couldnt make myself clear sorry about that anyway thanks for commenting and helping back
@user-xw8mi4bv2o
@user-xw8mi4bv2o Рік тому
You should devide this video ninto several parts. For me was impossible to see all...Too bad.
@ElithionTV
@ElithionTV 3 роки тому
Audio is only on one side. Disturbing.
@nrf5dev
@nrf5dev 3 роки тому
I don't think so ! it is working on both sides for me.
@metermanCAN
@metermanCAN 3 роки тому
Yup, for me too.
@TheFloydPage
@TheFloydPage 3 роки тому
@@nrf5dev only on one side here too
@nrf5dev
@nrf5dev 3 роки тому
hmm, pretty weird. It is working on both sides for me. I have re-checked the export settings on the video editor software, and I see the Audio is STEREO! Also The MIC is not set to MONO. Did I miss something ? please let me know. I'm using OBS for recording and Shotcut for editing.
@nrf5dev
@nrf5dev 3 роки тому
Can you search for mono in the Windows search, then set 'Turn on mono audio' to ON ? If you are on another device, please look for that setting and set to ON. Hope that fixes it (at least on your device). Will try to fix that in the next upload.
@icmimportaciones6244
@icmimportaciones6244 Рік тому
Hola, puede dejarme su correo por favor
nRF52 BLE tester project PART2 [Building the Android app using Ionic]
2:02:51
🔥 Україна виходить у ФІНАЛ ЄВРОБАЧЕННЯ-2024! Реакція alyona alyona та Jerry Heil #eurovision2024
00:10
Євробачення Україна | Eurovision Ukraine official
Переглядів 238 тис.
Best OS for programming? Mac vs Windows vs Linux debate settled
8:41
i cant stop thinking about this exploit
8:40
Low Level Learning
Переглядів 157 тис.
Has Generative AI Already Peaked? - Computerphile
12:48
Computerphile
Переглядів 240 тис.
The ARM chip race is getting wild… Apple M4 unveiled
4:07
Fireship
Переглядів 602 тис.
How do Gas Nozzles Automatically Shutoff?
10:21
Lesics
Переглядів 68 тис.
nRF5 SDK - Tutorial for Beginners Pt 10 - UART   Serial communication
22:42
Sumair's Embedded Engineering
Переглядів 20 тис.
How does Bluetooth Work?
21:35
Branch Education
Переглядів 8 млн
STM32 DMA and FreeRTOS Tutorial - Phil's Lab #14
29:10
Phil’s Lab
Переглядів 107 тис.
APPLE УБИЛА ЕГО - iMac 27 5K
19:34
ЗЕ МАККЕРС
Переглядів 52 тис.
The ARM chip race is getting wild… Apple M4 unveiled
4:07
Fireship
Переглядів 597 тис.
The power button can never be pressed!!
0:57
Maker Y
Переглядів 27 млн