Description:
Продолжаем работать с библиотекой HAL. Сегодня мы продолжаем цикл уроков по подключению к МК STM32 различных датчиков, в которых применена технология MEMS (Микроэлектромеханические системы). Познакомимся сегодня мы с программирования датчиков, под названием "магнитометры" (датчики, измеряющие магнитную индукцию), которые очень широко используются в современной электронике. Подключим мы акселерометр-магнитометр LSM303DLHC, который установлен на отладочной плате STM32F3DISCOVERY, с которой мы познакомились ровно 10 уроков назад. В данной части занятия мы напишем функцию чтения данных датчика и попытаемся увидеть показания на ПК сначала в терминальной программе, а затем в двух программах визуализации. Купить отладочную плату STM32F3-DISCOVERY можно здесь http://ali.pub/1us6o3 Навигация по видео: 00:00 Введение 01:21 Напишем функцию снятия показаний с осей магнитометра 08:18 Внесём изменения в глобальную функцию чтения данных датчика 14:40 Проверим показания датчика в текстовом виде в программе Hyper Terminal 18:20 Добавим в код исключение превышения предельных показаний 21:30 Внесем изменения в код и попытаемся увидеть показания в программе визуализации 22:53 Напишем фильтр скользящего среднего 39:38 Проверим наш фильтр на живом датчике 42:33 Исправим ошибку в фильтре 43:17 Подкорректируем показания осей, чтобы подвести их ближе к нулю и проверим 44:52 Подправим код и попытаемся увидеть показания в программе визуализации 47:29 также попробуем увидеть изменение магнитной индукции с помощью другой программы визуализации Рекомендуется также перед просмотром данного урока просмотреть данное видео: УРОК 39. Подключаем акселерометр LSM303DLHC. Часть 1 http://www.youtube.com/watch?v=M7mC8bthwCQ УРОК 39. Подключаем акселерометр LSM303DLHC. Часть 2 http://www.youtube.com/watch?v=V5B18dWR5JI УРОК 39. Подключаем акселерометр LSM303DLHC. Часть 3 http://www.youtube.com/watch?v=knhRiqCGHpU УРОК 49. Подключаем магнитометр LSM303DLHC. Часть 1 http://www.youtube.com/watch?v=ewwQsNa3dsM Текстовая версия данной части урока, исходный код, техническая документация терминальная программа и 2 программы визуализации здесь http://narodstream.ru/stm-urok-49-hal-magnitometr-lsm303dlhc-chast-2/ Группа в контакте http://vk.com/club116656325 Группа в Одноклассниках http://ok.ru/group/52987126153436 Группа в Facebook https://www.facebook.com/groups/236905359999556/ Мой сайт "Программирование МК" http://narodstream.ru Форум http://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.