-
Notifications
You must be signed in to change notification settings - Fork 52
I2C address can't change #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@nseidle I have encountered the same issue with both the Bluetooth module on the Bluno Beetle v1.1 and the HC-06 Bluetooth module connected to the Arduino UNO board. After modifying the address, it reverts back to the default address and cannot be changed again. Does this sensor support address modification? Currently, I have two devices with the address set to 18, but I need to modify three different addresses: 18, 30, and 40. How should I proceed to handle this? I'm using this code to change the address. However, when I try to modify it, it doesn't change successfully in one attempt. I need to repeatedly refresh and modify it to make the change successful.I used the Example6_SetI2CAddress code file provided to make the modification. Another issue I encountered is that I can successfully change the address when I set it to 18, but any other address setting fails. |
Why did you repost the whole thing? Do you use mere example code from this library or just a part of it? Address reverting after power off is by design, btw. Do you use XSHUT pin? |
@Shamshala Sorry, because I don't know how to delete the previous post, because I suddenly found that I typed less. |
Ok, sice you don't know XSHUT pin, that's probably your issue. The address change is per datasheet possible during sensor initialization ("boot"?) so if your code misses the right point after you power the whole gizzmo up, you are out of luck to do it afterwards. You better turn your gizzmo up while XSHUT set as output low, then flip it to an input and initialize the sensor during which you change the address. |
But there is no XSHUT pin on my module, and my module only has RST, INT, SDA, SCL, GND, VCC pins on my module. |
Alright, then try to use the RST (assuming it's abbreviation for "reset"). |
here is snippet to change the address. I use pololu sensor and sparkfun default address is 0x52 and pololu is 0x29
|
its amazing they dont show this in any of the example code, maybe they are just trying to frustrate us and waste a lot of our time chasing ghosts. Why they forcing us to use XSHUT and IRQ, i just need a reading whats the big deal with these chip designers, everybody thinks their chip is the best thing since slice bread and we must execute a million lines of code and use 100 port lines to get it to work. |
No description provided.
The text was updated successfully, but these errors were encountered: