Find I2C Addresses on Arduino (I2C Scanner)

  Рет қаралды 22,672

Eli the Computer Guy

Eli the Computer Guy

Күн бұрын

Пікірлер: 35
@cmgkochi6418
@cmgkochi6418 3 жыл бұрын
you helped me from going crazy. the lcd address turned out to be 0x3f and i was trying with all the i2c lcd libs with no progress. finally found your video and code. nice work thanks a lot
@soloperformer5598
@soloperformer5598 Жыл бұрын
Thank you. This video was excellently presented with clear and concise guidelines and has been a great help.
@Graham1904
@Graham1904 4 жыл бұрын
I am not sure exactly how this works, and I know I2C very well, but this scanner works like a dream. I had an I2C LCD delivered the other day and the spec sheet said 0x27 for the address but I could not get it to work. I ran the scanner only to find that the address was totally different, not even close! Well described video.
@superpesbarbos
@superpesbarbos 4 жыл бұрын
Very awesome video! Everything is pretty clear and sounds simple after your video.
@ahnafpiash
@ahnafpiash Жыл бұрын
Thanks for all the trouble explaining the code. really means a lot..
@Electronics61
@Electronics61 2 жыл бұрын
Great video. Worked right away with Serial Monitor output. Many Thanks.
@tommunchback1044
@tommunchback1044 2 жыл бұрын
Thank you, I tried running the i2c scanner and had nothing but errors with the table and the switch functions it calls, what a headache. Your sketch is simple and sweet.
@nitinjimiwal2163
@nitinjimiwal2163 2 жыл бұрын
sensor address is not showing
@mikmik3965
@mikmik3965 2 жыл бұрын
Great script ,Thanks alot.
@TanayKarn20147
@TanayKarn20147 Ай бұрын
could you include the code in the description pls?
@drtechtek2165
@drtechtek2165 5 жыл бұрын
because of you i bought one :p
@ORagnar
@ORagnar Жыл бұрын
2:50 Don't you have to specify which is the clock and which is the data? Also, how do I know that the scan program is outputting to those specific pins? 12/16/22
@nicneufeld226
@nicneufeld226 3 жыл бұрын
If we are communicating between an arduino to another arduino, how can we find the address of the arduino? this sketch doesn't work for that. Thanks
@dellodel9502
@dellodel9502 2 жыл бұрын
First of all thanks for every things you gave us. I have some ATMEL uC from trash and i would lik to reprogram them but i don't know the value of their working frequency (crystal) !!. If i want to reprogram them with known frequency program using the SPI protocol , the SPI clock pin will allow me to do it? ( without knowing the value of the clock). In other way the clock pin of SPI protocole will replace the crystal clock ( at least during reprogramming operation ) ?. Thanks.
@pcbmicro
@pcbmicro 4 жыл бұрын
Sharp Tuto thanks help a lot for debugging and lurning :P
@anil3009
@anil3009 4 жыл бұрын
i am using an HDC2021 sensor and it has two addresses , is it possible select the detected address for the measurement.?..if yes could you please help me ..
@ilhamrahmatmuharam8501
@ilhamrahmatmuharam8501 4 жыл бұрын
hello sir, I am an arduino beginner user ,, I want to use a pressure sensor with type xgzp6857 and will be processed by arduino, this sensor uses the i2c communication protocol, I have found the i2c sensor address is 0x6D, but this sensor does not yet have a library for arduino, how can I use this sensor so that the pressure reading can be displayed on the serial monitor? maybe you have an idea for this problem? thank you
@nitinjimiwal2163
@nitinjimiwal2163 2 жыл бұрын
Its just showing device found
@elyornosirov2745
@elyornosirov2745 3 ай бұрын
How to solve this🤔
@christiancoding
@christiancoding 4 жыл бұрын
Thank you
@bigdealwhocares
@bigdealwhocares 2 ай бұрын
I'm just throwing this out here to maybe help someone else in the future. I realize I'm responding to a video that is now a few years old. I'm just starting with Arduino. I have an Arduino Mega 2506 R3. I first connected my i2C display to the A4 and A5 pins on the Arduino. This did not work, I had to use pin 20 (SDA) and pin 21 (SCL). This is probably pretty obvious to most people, took me a few Google searches to figure out.
@3D_Printing
@3D_Printing 3 жыл бұрын
2c_scanner Arduino UNO to PCA9685 16-Channel 12-bit PWM Servo motor Driver I2C Module For Arduino Robot E5 just keeps saying Scanning Scanner in more like a GUI not a text display what is wrong: Wires correct and baud rate is the same as code
@gokulnath7914
@gokulnath7914 3 жыл бұрын
Thank u sir
@3D_Printing
@3D_Printing 3 жыл бұрын
should it start for(address = 0;
@richardjelinek5038
@richardjelinek5038 3 жыл бұрын
Hm. Nice try Eli, but nope. Close, but nope. First off, you cannot iterate 1 -> 127. You omitted 0 because you probably know it's special (I2C broadcast), but it's not the only one. If you look up the I2C reference you'll see addresses 0-7 are reserved as are 120-127. So in fact, you need to restrict the scan space to the interval [8;119]. You probably just got lucky with your attached devices that they didn't go mad when receiving one of the reserved addresses. Second, you need to assume some device might get mad and lock up your I2C bus, which is why you need to implement a scan timeout as well as a I2C bus reset for a full fledged I2C scanner.
@JJnamedbyBelgi
@JJnamedbyBelgi 3 жыл бұрын
What should I do if it says "Devices found: No I2C devices found" although a module is connected?
@richardjelinek5038
@richardjelinek5038 3 жыл бұрын
Check cables, make sure the device isn't fried. You could have a 10bit addressing only I2C device (very exotic), that will not be seen by this scanner.
@saskiacurls6045
@saskiacurls6045 2 жыл бұрын
I love you
@K-Luxuriant
@K-Luxuriant 4 жыл бұрын
Sir I ran it for my Arduino UNO & its showing "no i2c devices found!"... What should I do now? I'm also not able to connect BMP280 sensor!
@elithecomputerguy
@elithecomputerguy 4 жыл бұрын
you either miswired your device, or it's broken
@K-Luxuriant
@K-Luxuriant 4 жыл бұрын
@@elithecomputerguy But Sir the accelerometer sensor is running perfectly with UNO. Also when I searched for I2C with BMP280 connected, it shows its register address. I checked the wiring thrice & it looks okay. I'm actually confused on what should I do now..
@shaputer
@shaputer 3 жыл бұрын
@@K-Luxuriant Some things don't work with other Arduinos. Example Oled only works with a NANO.
I2C 20 x 4 LCD Display on Arduino
14:50
Eli the Computer Guy
Рет қаралды 17 М.
How To Find Unknown I2C Addresses Several Ways
17:32
Gadget Reboot
Рет қаралды 19 М.
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 14 МЛН
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 55 МЛН
Solving I2C Address Conflicts - TCA9548A I2C Multiplexer
24:29
DroneBot Workshop
Рет қаралды 103 М.
Write POST Data to Server with Arduino Uno with WiFi
24:56
Eli the Computer Guy
Рет қаралды 81 М.
3 engineers race to design a PCB in 2 hours | Design Battle
11:50
Predictable Designs
Рет қаралды 135 М.
Using LCD Displays with Arduino
46:23
DroneBot Workshop
Рет қаралды 1,7 МЛН
How I2C Communication Works and How To Use It with Arduino
9:57
How To Mechatronics
Рет қаралды 1,5 МЛН
Why build an entire computer on breadboards?
28:43
Ben Eater
Рет қаралды 3,1 МЛН
OLED Displays with Arduino - I2C & SPI OLEDs
41:41
DroneBot Workshop
Рет қаралды 1,1 МЛН
I2C with Arduino and Raspberry Pi - Two Methods
30:13
DroneBot Workshop
Рет қаралды 204 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
Soil Moisture Sensor LED Alert with Arduino Uno
19:19
Eli the Computer Guy
Рет қаралды 9 М.
Amazing Parenting Hacks! 👶✨ #ParentingTips #LifeHacks
00:18
Snack Chat
Рет қаралды 14 МЛН