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
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.
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.
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.
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
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 ..
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
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
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.
@@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..
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.
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.
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
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.
Thanks for all the trouble explaining the code. really means a lot..
Thank you. This video was excellently presented with clear and concise guidelines and has been a great help.
Great video. Worked right away with Serial Monitor output. Many Thanks.
Very awesome video! Everything is pretty clear and sounds simple after your video.
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.
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.
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
could you include the code in the description pls?
Great script ,Thanks alot.
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 ..
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
Sharp Tuto thanks help a lot for debugging and lurning :P
because of you i bought one :p
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
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
sensor address is not showing
should it start for(address = 0;
Its just showing device found
How to solve this🤔
What should I do if it says "Devices found: No I2C devices found" although a module is connected?
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.
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!
you either miswired your device, or it's broken
@@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..
@@K-Luxuriant Some things don't work with other Arduinos. Example Oled only works with a NANO.
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.
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.
Thank you
I love you
Thank u sir