I2C vs SPI

  Рет қаралды 49,703

jumbler

jumbler

Күн бұрын

Пікірлер: 50
@hugodavid2244
@hugodavid2244 4 жыл бұрын
En conclusión, SPI es más rápido que I2C, pero SPI necesita más pines (y si quieres conectar más Slaves en modo SPI, necesitarás un pin exclusivo para cada uno, lo que es una desventaja). I2C solo necesita 2 pines (el reloj y el de datos), y con esos dos pines puedes conectar todos los Salves que quieras sin la necesidad de más pines. Usos recomendados: -I2C: recomendado para la recolección de datos de muchos sensores a la vez. -SPI: recomendado para manejar grandes cantidades de datos en el menor tiempo posible (como el SD reader, pantallas led, displays, etc), pero la cantidad de Slaves debe de ser baja.
@ArjanvanVught
@ArjanvanVught 6 жыл бұрын
I2C has a limitation for the clock speed : 400 KHz. Where SPI can go in 10’s MHz. Also it is important how the OLED library is optimized for updating the display. Both applies for Arduino and Raspberry Pi. Where the Raspberry Pi might support higher SPI clock speed then the Arduino does.
@jumblework
@jumblework 6 жыл бұрын
Thanks for your complementing commentary. I just made this video from a simple question and test, "which bus is more suitable for my Arduino project ?". Usually Arduino works on tiny 16MHz clock or less. So in such situation, it's might be tough to get satisfing performance with multi tasked Arduino, even if the library will be more optimized. Sometimes, Arduino stumbles just by 115.2kpbs serial communication, if there are other task on programming.
@dekus80
@dekus80 6 жыл бұрын
This OLED does not have 400kHz limitation. In my project with STM32 (costs same price as avr :) ) and 1.3 OLED with software i2c (I had to use pins wo hw i2c) full screen (128x64) update speed is 12ms. You can calculate that it's much more than 400kHz. And it is 83Hz fps. P.s. I don't use any third party libraries. P.P.S.And it's fun to watch which slideshow on the screen faster :).
@dekus80
@dekus80 6 жыл бұрын
Arjan van Vught AVR has 8MHz SPI. With hw 4MHz SPI and sw d/c line on 128x64 LCD I had 120fps. I can't belive how it could be turned into such a slideshow. :)))). Arduino :))l
@kcassoen
@kcassoen 5 жыл бұрын
damn background musics jazzy
@jumblework
@jumblework 5 жыл бұрын
Thank you.
@seanocansey2956
@seanocansey2956 5 жыл бұрын
The big difference between SPI and I2C is that SPI is *able* to be ran at much higher speeds. With a 16MHz arduino or an even faster microcontroller, you really begin to see a difference.
@jumblework
@jumblework 5 жыл бұрын
Thank you for comment and information :-)
@user-75333
@user-75333 5 жыл бұрын
ロシアからのご挨拶、 そしてビデオをありがとう!
@jumblework
@jumblework 5 жыл бұрын
Спасибо за ваш комментарий
@NikolayAgopyan
@NikolayAgopyan 6 жыл бұрын
Amazingly useful information, thank you!
@jumblework
@jumblework 6 жыл бұрын
I appreciate your comment and evaluation !
@AnimilesYT
@AnimilesYT 5 жыл бұрын
As far as I know: SPI is faster, but requires a slave selection line for each slave, which might not be practical when there are a lot of things to connect to. I2C is slower, but you don't need as many wires. Just a single two-wire bus going to all devices is good enough. If, for instance, you want 20 of those screens for a project, then SPI would be a challenge since most microcontrollers don't offer that many pins. So you'd have to use something else to expand the amount of slave selection pins. I2C should work perfectly fine.
@jumblework
@jumblework 5 жыл бұрын
Thankful and appreciate for your comment!
@Dancopymus
@Dancopymus 3 жыл бұрын
For I2C or SPI, is the Arduino code the same? Thanks
@toto99303
@toto99303 3 жыл бұрын
awesome testing! thank you!
@inibapakbudi
@inibapakbudi 6 жыл бұрын
Thanks for share this valuable information to us.
@jumblework
@jumblework 6 жыл бұрын
Thank you for comment.
@fiveseven808
@fiveseven808 8 жыл бұрын
this video is awesome!!!!! i can't believe there aren't more likes on it! thank you very much for this comparison! i need to know if there's anything I can do to improve i2c speed on my OLED display using a raspberry pi. I think I will try an SPI display now!
@jumblework
@jumblework 8 жыл бұрын
Thank you for your comment. I had been struggled for I2C, because its response is slow. I noticed that SPI has higher baud rate. So I got it and checked it out. Now, I use this display in my own follow focus project. Also, watch my arduino project. If you like. kzbin.info/aero/PLsEOJw3kP-w33jLU8DBLKqJhKVCbry85f
@mohammedal-alaw6249
@mohammedal-alaw6249 6 жыл бұрын
Awsome work in my opinion!! :)
@lexander9686
@lexander9686 3 жыл бұрын
It sure is ابو ابراهيم
@TINTIN-fg7wv
@TINTIN-fg7wv 7 жыл бұрын
Excellent comparison... Thanks for sharing
@jumblework
@jumblework 7 жыл бұрын
Thank you. I will be glad if it helps you.
@RTOHIO
@RTOHIO 4 жыл бұрын
Have you done anything comparable with ESP32? I'm trying to convert, but not having much luck with displays
@mellee3436
@mellee3436 2 жыл бұрын
The scl and SDA are not 4 and 5. If that's what your issue is. Ive had the small oleds working using the Adafruit ssd1306 library and esp32. I'm no genius by the way.
@tommymagic869
@tommymagic869 7 жыл бұрын
Good work mate!
@jumblework
@jumblework 7 жыл бұрын
Thanks!
@Nikita_Pro89
@Nikita_Pro89 Жыл бұрын
good job, thanks!)))
@МаксимВолодимирович-с2х
@МаксимВолодимирович-с2х 7 жыл бұрын
Good work! Thank You!
@jumblework
@jumblework 7 жыл бұрын
you're welcome!
@mckryall
@mckryall 6 жыл бұрын
I believe you're using I2C in slow mode. I'm not sure if fast I2C is as fast as SPI, but I believe I've used that driver chip (128x64, SSD1306?)
@jumblework
@jumblework 6 жыл бұрын
Thank you for a comment. Truly, I2C has "fast mode" and it can be used on u8glib, I think. But don't watch this with strict eyes, please. This video was made from a simple question that which bus is more proper for Arduino. And as my conclusion, there are no big differences on its spec, as long as I use "Arduino".
@danielaesmaili2391
@danielaesmaili2391 5 жыл бұрын
nice set of test
@jumblework
@jumblework 5 жыл бұрын
appreciate for your evaluation.
@agaldoo
@agaldoo Жыл бұрын
Use the esp32. It has 240 mhz clock
@BenM0
@BenM0 6 жыл бұрын
awesome!! thanks for sharing
@jumblework
@jumblework 6 жыл бұрын
Thanks for a comment. I'm glad if this video would be useful.
@TheEtbetween
@TheEtbetween 6 жыл бұрын
Wow thanks always wonder what advantages was, I guess SPI is faster
@jumblework
@jumblework 6 жыл бұрын
Thanks. But these are just simple test. Actual speed will depend on your items, settings, library, I think.
@nikilragav
@nikilragav 4 жыл бұрын
Try setting your i2c data rate to 1Mbps
@jacobdavis000
@jacobdavis000 3 жыл бұрын
Another music video from India.
@mohammedal-alaw6249
@mohammedal-alaw6249 6 жыл бұрын
unfortunatlly for the anti-allising affect of your filmming camera showed if you want to reduce it you can use an action camera and it would In Shaa ALLAH Disappear
@jumblework
@jumblework 6 жыл бұрын
Thanks you for comment. You may avoid from it by changing resolution of player setting. Or it maybe an un-ideal "bokeh" which is caused by lack of my focusing technique. Although, I don't want to use small sensor camera as much as possible, sorry.
@MrSasha3050
@MrSasha3050 7 жыл бұрын
Прикольно
@jumblework
@jumblework 7 жыл бұрын
Спасибо
@billleonard2015
@billleonard2015 4 жыл бұрын
Too much reading. Text in the middle of the screen, text in the subtitle. Distracting electronic organ.
@forgeteverythingyouknow5413
@forgeteverythingyouknow5413 4 жыл бұрын
Too much negativity, only seeing or making up problems... bothering everyone else with your own shite. that's how you write. That's how you come across. Impersonal, unfriendly, negative, and all the while thinking this is good. No. Your reply sucks as much as how badly you see mine back to you. This guy did great work. He's a person. He's not your bitch. You don't get to just hammer someone and walk away as though you did a good thing. You didn't.
Лекция 308.  Шина I2C
19:54
Электротехника и электроника для программистов
Рет қаралды 104 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 35 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 262 #shorts
00:20
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 26 МЛН
OLED-дисплей на контроллере SSD1306
26:30
Электроника в объективе
Рет қаралды 107 М.
I tried the 3 Cheapest Arduino Alternatives! (That you Suggested)
13:21
Вывод изображения с Arduino и ESP32 на монитор
3:59
Заметки ESPшника
Рет қаралды 36 М.
Serial Peripheral Interface (SPI) Basics
17:42
Intermation
Рет қаралды 45 М.
OLED Displays with Arduino - I2C & SPI OLEDs
41:41
DroneBot Workshop
Рет қаралды 1,1 МЛН
My Top 5 Arduino Displays
4:59
InterlinkKnight
Рет қаралды 223 М.
6 Horribly Common PCB Design Mistakes
10:40
Predictable Designs
Рет қаралды 209 М.
#345 ESP32 vs STM32: Which one is better (Bluepill)?
15:37
Andreas Spiess
Рет қаралды 241 М.
Работа с OLED дисплеем
21:50
Dmitry Kuznetsov
Рет қаралды 20 М.
I2C and SPI on a PCB Explained!
15:34
Altium Academy
Рет қаралды 152 М.
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 35 МЛН