Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


Photo

Checking multiple switch states


  • Please log in to reply
1 reply to this topic

#1 alanglynsmith

alanglynsmith
  • Members
  • 2 posts

Posted 15 November 2013 - 07:20 AM

Hi anyone any ideas or suggestions of how to use a LabJack U3 HV to check up to 500 different switches in a 20x25 matrix to see which are on and which are off?

 

I initially thought 32x32 but 1024 is way too many switches to wire up so going on the same principle of 32 x 32 but highest reached will be 500

 

i.e. we need to identify each switch, check its state and save that data. Can be done serially or inparrallel not bothered. Although parallel would probably involve quite a large number of extra chips 

 

(we are trying to develop a mat that can see a pattern from a water spray) this will allow us to automatically pass or fail a particular nozzle.

 

Many thanks

 

Attached Thumbnails

  • switchmat.jpg


#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 15 November 2013 - 10:31 AM

You could use I/O port expander chips that provide 16 digital inputs each and talk to the U3 using SPI or I2C.  We have used the MCP23S17 SPI IC, but any should work:

 

http://www.microchip...ng=en&pageId=79

 

You would need 32 of these.  Seems OK, but we would need to think about the limit for number of I2C or SPI chips.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users