Shop OBEX P1 Docs P2 Docs Learn Events
Not enough pins — Parallax Forums

Not enough pins

darkwingdarkwing Posts: 3
edited 2012-01-22 17:57 in BASIC Stamp
were usng a motor microcontroller Bistep2A to control two motors via TTL slew inputs from 5 qti sensors on the Basic stamp controller. along with a LM35 temperature sensor and a 2 by 16 LCD(purchased here) problem is after connecting all the slews to the pins on the BOE we ran out of sace for our sensors,LCD,etc. anyone know how can i get around this?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-10-06 03:35
    The QTI sensors and the LM35 all provide an analog output. How about using an 8 channel ADC like the MCP3208. This would require only 4 Stamp I/O pins and there's sample code available from Parallax.
  • tercou1tercou1 Posts: 25
    edited 2012-01-22 16:57
    apologies for my ignorance but would i need to connect the 8 pins from an adc0804 to the bs2?? if not how many pins would i connect and how would i do it? i'm using a lm35 sensor and a lm358 amp... also, mike, where is the sample code on parallax, i can't seem to find it...
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-01-22 17:57
    tercou1,

    I'll take a stab at answering your question. From looking at the ADC0804 datasheet, I think the chip requires 12 pins. 4 control pins and 8 data pins. I'd be very surprised if there are any BS2 examples of using this chip (I'm frequently surprised though).

    I believe the ADC0804 uses the 8-bit data bus in order to transmit the data from high speed ADC (I think it converts at around 1MHz). I'm pretty sure the BS2 couldn't come near to this speed in aquiring the data.

    The MCP3208 Mike suggested is a much better fit with a BS2.
Sign In or Register to comment.