using TTL chips to substitute for the missing i/o pins
dr_eggman198
Posts: 15
I am developing a circuit that plays tic tac toe with a human. In my circuit, there are 18 variables, and the basic stamp 2 only has 16 i/o pins. WOuld I be able to use TTL chips to substitute for the missing i/o pins? Also, would I be able to send 1.5 volts from a battery to one of the i/o pins if it were set to input, or would that cause a short circuit in the basic stamp?
Post Edited By Moderator (Chris Savage (Parallax)) : 7/1/2005 7:19:41 PM GMT
Post Edited By Moderator (Chris Savage (Parallax)) : 7/1/2005 7:19:41 PM GMT
Comments
·· Do you require 18 variables, or 18 I/O lines?· If you need more I/O lines, there are several ways to accomplish this.· It would help to have more information on exactly how many I/O lines you need, and whether they need to be input or output.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
How would you do this if you had a 4x4 grid? -- I'm curious about your intended approach.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
·· Are these switches toggle switches, or pushbuttons (Momentary).· I am trying to understand how connecting the Red LEDs to inputs will work, unless they're hard-coded somehow.· Personally I would use a couple of 74HC595's for the LEDs.· You could control all 18 from 3 Stamp pins.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· So you're hard wiring your switch and LED so that it stays on when you press the switch?· This would mean turning off each switch after the game is done.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· With 2 74HC595s and 1 74165, you could have all your switches and LEDs connected using only 7 I/O lines (4 for the 74xxx chips and 3 for the remaining switch and LEDs).· For examples of connecting these chips please see the StampWorks manual.· A link is provided below.· You can download it in PDF form free.
http://www.parallax.com/detail.asp?product_id=27220
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com