My sumobot has five range sensors (VL53L0X) to detect the sumobot enemy. In this video, I write an I2C driver to talk to these sensors and verify the traffic with a logic analyzer. I also add an existing driver on top as well as a software layer (enemy) for a nicer application interface.
0:00 intro
1:37 I2C driver
5:44 I2C init
12:00 I2C write
19:51 I2C read
25:54 Test function
29:00 Logic analyzer
31:18 Doesn't work...
34:05 Yes works!
38:18 Commit 1
40:05 VL53L0X driver
43:21 Test VL53L0X
47:12 Interrupt flank BUG!
48:33 Commit 2
50:00 Detect enemy
1:00:43 Commit 3
1:01:24 Video series code summary
🌍 Related links
Project code - github.com/artfulbytes/nsumo_...
VL53L0X blog post - www.artfulbytes.com/vl53l0x-post
What is I2C - • What is I2C, Basics fo...
I2C in a Nutshell - interrupt.memfault.com/blog/i...[f93c21bf5e]
🌍 Find me here
GitHub - github.com/artfulbytes
Instagram - / artfulbytescom
Website - www.artfulbytes.com
👨💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
#embeddedsystems #cprogramming #microcontroller
Негізгі бет Ғылым және технология I2C driver in C (with VL53L0X sensor) | Embedded System Project Series #23
Пікірлер: 16