Skip to main content
mlytvyn
Associate
April 11, 2019
Question

Hi all, I want to read data from several sensors using 1-Wire and I2C. Would it be better to connect all sensors with a similar protocol to one pin or use if possible different pins for each sensor. What are pros and cons for each solution?

  • April 11, 2019
  • 2 replies
  • 748 views

..

This topic has been closed for replies.

2 replies

AvaTar
Senior III
April 11, 2019

Depends on your application, and the timing requirements.

And your sensors, of course. Some have a fixed address, or one or two address pins, so the number of identical sensors (ICs) on one bus is limited. And you will have a hard time getting standard speed devices to work in high speed modes.

Two busses can reduce the update cycle time to about half. Code size increases minimal, assuming identical peripheral blocks. Two additional connections should not have a large impact on the PCB layout.

mlytvyn
mlytvynAuthor
Associate
April 11, 2019

Thanks for the answer, I did not consider the speed issues. What about power consumption?