Myvideo

Guest

Login

How To Write A Driver (STM32, I2C, Datasheet) - Phils Lab #30

Uploaded By: Myvideo
15 views
0
0 votes
0

⏵Hardware and PCB design course: 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: Visit for $2 for five 2-layer PCBs and $5 for five 4-layer PCBs. Patreon: Git: [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 ID: QIBvbJtYjWuHiTG0uCoK

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later