How To Write A Driver (STM32, I2C, Datasheet) - Phil’s Lab #30
⏵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
15 views
1737
505
1 week ago 00:05:17 1
The Ultimate Email Extractor in 2024: YellowPages Scraper 🌎
1 week ago 00:03:55 1
Pokemon GO Joystick, Teleport, Auto Walk - How to Get Pokemon GO Spoofer iOS & Android 2024 FREE
1 week ago 00:12:05 1
ZenBusiness Review 2024: What Makes It Stand Out?
1 week ago 00:04:14 1
Paramore: Decode [OFFICIAL VIDEO]
1 week ago 02:01:18 1
Half-Life 2: 20th Anniversary Documentary
1 week ago 00:36:24 2
Best of the Worst Trivia!
1 week ago 00:03:07 1
Delta Executor iOS iPhone Android NO KEY - Roblox Script Executor Mobile NEW UPDATE 2024
1 week ago 00:03:04 1
Bach, Organ Sonata No. 4 in E minor (BWV 528) 3. Un poco Allegro.
1 week ago 00:04:49 1
Play To Earn🔥This New Play to Earn Game is About to Make a Lot of People RICH
2 weeks ago 00:03:04 1
Arena Of Valor Hack - How to Get Unlimited Vouchers! iOS Android