How To Write A Driver (STM32, I2C, Datasheet)
How to write an I2C driver from scratch in C for an STM32F4 microcontroller interfacing with an accelerometer (Analog Devices ADXL355) using the datasheet and ST's HAL (hardware abstraction layer).
Going through schematic, STM32CubeIDE setup, low-level functions, initialisation, setting registers, reading registers, configuring the sensor, reading data, and finally testing the driver.
Free trial of Altium Designer: https://www.altium.com/yt/philslab
Visit https://jlcpcb.com/RHS for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs.
Patreon: https://www.patreon.com/phils94
Git: https://github.com/pms67
[TIMESTAMPS]
00:00 Introduction
00:28 Sensor (ADXL355, JLCPCB)
01:22 Altium Designer
01:42 Sensor Board Schematic and PCB (KiCad)
03:38 STM32F4 Schematic (LittleBrain)
04:16 STM32CubeIDE Setup
06:40 Basic Project Structure
07:55 Driver Header File
16:11 Driver Source File (Low-Level Functions)
18:41 Driver Source File (Sensor Initialisation and Setup)
26:18 Driver Source File (Temperature Measurement)
30:21 Driver Source File (Acceleration Measurements)
34:10 Testing the Driver
Видео How To Write A Driver (STM32, I2C, Datasheet) канала Phil’s Lab
Going through schematic, STM32CubeIDE setup, low-level functions, initialisation, setting registers, reading registers, configuring the sensor, reading data, and finally testing the driver.
Free trial of Altium Designer: https://www.altium.com/yt/philslab
Visit https://jlcpcb.com/RHS for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs.
Patreon: https://www.patreon.com/phils94
Git: https://github.com/pms67
[TIMESTAMPS]
00:00 Introduction
00:28 Sensor (ADXL355, JLCPCB)
01:22 Altium Designer
01:42 Sensor Board Schematic and PCB (KiCad)
03:38 STM32F4 Schematic (LittleBrain)
04:16 STM32CubeIDE Setup
06:40 Basic Project Structure
07:55 Driver Header File
16:11 Driver Source File (Low-Level Functions)
18:41 Driver Source File (Sensor Initialisation and Setup)
26:18 Driver Source File (Temperature Measurement)
30:21 Driver Source File (Acceleration Measurements)
34:10 Testing the Driver
Видео How To Write A Driver (STM32, I2C, Datasheet) канала Phil’s Lab
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
STM32 Programming Tutorial for Custom Hardware | SWD, PWM, USB, SPIIIR Filters - Theory and Implementation (STM32)How to Build Linux Kernel Drivers on the Raspberry Pi | Raspberry Pi GPIO Driver Development in CSingle to Split Rail DC Power Supply Design | KiCad and JLCPCB AssemblyHeadphone Amplifier Design | NE5532, KiCAD, Baxandall Volume ControlEEVblog #1327 - 3 Ways to FAIL at PCB ManufactureWhat is I2C, Basics for BeginnersKiCad STM32 + RF + USB Hardware DesignEEVBlog 1436 - The TOP 5 Jellybean OPAMP'sHow To Improve Your PCB Designs (Common Mistakes)Miniature PCB Design | STM32 + Magnetometer + CAN | AltiumSTM32 Guide #1: Your first STM32 dev boardIntroduction to FPGA Part 2 - Getting Started with Yosys, IceStorm, and Apio | Digi-Key ElectronicsKiCad STM32 Hardware Design - An Overview in 20 MinutesKiCad 5.99 - PCB Layout TimelapseGetting Started With STM32 and Nucleo Part 2: How to Use I2C to Read Temperature Sensor TMP102Raspberry Pi PICO | Starting With MicroPython + Examples | I2C OLED, ADC, PWMFIR Filter Design and Software ImplementationSTM32 DMA and FreeRTOS Tutorial