- 40
- 194 916
WSN & IoT
Indonesia
Приєднався 21 жов 2020
This UA-cam channel is for anyone interested in Internet of Things (IoT), wireless sensor networks (WSN), embedded systems, microcontrollers, sensors, protocols (Matter, CoAP, Thread, IP, IEEE802.15.4, BLE), interfaces (I2C, ADC and SPI) and the RTOS zephyr especially with SoCs from Nordic Semiconductor. The channel offers in-depth and easy-to-understand explanations and tutorials on these topics. From beginner to advanced, everyone will learn something and benefit from it. The channel shows how to use the latest technologies and the development of innovative projects from practice. Anyone interested in embedded systems, microcontrollers, and the Internet of Things will find a valuable resource here.
Zephyr and Nordic nRF Connect SDK - 03 DeviceTree Overlay and Buttons (v2.4.2)
The nRF Connect SDK by Nordic Semiconductor is built upon the real-time operating system, Zephyr, which offers robust support for multithreading. Hardware configurations are seamlessly managed through a device tree, and component activation or deactivation can be controlled via a configuration file.
In this video we will learn how to define our own LED resource in a DeviceTree overlay file. And after that we will program a button to turn this LED on and off.
Book (english version)
WSN & IoT (Basics, protocols and applications):
a.co/d/5yfTIuJ
ISBN-13: 979-8851358074
Book (deutsche Version)
WSN & IoT (Grundlagen, Protokolle und Anwendungen):
amzn.eu/d/hAbTgD0
ISBN-13: 979-8648512061
##Hardware###########
Developer board nRF52840-dk:
www.nordicsemi.com/Products/Development-hardware/nrf52840-dk
00:00 Introduction
00:23 LED schematics
00:51 Creating a devicetree overlay file
02:50 GUI for the devicetree
03:53 Disable i2c0 in the devicetree
04:44 Copy of a existing project
06:11 Programming button 0
11:40 Outro
In this video we will learn how to define our own LED resource in a DeviceTree overlay file. And after that we will program a button to turn this LED on and off.
Book (english version)
WSN & IoT (Basics, protocols and applications):
a.co/d/5yfTIuJ
ISBN-13: 979-8851358074
Book (deutsche Version)
WSN & IoT (Grundlagen, Protokolle und Anwendungen):
amzn.eu/d/hAbTgD0
ISBN-13: 979-8648512061
##Hardware###########
Developer board nRF52840-dk:
www.nordicsemi.com/Products/Development-hardware/nrf52840-dk
00:00 Introduction
00:23 LED schematics
00:51 Creating a devicetree overlay file
02:50 GUI for the devicetree
03:53 Disable i2c0 in the devicetree
04:44 Copy of a existing project
06:11 Programming button 0
11:40 Outro
Переглядів: 5 235
Відео
Zephyr and Nordic nRF Connect SDK - 02 GPIOs, Leds and DeviceTree (v2.4.2)
Переглядів 9 тис.Рік тому
The nRF Connect SDK by Nordic Semiconductor is built upon the real-time operating system, Zephyr, which offers robust support for multithreading. Hardware configurations are seamlessly managed through a device tree, and component activation or deactivation can be controlled via a configuration file. In this video, we'll explore various methods to manipulate GPIO ports, creating captivating LED ...
Zephyr and Nordic nRF Connect SDK - 01 Introduction and installation (v2.4.2)
Переглядів 13 тис.Рік тому
It is based on the Zephyr real-time operating system. Zephyr supports multithreading. The hardware is configured via a device tree and components are activated or deactivated via a configuration file. Internal and external resources such as I²C-bus or sensors can be controlled via drivers. The nRF connect SDK supports the network technologies OpenThread, ZigBee, BLE and Matter. Visual Studio Co...
Wireless Network Range: Factors and Comparisons (WiFi, Bluetooth, Thread, ZigBee, Matter, LoRa)
Переглядів 1 тис.Рік тому
Wireless Network Range: Factors and Comparisons (WiFi, Bluetooth, Thread, ZigBee, Matter, LoRa) In this video, we explore the secrets behind wireless network range: Understanding Range: Learn why wireless transmission range matters and how it impacts your devices. Influences: Discover factors that influences your signal. Fresnel Zone Explained: Get to grips with the Fresnel zone. The Fries Form...
Scrum Basics and PSM I Exam Preparation Guide
Переглядів 402Рік тому
In this Video we dive into the world of Scrum and prepare for the Professional Scrum Master I (PSM I) certification exam. We'll walk through the fundamental concepts of Scrum and provide you with essential tips and resources to pass the PSM I exam. Scrum Fundamentals: We'll start by explaining what Scrum is. You'll gain a clear understanding of Scrum roles, events, and artifacts. PSM I Exam Ove...
Air Quality: Carbon Dioxide and Carbon Dioxide Sensors (CCS811, MG811, SCD30, SCD40, SCD41)
Переглядів 2,1 тис.Рік тому
Welcome to my video on air quality, carbon dioxide and carbon dioxide sensors especcally the SCD30 and SCD41! 🌬️🔬 Air quality is a topic that concerns us all, but how well do we truly understand what's happening in the air around us? In this video, I'll delve deeper into the world of air quality, with a special focus on carbon dioxide. 🌍 Importance of Air Quality: First, we'll take a look at wh...
Programming Bluetooth Low Energy (BLE) with Zephyr - Part 3: Creating a BLE Custom Service
Переглядів 2,8 тис.Рік тому
Welcome back to our series on BLE programming with Zephyr! In this third installment, we'll take a deep dive into building a BLE peripheral device that features a Custom Service and a Custom Characteristic. Our journey begins with crafting our very own 128-Bit UUID using an online generator. With this unique identifier in hand, we'll proceed to advertise our newly minted Custom Service. Next, w...
Programming Bluetooth Low Energy (BLE) with Zephyr - Part 2: Environmental Sensing Service (ESS)
Переглядів 1,7 тис.Рік тому
In this video, we'll enhance our BLE device by adding the Environmental Sensing Service (ESS) to the existing Battery Service (BAS). For this purpose, we'll using again a nRF52840-dk and program it as a peripheral device. We'll cover advertising ESS, setting up temperature, pressure, and humidity characteristics, and implementing a callback function to read temperature data. By the end, you'll ...
Programming Bluetooth Low Energy (BLE) with Zephyr - Part 1: Battery Service (BAS)
Переглядів 3,8 тис.Рік тому
In this video, we'll be implementing the BLE Battery Service (BAS) using Zephyr. For this purpose, we'll utilize an nRF52840-dk and program it as a peripheral device. The first step involves enabling the BLE functionality in Zephyr, followed by activating the BAS and adding the battery status characteristic. Book (english version) WSN & IoT (Basics, protocols and applications): a.co/d/5yfTIuJ I...
Understanding Bluetooth Low Energy (BLE) - Theoretical Overview
Переглядів 12 тис.Рік тому
In this video, we offer a comprehensive and factual explanation of Bluetooth Low Energy (BLE), shedding light on its core principles and diverse applications. We will differentiate BLE from classic Bluetooth, emphasizing its primary function in facilitating low-power communication between devices. As we delve deeper, we'll explore the architecture of the BLE Stack, with a particular focus on es...
Zephyr and nRF Connect SDK: Logging
Переглядів 2,1 тис.Рік тому
Logging in programming refers to the practice of capturing and recording relevant information about the execution of a computer program. In this video we learn how we can activate logging in Zephyr. As hardware we are using the nRF52840 Developerkit and as Software the nRF Connect SDK together with VStudio Code.
Seeed Studio XIAO nRF52840 2: Zephyr, nRF Connect SDK, GPIO and UART
Переглядів 6 тис.Рік тому
Seeed Studio XIAO nRF52840: Zephyr, nRF Connect SDK, GPIO and UART The XIAO BLE is an inexpensive developer board from Seeed and is equipped with the Nordic Semiconductor SoC nRF52840. It can be programmed with the nRF Connect SDK. It supports BLE and also OpenThread via the RTOS Zephyr. The Xiao has an Arduino bootloader and the firmware in uf2 format can be easily transferred to the chip usin...
Seeed Studio XIAO nRF52840 1: Programming with Arduino IDE and nRF Connect SDK
Переглядів 13 тис.Рік тому
This very small and inexpensive developer board from Seeed is equipped with the Nordic Semiconductor SoC nRF52840 and can be programmed with both the Arduino IDE and the nRF Connect SDK. It supports BLE and also OpenThread via Zephyr. The Xiao has an Arduino bootloader and the firmware in uf2 format can be easily transferred to the chip using drag and drop. In this video, we first explore the b...
SPI (Serial Peripheral Interface) Part 2: Programming with Zephyr, nRF52840-DK and Bosch BME280
Переглядів 6 тис.Рік тому
SPI (Serial Peripheral Interface) is a serial transmission protocol used for communication between microcontrollers and peripheral devices such as sensors, memories or displays. It is easy to implement and offers high transmission speed, making it a common choice for many embedded systems. In diesem Video programmieren wir SPI mit Zephyr. Wir benutzen als Hardware das Nordic nRF52840-DK und den...
SPI (Serial Peripheral Interface) Part 1: Theory and simple Arduino example
Переглядів 2,4 тис.Рік тому
SPI (Serial Peripheral Interface) is a serial transmission protocol used for communication between microcontrollers and peripheral devices such as sensors, memories or displays. It is easy to implement and offers high transmission speed, making it a common choice for many embedded systems. In this video we learn how SPI works, programm a simple SPI-communication example between a arduino nano a...
Understanding Matter: Dive deeper into the Smart Home (Home Automation) Standard
Переглядів 11 тис.Рік тому
Understanding Matter: Dive deeper into the Smart Home (Home Automation) Standard
Thread / Matter BorderRouter with Raspberry Pi and nRF52840-dongle
Переглядів 11 тис.2 роки тому
Thread / Matter BorderRouter with Raspberry Pi and nRF52840-dongle
Zephyr and Nordic nRF Connect SDK - 9-axis sensor Bosch BNO055, quaternion, nRF52840 (I²C, FSM, SMF)
Переглядів 2,5 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 9-axis sensor Bosch BNO055, quaternion, nRF52840 (I²C, FSM, SMF)
Zephyr and Nordic nRF Connect SDK - 04b Scheduling with a Finite State Machine (FSM, SMF, MCP9808)
Переглядів 2,7 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 04b Scheduling with a Finite State Machine (FSM, SMF, MCP9808)
Zephyr and Nordic nRF Connect SDK - 03b Temperature, pressure and humidity from a Bosch BME280
Переглядів 4,4 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 03b Temperature, pressure and humidity from a Bosch BME280
Zephyr and Nordic nRF Connect SDK - 08 CoAP client/server communication
Переглядів 2,4 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 08 CoAP client/server communication
Zephyr and Nordic nRF Connect SDK - 07 Using UDP in OpenThread over API
Переглядів 2,3 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 07 Using UDP in OpenThread over API
Zephyr and Nordic nRF Connect SDK - 06 OpenThread CLI Example
Переглядів 2,9 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 06 OpenThread CLI Example
Zephyr and Nordic nRF Connect SDK - 05 Analog/Digital-Converter (ADC)
Переглядів 5 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 05 Analog/Digital-Converter (ADC)
Zephyr and Nordic nRF Connect SDK - 04 Scheduling Tasks, Timers, Work Queues and Threads
Переглядів 5 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 04 Scheduling Tasks, Timers, Work Queues and Threads
Zephyr and Nordic nRF Connect SDK - 03 Reading a sensor over I²C and a driver (MCP9808)
Переглядів 8 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 03 Reading a sensor over I²C and a driver (MCP9808)
Zephyr and Nordic nRF Connect SDK - 02 Text output, devicetree, Leds and Buttons
Переглядів 4,9 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 02 Text output, devicetree, Leds and Buttons
Zephyr and Nordic nRF Connect SDK - 01 Introduction and installation
Переглядів 8 тис.2 роки тому
Zephyr and Nordic nRF Connect SDK - 01 Introduction and installation
Thread network technology - 07 OpenThread Border Router with Raspberry Pi and nRF52840-dongle
Переглядів 8 тис.2 роки тому
Thread network technology - 07 OpenThread Border Router with Raspberry Pi and nRF52840-dongle
Thread network technology - 06 CoAP (practical example)
Переглядів 3,8 тис.2 роки тому
Thread network technology - 06 CoAP (practical example)
I mean, this is all interesting, but unfortunately not really applicable. It's obvious that the physical limitations of devices that work in the same frequency band are also identical. But the really interesting question would be, how are those protocols performing in practice. How well do they cope with collisions, packet loss, and so on. Just take Lora for example. While always working at around 868Mhz (EU), it makes an enormous difference in the achievable range if the spreading factor is set to 6 instead of 2. Using SF6 i get a reliable signal out of a cellar with concrete walls, that's two houses away from me. No try that with Zwave on the same frequency. You'd probably never even see an intact package arriving at your receiver. The theoretical range of BLE is 300m here, but i don't believe that anyone is actually using that protocol reliably over even a third of that range.
That is correct. There are simply too many factors that influence the range and, of course, the modulation techniques are also part of this. It does make a difference whether I use QPSK or the more stable BPSK modulation, for example. But then I have limitations in terms of speed. In addition, things like the utilisation of the radio channels also play a role. We have only extensively tested the range of IEEE 802.15.4 modules and it was very difficult to find suitable test routes. And the question will always arise as to the area of application in which the radio modules are used. City, country, sea, buildings, high data rate, low data rate. There are simply too many factors to make generalised statements about range. Ultimately, users also utilise technologies that they can easily implement and that are available. BLE and especially BLE Mesh are also used, although these are usually not the best technologies. The tests we did with IEEE 802.15.4 devices fit the theory I discussed, but these are only small samples. The theory is good and useful for an initial estimation of range, but in a specific application the only option is usually to test. Nordic Semiconductor has an amplifier module for the nrf52840 and has also achieved ranges of over 1km with BLE. I have not yet been able to check this and I would also be interested to know whether the same range can be achieved with Thread or ZigBee using the same module, which is also capable of IEEE 802.15.4. In practice, however, the range will be mostly much shorter and, of course, the power consumption will be correspondingly higher.
I came across this video on BLE, and it surprised me. The perspective offered is both enlightening and captivating. If you're passionate about BLE, you should check this out-there are some real gems here that might change your viewpoint.
Thank you :) you are very concise!
Iec81860 has much better explanations of similar technology - who thought cluster or fabric were decent names
This is interesting! A theoretical overview of Bluetooth Low Energy (BLE) provides valuable insights into its architecture and applications. BLE's design for low-power communication makes it a cornerstone technology for IoT devices, wearable tech, and other energy-efficient applications. Its ability to connect seamlessly across devices has revolutionized real-time data transfer in industries ranging from healthcare to smart homes. For those looking to implement BLE in their projects, GAO Tek offers a comprehensive range of BLE tools and solutions that could help turn theory into practice. Definitely worth exploring!
I came across this video on programming Bluetooth low energy, and it surprised me. The perspective offered is both enlightening and captivating. If you're passionate about programming Bluetooth low energy, you should check this out on GAO RFID Inc -there are some real gems here that might change your viewpoint
I came across this video on Bluetooth Low Energy (BLE), and it surprised me. The perspective offered is both enlightening and captivating. If you're passionate about Bluetooth Low Energy (BLE), you should check this out-there are some real gems here that might change your viewpoint.
I was struggling with getting printk to work. Thank you for giving me the answer!
You are welcome. Thank you for your positive feedback.
Hello chief , they are very useful videos. Could you make an example about Sleepy end device and Synchronized Sleepy end device with nRF52 Devices. Thank you for these videos :)
Danke fuer das Video, aber sorry, das Vogelgezwitscher und die weiteren Nebengeräusche sind echt störend.
A really nice tutorial for me as beginner in Zephyr! danke schon, Markus!
could you make a video about writing drivers?
Do you discuss the SMP details in your book? Btw thank you for this great video
You are welcome. No, the book does not go into detail about the SMP. However, CBC-MAC and CTR are explained in more detail in the chapter about IEEE 802.15.4.
Can you please tell how to do it without the Bridge like via simple breadboard connecting my BnO055 Sensor
How. The. Fuck. does every tutorial not work when I follow it 100%. Zephyr devicetree is stupid.
Yes, it can sometimes be a bit frustrating, especially if something has been changed in the basic settings during updates. What error is occurring? Perhaps someone can help.
Thanks, Great Content
Thanks, Great Content
Such a great hands on video.could you please explain the I2C code in zephyr in this that would be more helpful and much appreciated. Keep up the great work.
Thanks for your sharing. When do you plan to write a book ?
You are welcome. Book is already available: WSN and IoT: Basics, protocols and applications a.co/d/iHExiPG
@wsniot We need more detail how to use zephyr
Thank you for your Zephyr video; it's quite detailed, and I really like it. I hope to see more videos.
Kindly ask if this code is opened on github?
Good day WSNIOT, need some help with Customized programming to received Bluetooth devices' signal, how to contact you.
hi i wanna work with the lsm6ds3 integrated in the seeed when i build it always builds xiao_ble.dts not xiao_ble_nrf52840_sense.dts can you help me please
Hi, sir, I have a question. Have you tried the zephyr SPI comm with an NRF52832? I seem to have a trouble trying to communicating with a DWM1000 qorvo devboard. I manage to send 0x00, but failed to receive the chip ID, I always get 0xFFFFFFFF
Hey, did you find a solution to your Problem? I'm currently trying to communicate with the DWM1000 via the DWM1001-dev board
Thank you, I love your videos. You are a legend!
Just what is needed to explain the device tree and the many macros. Full of excellent tips and insights. Thank you!
If the otbr is setup using a raspberry pi and nrf dongle how can i connect an eve door and window sensor to this network
Thank you for this brilliant example! I know that this is a basic c question but: how do I convert a real int8_t temperatureValue into this JSON?
You can use the function sprintf for example to generate a Json-String: static uint8_t buf[20]; static int buf_length; static int counter=0; while (1) { k_msleep(1000); buf_length= sprintf(buf, "{\"Counter: %d ", counter\"}); counter++; }
听朋友介绍来的, 听说老师讲的不错, 特来瞻仰.
Great video like a lot of people already have said, do you have any video on how to set up a custom GATT Client as well?
Very Nice n informative video
Could anyone clarify me on how to install sdk from nrf connect extension and also regarding how to flash the nrf device
Did you ever find a way to upload code without entering bootloader mode every time? The button is so small it's a deterrent to use this chip in my projects.
Not really. You could try to solder a bigger switch to reset on the downer side and GND. Or using a J-Link programmer, but also not more comfortable. Or you are just using another dongle like from Nordic or MDK instead with the ner52840. MDK support also uf2 Bootloader as i remember.
Right, honestly, I am a hardware engineer and also would like to understand the deep therories in every functional diagram a long time. This video really inspir me a lot. thank you! I also also pricking up the Nordic nRF52840 :)
Hello Sir, Is it possible to get the address of the connected centralized device into the peripheral device and print it using any services?
没有中文字幕,看起来,太费劲了.
Just perfect! Thank you
Hi Markus, This is a great and informative video for an introduction into the Zephyr I2C implementation. I have a quick question if I may; You described a method to connect to an I2C device if you don't have an inbuilt library and a method if you do have access to a library. My question is, how do you mix the two if you have for example a sensor on your I2C bus for which you need to write your own interface driver and another sensor on the I2C bus (at a different I2C address) that has a Zephyr driver? is it possible to use both I2C drivers methods on the same port? Cheers Michael
Thanks for the nice feedback. Yes, should be no problem. The access to the I2C-bus is not exclusive. At the end the driver uses the same instruction like writing it manually with the Zephyr functions.
Thanks a lot for your videos!!
I had an issue with my BMP280 sensor that the value printed out would not change. For anyone else that this might help I had looked in the driver code and the datasheet and figured out that I had to turn the device from sleep mode to normal mode (or forced). I did this by adding these lines: #define BME280_TEMP_OVER (3 << 5) //3.3.2 #define BME280_PRESS_OVER (3 << 2) //normal power. 3.3.1 of datasheet #define BME280_MODE 0x03 //normal mode #define BME280_CTRL_MEAS_VAL (BME280_PRESS_OVER | BME280_TEMP_OVER | BME280_MODE) err = i2c_reg_write_byte(i2c_dev, BMP280_I2C_ADDRESS, 0xF4, BME280_CTRL_MEAS_VAL); where 0xF4 is the ctrl_meas register. Thanks for the videos they are really helping with learning zephyr RTOS!
This video is helpful. How can I connect my BLE peripheral to only a specific Central device?
Thanks for this amazint content. What you are doing is really really really amazing. Danke
Hi Markus. I've been following your process with the dk version with a Pi4 and been able to fix some of the issues on the way. Now I'm getting stuck at the script for bootloader "Detecting C compiler ABI info - failed" Pardon my ignorance, but I can't seem to find a way for cmake to recognize the compiler. Would you be able to point me in the right direction?
Awesome sir!! Thanks for sharing..🙏
Done with same setup however not able to sniff zigbee communication - getting only broadcast beacon requests ............. am I missing something ?
You are probably missing something. The stick is an IEEE 802.15.4 sniffer. If you have set the correct channel, you will also receive ZigBee packets since IEEE 802.15.4 are the two downer layer from ZigBee. Is your ZigBee network encrypted? Have you set the network key in Wireshark? At least you should see the IEEE 802.15.4 part from the ZigBee-pakets
Hello @wsniot, I am not able to read uart via putty with port ComX. I seen it inside Device Manager -> Ports (COM & LPT)
Hi, this video is very useful, thank you for sharing. I try with nRF52840 it is working but, when l try with nRF52832 it can't build. is the nRF52832 not support battery services? What is the problem?
The BAS support is normaly only a software point of view. If it canont be build with the nRF52832, I guess there is another problem. Maybe not enough memory.
How could I implement a GATT client? Any examples anyone can point me to?
why printk and rtt dont working with out sleep at least 1ms?
Thanks for this. Can you please explain how the passcide or QR code gets generated? Can this be anything? I read somewhere that the QR code gets generated from the Vendor and product ID. How does the commissioner then check that this passcode or QR code is something valid that makes sense?