I2C Protocol - How to program any I2C device without libraries | Arduino and MPR121

preview_player
Показать описание
In this tutorial, I'm showing you guys how I2C Protocol and I2C device works and how to program them without using a dedicated library. This tutorial will save you a lot of trouble to NOT constantly use libraries and learn a new set of functions and commands for every I2C device you use.

I hope this will help you guys understand I2C communication at least a little bit better for your projects/prototypes.

MPR121 datasheet:

My MPR121 code program:

Chapters:
0:00 Introduction to Protocol/I2C protocol
3:07 MPR121 datasheet
6:15 Registers and operation requirement
14:10 I2C data transmission structure
25:50 Programming soft reset and configuration register
30:38 Reading from sensor measurement register
33:01 Storing and printing sensor readings
Рекомендации по теме
Комментарии
Автор

If you guys have any trouble understanding, or problem with using your I2C device. Join my discord server so we can discuss on it.

syahrul
Автор

This is exactly what I want to have. Thank you

taobaomaicai
Автор

This was very helpful. I was able to actually control an audio chip! Thanks!

FLLFlipclock
Автор

Thanks for the video. I am going to use it for shrinking my SHT35 humidity and temperature sensor project to ATtiny85

abhinilbose
Автор

Автор видео мололец. Благодаря этому я смог таки разобратся в управлении с mpr121.

denischerezov
Автор

Awesome tutorial and especially helpful for those branching out of Adruino's hobby kits. I have one question though, how do you do bit shifting, when the LSB is read before the MSB when you do a Wire.requestFrom?

kingtamil
Автор

very informative video, thanks a lot. could you do one for SPI protocol without library as well please?

rakshankulkarni
welcome to shbcf.ru