Why Arduino Crashed?

  Рет қаралды 5,293

InterlinkKnight

InterlinkKnight

Күн бұрын

I explore the need of using pull-up resistors on the SCL and SDA pins of I2C devices to prevent causing arduino to crash/freeze.
Components:
- Resistor Kit 38 Values 1% 1(600Pack): amzn.to/2xfelzm
- Rigol DS1054Z Digital Oscilloscope: amzn.to/2C5ZwD7
Note: As an Amazon Associate I earn from qualifying purchases.
Website: www.interlinkknight.com/
Patreon: / interlinkknight

Пікірлер: 37
@TheGuitarFromOz
@TheGuitarFromOz 2 жыл бұрын
Man, you really saved my project. I'm so glad that I found your video. Thank you very much
@interlinkknight
@interlinkknight 2 жыл бұрын
That's great. I'm glad i could help
@carbonsx3
@carbonsx3 5 жыл бұрын
Nice to see a new video! Good info!
@interlinkknight
@interlinkknight 5 жыл бұрын
:)
@nrdesign1991
@nrdesign1991 3 жыл бұрын
I never suspected it would be this bad. That might explain why sometimes my EPS8266 based temperature/humidity sensors running on 2 AA's mysteriously freeze or report incoherent values.
@CrazyCoupleDIY
@CrazyCoupleDIY 5 жыл бұрын
Good information
@AirborneSurfer
@AirborneSurfer 5 жыл бұрын
Very good to know! Thanks!
@master138
@master138 4 жыл бұрын
Thanks nice info i subscribed.
@TEENASPECT
@TEENASPECT 5 жыл бұрын
Thanks. I will use it now)
@chipheadnet
@chipheadnet 5 жыл бұрын
this is great info!!! Thanks! Question: How would you connect multiple i2c devices and pull them up?
@interlinkknight
@interlinkknight 5 жыл бұрын
You connect multiple devices the same way as connecting 1 device. But if we are talking about many devices, like 10, then you might not need any pullup resistor because i2c modules usually have their own pullup resistor.
@chipheadnet
@chipheadnet 5 жыл бұрын
@@interlinkknight so I would only need 1 set of resistors on the bus? and when I get to 10 or more, they may not be necessary. At that point will it hurt if they are there? I would I determine if I need more or less pull-up resistance? and just subscribed :D
@interlinkknight
@interlinkknight 5 жыл бұрын
Since I2C devices connect in the same line you only need one resistor for the sda pin and one for scl. If you have many devices, it might create problems if you add pull-up resistors. The way to be sure is to look at the signal with an oscilloscope, but don't worry too much about it. It doesn't have to be perfect.
@chipheadnet
@chipheadnet 5 жыл бұрын
@@interlinkknight thank you! that help clear it in my mine!
@Wawe48
@Wawe48 Жыл бұрын
Hello where to place pull-up resistors? Close to the arduino or close to the display? I have almost 50 cm long cable. And second thing is why arduino freezes only when I power it up from the external switching source. If I power it up through the USB - PC OLED display works just fine. Any idea?
@interlinkknight
@interlinkknight Жыл бұрын
I don't know
@KellerG68
@KellerG68 5 жыл бұрын
I designed a big project with a little oled display like the one you are showing And some time it freeze, if I well understood what you are explaining, a little 1K resistance can stop the problem ? Thank you for your great video
@interlinkknight
@interlinkknight 5 жыл бұрын
yes
@KellerG68
@KellerG68 5 жыл бұрын
Thank you for the answer 😊
@abdurrahmantokr6735
@abdurrahmantokr6735 2 жыл бұрын
Hello there I am using stm32f446re as controller. oled screen freezes and does not come back after reset. If I throw a resistor will it be a solution?
@interlinkknight
@interlinkknight 2 жыл бұрын
I suppose. Only one way to find out
@CommonManDreams27
@CommonManDreams27 3 жыл бұрын
I am facing problem but I don't know exactly what's the cause for it . I am building a waypoint navigation robot but arduino mega freeze when motors starts running, but without motors arduino mega runs for infinite time. So sir can u help me with this to fix it. Thank you
@CommonManDreams27
@CommonManDreams27 3 жыл бұрын
I am also using hmc5883l magnetometer with i2c communication to determine heading
@interlinkknight
@interlinkknight 3 жыл бұрын
Did you put the pull up resistors?
@CommonManDreams27
@CommonManDreams27 3 жыл бұрын
@@interlinkknight No sir , but controller freezes only when motor start running. So I thought something has to be done with motor. Will having pull up resistor fix my problem?
@interlinkknight
@interlinkknight 3 жыл бұрын
Maybe, yes. Try it
@CommonManDreams27
@CommonManDreams27 3 жыл бұрын
@@interlinkknight I am using level shifter, data sheet says it has pull-up resistor
@mlab3051
@mlab3051 Жыл бұрын
Can we "unfreez" it?
@interlinkknight
@interlinkknight Жыл бұрын
Pressing the reset button or doing a power cycle
@mlab3051
@mlab3051 Жыл бұрын
@@interlinkknight No, like in software. I found that wire.setWireTimeout will do the trick to unfreeze arduino.
@interlinkknight
@interlinkknight Жыл бұрын
Good to know
@chipheadnet
@chipheadnet 5 жыл бұрын
I wonder if the SPI bus suffers the same way....
@interlinkknight
@interlinkknight 5 жыл бұрын
I am not an expert but from what I know we don't need resistors for the SPI protocol. They work differently.
Best Quality Breadboard?
7:18
InterlinkKnight
Рет қаралды 70 М.
Small Brain, Big Think: AI on the Edge
12:40
Zack Freedman
Рет қаралды 454 М.
Final muy inesperado 🥹
00:48
Juan De Dios Pantoja
Рет қаралды 18 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️❤️ #roadto100million
00:20
Celine Dept
Рет қаралды 35 МЛН
Picking Pull-Up Resistor Values | AO #25
4:10
AddOhms
Рет қаралды 113 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
My Top 5 Arduino Displays
4:59
InterlinkKnight
Рет қаралды 219 М.
【For Beginner】How to start electronics and what item is needed
18:16
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
GreatScott!
Рет қаралды 593 М.
My Favorite Tools for Arduino/Electronics
8:24
InterlinkKnight
Рет қаралды 13 М.
The Z80's secret feature discovered after 40 years!
16:07
Andy Hu
Рет қаралды 703 М.
From Idea to Schematic to PCB - How to do it easily!
11:05
GreatScott!
Рет қаралды 1,7 МЛН
I built my own computer. by hand.
13:03
jdh
Рет қаралды 1,1 МЛН
World's worst video card? The exciting conclusion
24:23
Ben Eater
Рет қаралды 2,9 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 7 МЛН
Secret Wireless charger 😱 #shorts
0:28
Mr DegrEE
Рет қаралды 1,4 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30