In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ALTITUDEAP wrote: Based on the fact that i need 16 switches. i used the SX/B example for the 4x4 matrix, wired all the switches the same but in a configuration that i will ned for my machine (7 switches go in one location while the other 9 go to a different location) The port pins will actually be the two different multi-pin connectors to my board. See atachement for Diagram. So the vision is to use an older style vending machine and add electronics to it. This machine uses a coin opperated rotary mechanism that you put your required coins into and turn the dial. i will be installing magnetic reed switches in this mechanism with a neodym magnet attached to the rotaing part. as the coins are validated and the mech is allowed to turn, the magnet will pass the reed switch and close the contact. My thought is to have a variable for each switch (ie.. sw0-sw15) The variable called sw0 will be set to ,say 15 (the ammount of goods in that row) It the SX48 sees that the reed switch has made a connection then it will decrement the value to 14 and so on. Eventually, i would like for the SX to update these variables to the PINK module and i will be able to log in and see current inventory. Another good thought is to have the Pink send me an email if quantities drop below 3. This may not seem like any huge project to some, but for me i work crazy long hours and am trying to learn SX/B and develop this in my wee remaining hours. Any suggestions would be appreciated. thanks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=128956#m129129 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)