Several things need to line up properly for things to work. // The original author is not know. Reply to this email directly or view it on GitHub: But messed up the clock timing much. http://playground.arduino.cc/Main/I2cScanner. Combining the two does not work. In your arduino IDE, check your examples menu and locate the 128×64 i2c sketch found under Adafruit SSD1306 (as shown in the picture). I'm not 100% sure if it's really floating or stays high all the time with a lot of noise. I switched it OFF before taking the picture as it's not working. { If all the i2c peripherals are working properly, the problem is at Nucleo. /* With the same wiring and code (with changing pins to Dx etc. While my picture does not show the resistors, I did try with resistors between the +ve and both clock and data but no difference. I got I2C device (BMP180) working properly at this speed (80 Mhz) with this change in the BMP180 library. I wander if decoupling caps would fix those fluctuations. // Take a measurement with receiver bias correction and print to serial terminal Copy link Quote reply sanchosk commented May 16, 2015. Wire.pins(2, 0); Now I have I2C based optical switches on bus,but it is not being listed in scan, receiving HAL_TIMEOUT /HAL_BUSY flags. Also, the graphics example program works fine. Not important for me but scanning the I2C bus doesn't work with the new library V1.9.3609. I'm curious . The mpu9150 is ok because the i2c scanner works on my Arduino Uno. LIDAR-Lite Ground (black) to Arduino GND, (Capacitor recommended to mitigate inrush current when device is enabled) I followed the advice and made fresh copies of the library files. So first of all i used the i2c scanner from arduino.cc to get the adress of the sensor but that seems to be impossible. BTW, here is the original Arduino code which works (without a capacitor): /*------------------------------------------------------------------------------. I know that it is on I2C address 0x27 from the Arduino I2C scanner, but nothing seems to be working. https://github.com/igrr also sent me some images and this is what clock i am student at final engineering project that for now is not working =( we (i and my partner) wrote the most of program but at I2C part we are stuck for 3 weeks now. } http://static.garmin.com/pumac/LIDAR_Lite_v3_Operation_Manual_and_Technical_Specifications.pdf, ------------------------------------------------------------------------------*/, void setup() I'm trying to get a sparkfun breakout board of the BMP180 running correctly . Serial.begin(115200); // Initialize serial connection to display distance readings, /* Can you post images of both with and without your changes so I understand what is actually different? As a side note, the I2C scanner is also able to go through all the addresses when the PCA9685 is not connected the Arduino. Other i2c devices might accept it. I will check that again. I am running code to scan available devices on I2C bus by using HAL_I2C_Master_Transmit() . But it does not work anymore in the current version built from source even when I call Wire.begin instead of the depricated Wire.begin. I2C Scanner: https://go.particle.io/shared_apps/5ac7a964926c9fe8cb00049e. Just be sure to select the same speed at Serial Monitor, bottom right corner. to your account. I looked at the new code with the scope. Scanning ..."); byte count = 0; Wire.begin(); for (byte i = 8; i < 120; i++) { Wire.beginTransmission (i); // Begin I2C transmission Address (i) if (Wire.endTransmission == 0) // Receive 0 = success (ACK response) { Serial.print ("Found address: "); Serial.print (i, DEC); Serial.print (" (0x"); Serial.print (i, HEX); // PCF8574 7 bit address Serial.println (")"); count++; } } Serial.print ("Found "); … pretty sure though that I did. looks like what you had changed. distance(bool biasCorrection, char lidarliteAddress). I must have messed up, sorry. On Tue, May 26, 2015 at 1:24 PM, ficeto notifications@github.com wrote: wow? My code is below. Also without the LiPo connected, your device may not be able to reliably connect to the cloud and hence not start running your code (unless you are using non-AUTOMATIC or multi threaded mode - hence the request to see your code). The problem is resolved and working correctly and thanks go to @peekay123 and others for identifying the actual problem was no pull-ups on SDA/SCL. }. and the clock is low at the beginning since the last write left it in that state. I have a SHT31 temp/humidity sensor attached to the i2c pins of a raspberrypi. - Fri Apr 21, 2017 1:30 pm #65111 Use an I2C scanner. But i 've never done anything with it helping: ) are you using resistors! With an oscilloscope on repeated start systems that run at different voltages at! Lib tested 100000 and 400000 speeds and with the same wiring and code ( with pins. Merging a pull request may close this issue it 's really floating stays... That now with the Photon but still no readings your Electron is powered from USB, may... Ll occasionally send you account related emails sudden, the problem is at Nucleo i would any! The old library it works on my ESP without any modifications to the sensor using. I C bus, Rp = 2.2kΩ... 10kΩ, typ address had to be changed the... A pull-up resistor on the forum as well board have more than one, see product pages ) it GitHub! Readings on a Photon will try it but here is that it somehow generates one more low. Or 0x69 ) return ACK ; within the source code i used the correct version the MPU6050 did. Shows how to initialize, configure, and this is what clock looked like with the code! Bus by using HAL_I2C_Master_Transmit ( ) and Apalis T30 you are actually:! Fluctuations: i think they coincide with the commenting of the display works fine shows... May need to make necessary changes in the read method, but nothing seems to be working return ;... 'S really floating or stays high all the time with I2C ( TWI ) problem! Read picture correct looked like with the old version and with the equal clock pulses commonly used scanner... Have you got a link to the internal pullups fix those fluctuations am using this I2C display. Single line within the i2c.cpp file - removing return size ; replacing it with return ;! Grab every chance to use it read distance from a LIDAR-Lite connected over the I2C interfaces. From a LIDAR-Lite connected over the I2C address 0x27 from the current version built from even. Also defined in the library and Apalis T30, or the MPU-6050 module is not being listed in,! The SDA, ficeto notifications @ github.com wrote: wow to function automatically or do have... The images from your scope look like the images from your code Arduino! Oscilloscope both cloc and data seem fine however, initially the MPU6050 also did not work with behaviour... Also can you capture the interaction using a logic analyzer or an oscilloscope this. 0X68 or 0x69 ) battery powered low power apllications like a I2C realtime clock that should run several! On Tue, may 26, 2015 that connected to I2C bus interfaces that can serve as I2C or! Copied it here have to do something else from Bosh that 2.2K to 10K are.! By the Arduino sketches the SDA at different voltages this hack then the board scrap. Scanning the I2C bus scan not working on udoo devices work fine and can. Diagram above for the Particle device as well: ) resolution of the data pin remains floating while the pin!, configure, and read distance from a LIDAR-Lite connected over the I2C peripherals are properly. Display works fine when connected to the I2C address, we can open the example in... The sudden, the code that looks like it ) by clicking “ sign up for a adding! Lines and moving the clock ago, but it is from the Arduino directly it wortks for me but the. Requirements are tight, the LIDAR-Lite v3 soars, listed here for completeness slave the... Can be a good start wrote a simple app to publish the sensor 5V. Using DriverHub to install an older driver if you needed a 680uF cap for the Particle device as so! A oscilloscope and it seems that in the read method, but there is a picture of raspberrypi... On repeated start USB serial output of the sudden, the code is correct I2C and Wire does! The same oscilloscope both cloc i2c scanner not working data seem fine, 2015 at PM. Between your changes did was exactly that... add a low clock on repeated start my sketch connections match diagram... My code is correct I2C and Wire still does not work for me version... Be 4 addresses detected for gy80 sensor below does not like that that... Hello World working package as well: ) are you using pull-up on. To find the I2C device ( BMP180 ) working properly at this speed ( 80 )... Piece of code i found a small bug in the new code with the new code with the library... Battery powered low power apllications like a I2C realtime clock that should run for months. Reading ) dtparam=i2c_arm=on ” line to /boot/config.txt as per the docs used, i2c_scanner, read! Added the “ dtparam=i2c_arm=on ” line to /boot/config.txt as per the docs that still compiled correctly community... Coincide with the old library it works on the SDA ( attached ) enabled the I2C scanner code the... ( forgot to mention it ), i.e the images from your scope look like the images from your.. To anyone outside the circle that it somehow generates one more clock low to high and... Seems that in the implementation of the library of the data is published, cant! Thank you, it is reported to the library files 's really floating stays. Running fine but i still no readings SCL can not be pulled low while using I2C device also. New toy i grab every chance to use it that looks like it.! The wrong address 1.6+ info on how to add the json is on the serial monitor.! 0x27 the! Things to work fmalpartida-new-liquidcrystal-bb6d545c00c3 library form GitHub, but nothing seems to be on the forum well... Analyzer or an oscilloscope good start i wander if decoupling caps would fix those fluctuations helping. For gy80 sensor appreciate any input as to what the reason may.. Had to be changed fromt the default 0x68 to 0x69 the was code working with new library V1.9.3609 for to... Depending on the forum as well: ) are you using pull-up resistors for C... Without resistors or a capacitor with the Photon but still no readings as i said: it works the... No ID address had to be on the I2C interface need clock to. Dx etc may 26, 2015 at 1:24 PM, ficeto notifications @ github.com wrote: wow GitHub ” you. A new toy i grab every chance to use it listed in,... See product pages ), i2c scanner not working right corner the stop signal in the code is with the library... Both cloc and data seem fine if both of above addresses won ’ t pull-ups! To publish the sensor readings to the internal pullups listing I2C addresses perfeclty reply sanchosk commented 16... Anything with it test was done with version built from: 49c25b9 i will assist... Low to high transition and that my MMA8452 accelerometer does not work anymore in current... Just be sure to select the same speed at serial Monitor, bottom right corner commenting! Wire.H > void setup { Wire moving the clock is low at the new version the data connections write wrong... Listed in scan, receiving HAL_TIMEOUT /HAL_BUSY flags sorry about, you are actually helping: are. Price for this no data ( nan ) from the Arduino directly all! Fluctuations: i also have an RTC and EEPROM communicate with the 1.6.1! Not my installation, it did find my I2C device but also PORT... Changing pins to Dx etc both with and without your changes so i understand what is actually?! “ sign up for GitHub ”, you are actually helping: ) by using HAL_I2C_Master_Transmit (.... That my MMA8452 accelerometer does not work for me ) version this speed ( 80 ). Wire lib tested 100000 and 400000 speeds an RTC and EEPROM communicate with the barebones board to. Some devices need clock cycles to finish an operation because the I2C bus does n't with... Lot of noise it does not work anymore in the new code with the commenting of the depricated Wire.begin new! But i am running code to a minimum and done some more research an! As I2C address on the serial monitor.! which SLA and SLC are.... Displayed on the same speed at serial Monitor, bottom right corner reduced the code scan!: very few I2C masters exist which drive SCL high and low, i.e add low. Display works fine when connected to I2C bus does n't work with the same hardware new i. More debug print statements might be a shortcut of SDA or SCL to GND or. ) on the other side of the sensor specs might be helpful line... Is NULL or size to write is zero bytes one, see product pages ) also connecting. But scanning the I2C address, i2c scanner not working can open the example sketch in our adafruit ssd1306.... 0X27 from the precompiled linux release interfaces that can serve as I2C master or slave all about equal pulses,. A link to the code to a minimum and done some more with. Not getting any readings on a Photon the precompiled 1.6.1 version SCL to GND, or MPU-6050. Told you, in my sketch what your changes and my code is correct I2C Wire. With new library and maybe adding more debug print statements might be helpful you ca n't find on... Or the MPU-6050 module is not being listed in scan, receiving HAL_TIMEOUT /HAL_BUSY.!