I2C and a slave
#1
Posted 11 December 2011 - 09:26 PM
I am going to read from barometric pressure sensor through I2C and I am wondering whether I need pull-up resistors or not?
http://www.sparkfun.com/tutorials/253'>http://www.sparkfun.com/tutorials/253
The tutorial suggests that those aren't needed.
Thanks
Miha Markic, Microsoft MVP C#
Righthand .net consulting and software development
http://blog.rthand.com/
#2
Posted 11 December 2011 - 09:29 PM
Miha Markic, Microsoft MVP C#
Righthand .net consulting and software development
http://blog.rthand.com/
#3
Posted 11 December 2011 - 09:32 PM
The pull-ups are mandatory as per the I2C specification, so if you use the sensor alone, you'd have to add them, if you use Sparkfun's breakout board, it already has them (those two small black 4k7 resistors).I am going to read from barometric pressure sensor through I2C and I am wondering whether I need pull-up resistors or not?
http://www.sparkfun.com/tutorials/253
#4
Posted 11 December 2011 - 10:00 PM
The pull-ups are mandatory as per the I2C specification, so if you use the sensor alone, you'd have to add them, if you use Sparkfun's breakout board, it already has them (those two small black 4k7 resistors).
Thanks, I'll use the breakout board so I am fine. Out of curiosity, what happens if I want to use another board with pull up resistors mounted as well?
Miha Markic, Microsoft MVP C#
Righthand .net consulting and software development
http://blog.rthand.com/
#5
Posted 11 December 2011 - 10:37 PM
A thread about BM085, i2c, and pull-up resistors: here.
A really good web page about pull-up resistors and i2c: here.
In a nutshell, you need to choose pull-up resistors to match the characteristics of the bus and all the devices on it, but it seems like i2c is pretty forgiving. If you keep adding breakouts with built-in pull-ups, the total pull-up resistance will be LOWER than the LOWEST value on any given breakout (resistors in parallel rule). I eventually ended up cutting some resistors off a breakout to solve this problem.
#6
Posted 12 December 2011 - 07:10 AM
Miha Markic, Microsoft MVP C#
Righthand .net consulting and software development
http://blog.rthand.com/
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users