element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sensors
  • Technologies
  • More
Sensors
Sensor Forum Digitally Addressable Sensors?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sensors to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Answers 2 answers
  • Subscribers 343 subscribers
  • Views 1943 views
  • Users 0 members are here
  • sensors
  • sensor
Related

Digitally Addressable Sensors?

amillen
amillen over 12 years ago

I need to come up with a way to daisy chain a number of sensors together and uniquely read the high/low pin from them individually. Think Digital RGB LED http://www.adafruit.com/products/306 or I2C. I like how when you power the LED strip up, it assigns a unique id. Is there already a module that will do this?

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 12 years ago +1
    Hi Alex, With I2C you can chain only upto 128 devices/sensors. This is the caveat. If you have more than 128 devices/sensor you need to use I2C chips like wherein you can theorotically connect NXP/Phillips…
  • amillen
    amillen over 11 years ago +1 verified
    Thanks to all that replied, many of you came up with different solutions, but I was looking for something a little more off the shelf. Looks like someone finally packaged up exactly what I was looking…
Parents
  • Former Member
    0 Former Member over 12 years ago

    Alex,

     

    SPI can be daisy chained, although the specific slave device has to support it, and its not always immediately obvious if it does or not.

     

    What sort of sensor are you considering?  you mention a high/low pin, so that's digital inputs then?  something like the MCP23S17 possibly?

     

    You should give this a read : http://www.maximintegrated.com/app-notes/index.mvp/id/3947

     

    Best regards,

    Charlie.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vsluiter
    0 vsluiter over 12 years ago in reply to Former Member

    Charlie,

    The example you gave is interesting, but (at least the examples) only apply to output devices, not inputs. The MCP23S17 does not mention daisy chaining in its datasheet.

    If Alex is still alive (haven't seen any reaction since the original post), he might do this: read through the datasheet of the WS2811 to understand how to do daisy chain addressing[pdf], and get a free LPC800 board to implement the same protocol image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 12 years ago in reply to vsluiter

    Victor,

     

    The OP mentioned "uniquely read the high/low pin from them individually" which I interpret as an input. I agree that the MCP23S17 datasheet doesn't specifically mention daisychaining, and quite possibly its not possible with that particular chip, but I was attempting to discover what sort of sensors he means, whether digital input, analogue (ADC/temperature/pressure etc) or whatever.

    I've personally used 40 MCP23S17 chips in a single solution, although there I used 5 CS signals for each group of 8 addressed chips, with a common CLK/SI/SO across all 40, for a total of 8 lines. 40 chips at 16 I/O per chip=640 I/O channels image

     

    It occurs to me that maybe a topology like that would be sufficient for Alex?  I know that doesn't specifically answer his daisychaining question, but sometimes its easy to accidentally make assumptions in an original question.

     

    I hope Alex IS still alive....

     

    Best regards,

    Charlie.

     

    p.s. I just looked again at the MCP23S17 datasheet. I think that the SPI input timing diagram (Figure 2-5 on page 32) shows that this particular device is not suitable for daisychaining, because the data coming into SI is not copied to SO. I've used other SPI devices which do exhibit that behaviour though.

     

    p.p.s. I may look into the free LPC800 board you mentioned. As ever its finding the time...

     

     

    p.p.p.s Here's an example of an IO expander using SPI which can be daisychained : http://datasheets.maximintegrated.com/en/ds/MAX7317.pdf   Mind you, the datasheet gives a limit of 10 on a single chain because of propagation delays of SI/SO versus CLK. Hmmm... Maybe SPI daisychaining isn't the way to go....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 12 years ago in reply to vsluiter

    Victor,

     

    The OP mentioned "uniquely read the high/low pin from them individually" which I interpret as an input. I agree that the MCP23S17 datasheet doesn't specifically mention daisychaining, and quite possibly its not possible with that particular chip, but I was attempting to discover what sort of sensors he means, whether digital input, analogue (ADC/temperature/pressure etc) or whatever.

    I've personally used 40 MCP23S17 chips in a single solution, although there I used 5 CS signals for each group of 8 addressed chips, with a common CLK/SI/SO across all 40, for a total of 8 lines. 40 chips at 16 I/O per chip=640 I/O channels image

     

    It occurs to me that maybe a topology like that would be sufficient for Alex?  I know that doesn't specifically answer his daisychaining question, but sometimes its easy to accidentally make assumptions in an original question.

     

    I hope Alex IS still alive....

     

    Best regards,

    Charlie.

     

    p.s. I just looked again at the MCP23S17 datasheet. I think that the SPI input timing diagram (Figure 2-5 on page 32) shows that this particular device is not suitable for daisychaining, because the data coming into SI is not copied to SO. I've used other SPI devices which do exhibit that behaviour though.

     

    p.p.s. I may look into the free LPC800 board you mentioned. As ever its finding the time...

     

     

    p.p.p.s Here's an example of an IO expander using SPI which can be daisychained : http://datasheets.maximintegrated.com/en/ds/MAX7317.pdf   Mind you, the datasheet gives a limit of 10 on a single chain because of propagation delays of SI/SO versus CLK. Hmmm... Maybe SPI daisychaining isn't the way to go....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube