![]() Install the new library files in the Arduino library folder. I am grateful for their work, as it means I did not have to write my own library. ![]() Thankfully, Peter Fleury and Bernhard Nebel were able to write an I2C library that uses a bit‑bang approach and has a nifty set of user-defined parameters for greater flexibility in our interface. Neither of these combinations is available without taking more direct control. This makes the default library only marginally functional with an I2C‑MaxSonar because the I2C‑MaxSonar currently only supports bus speeds up to 50kHz (without clock stretching) or 400kHz (with clock stretching). Use a library because the default Arduino Wire() library does not support changes in bus speed or feature proper clock stretching support. The recommended solution is to use the SoftI2CMaster library shown below. This functionality, however, takes advantage of a timing slowdown in the current Wire() library. Note: Any I2C‑MaxSonar sensors shipped after 10/29/14 were updated to support faster speeds and work with the current Arduino Wire() library. ![]() We have also provided some of the educational information related to this specific I2C implementation. Never fear! We have worked to provide a clear and easy to follow path to get an I2C‑MaxSonar up and running on your Arduino. The short answer is "Yes." The more technical answer is – be prepared to install a new library and learn a bit about digital electronics. A number of customers have asked if the Arduino supports talking to the I2C‑MaxSonar sensors over an I2C interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |