Description:
Продолжаем работать с библиотекой HAL. Сегодня мы продолжаем цикл уроков по подключению к МК STM32 различных датчиков, в которых применена технология MEMS (Микроэлектромеханические системы). Продолжаем программировать датчики под названием "магнитометры" (датчики, измеряющие магнитную индукцию), которые очень широко используются в современной электронике. Подключим мы акселерометр-магнитометр LIS3MDL, который установлен на плате расширения X-NUCLEO-IKS01A1, которую мы подключаем к отладочной плате STM32F401RE-NUCLEO. В сегодняшней части занятия мы продолжим и закончим писать инициализацию датчика и начнём писать код для получения данных с его осей. Отладочную плату Nucleo STM32F401RE можно приобрести здесь: http://ali.pub/1u80dx и здесь https://hz.ru.aliexpress.com/item/32815545595.html?af=36585_1&cv=23724416&cn=46satxw9kuw8wdwa5ffq6dtmy0ksuhkp&dp=v5_46satxw9kuw8wdwa5ffq6dtmy0ksuhkp&af=36585_1&cv=23724416&cn=46satxw9kuw8wdwa5ffq6dtmy0ksuhkp&dp=v5_46satxw9kuw8wdwa5ffq6dtmy0ksuhkp&product_id=32815545595&afref=&aff_fcid=2c80a04cfc8d44b29829c68aa0f92636-1711246042093-08551-_9hwhcM&aff_fsk=_9hwhcM&aff_platform=portals-hotproduct&sk=_9hwhcM&aff_trace_key=2c80a04cfc8d44b29829c68aa0f92636-1711246042093-08551-_9hwhcM&terminal_id=c3d9b17e325b4756837076ba4bb66527 Оценочную плату X-NUCLEO-IKS01A1 можно приобрести здесь https://hz.ru.aliexpress.com/item/32785904601.html?af=36585_1&cv=23893925&cn=46satxw994z6ze42yxc0so6580aj5ekc&dp=v5_46satxw994z6ze42yxc0so6580aj5ekc&af=36585_1&cv=23893925&cn=46satxw994z6ze42yxc0so6580aj5ekc&dp=v5_46satxw994z6ze42yxc0so6580aj5ekc&product_id=32785904601&afref=&aff_fcid=4fb2deb61b8d4332998191396488078a-1711246041789-08163-_9hwhcM&aff_fsk=_9hwhcM&aff_platform=portals-hotproduct&sk=_9hwhcM&aff_trace_key=4fb2deb61b8d4332998191396488078a-1711246041789-08163-_9hwhcM&terminal_id=748093efcc2843dda2f2bd58549f7739 Навигация по видео: 00:00 Введение 00:49 Напишем первоначальное отключение датчика перед остальной инициализацией 03:25 Напишем включение BDU 05:39 Инициализация частоты снятия показаний 08:10 Включим пределы измерений 09:19 Включим режим высокой производительности по осям X и Y 11:05 Отключим датчик температуры 12:07 Включим наш магнитометр 15:00 Напишем функцию считывания данных с осей 16:51 Начинаем вносить изменения в высокоуровневую функцию обработки считанных значений и посылку их в USART 20:00 Напишем обработчик окончания счёта таймера Рекомендуется также перед просмотром данного урока просмотреть данное видео: УРОК 38. Знакомство с платой STM32F401RE-NUCLEO и оценочными платами https://www.youtube.com/watch?v=L-ta_BhW6CU УРОК 42. Подключаем акселерометр LSM6DS3. Часть 1 https://www.youtube.com/watch?v=jMKXOjJwOs4 УРОК 51. Подключаем магнитометр LIS3MDL. Часть 1 https://www.youtube.com/watch?v=it-Man16MZo Текстовая версия данной части урока здесь https://narodstream.ru/urok-51-podkljuchaem-magnitometr-lis3mdl-chast-2/ Группа в контакте http://vk.com/club116656325 Группа в Одноклассниках http://ok.ru/group/52987126153436 Группа в Facebook https://www.facebook.com/unsupportedbrowser Мой сайт "Программирование МК" https://narodstream.ru/ Форум https://narodstream.ru/forum/ Вы можете помочь проекту: ЮMoney https://yoomoney.ru/to/41001176473465 Webmoney Z341906933112 Карта Сбербанка (МИР) 2202201799288929 Можно в USDT 1) Сеть:TRC20 Адрес: TBBPFk5Widf1CYvF7Xk5ssKXeiPJHwtMgS 2) Сеть: BSC BNB Smart Chain (BEP20) (комиссия намного меньше) Адрес: 0x2e38754DF1e54649Bf0D5CD6fD6D8c96a9f22f17 3) Сеть: Huobi ECO Chain (HECO) (комиссия еще меньше) Адрес: 0x2e38754DF1e54649Bf0D5CD6fD6D8c96a9f22f17
Preparing download options
http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.
The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.
UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.
UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.
The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.
The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.
You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.
The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.
This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.
It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.