![]() in fact, some sensor boards have I2C termination resistors which is "nice" but may complicate using multiple sensors on the same I2C channel or not if the resistors are a higher resistance than recommended for single-ended devices. Leaving out pullup in I2C will not damage your Arduino. If you have question, come back and we can discuss more in depth because you will have a better understanding, mainly terminology. Pull Up Resistors | Working with I2C Devices | Adafruit Learning System ![]() Rather than regurgating somewhat confusing information, I ask you to read: You have achieved a great forward motion by realizing that there is much to learn. Welcome to the world of microcontrollers and particularly Arduino. The honest answer is that I've done all that because it's pretty much the first Arduino thing I do on my own and I'm a bit lost. Here is my code, for reference: #include I'm guessing those two lines are referring to the 50k ohm resistor that is integrated in the ATmega2560 chip and not the 10k ohm resistors that are integrated into the circuit and cannot be disabled.Īm I about to fry my sensors or is my set up alright? As far as I know, the Wire.h library that I used to establish the I2C protocol automatically activates the internal pull-up resistors from the pins 20 and 21 ( here, lines 88 and 89). The thing is, I don't have an amazing grasp on electronics and I don't know if I should be connecting the SCL and SDA cables to an external pull-up resistor. GiroscopiosMega_Fritzing 3213×1431 416 KB
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |