PDA

View Full Version : Spin Stamp Module with INEX-1000?



Rayman
01-11-2008, 02:33 AM
I just tried putting a Spin Stamp Module in my old INEX-1000 and connecting with a USBto232 device...

But, it seems that it doesn't work...· Anybody got the Spin Stamp Module to work with INEX-1000?

I can't find any wiring diagrams for the INEX-1000...· But, I guess I could take it apart and figure out what's wrong...

Peter Verkaik
01-11-2008, 02:36 AM
You can use the spin stamp in an INEX1000 board, but to program the spin stamp
you need to connect a prop clip to the 4 pads on the side of the spin stamp.

regards peter

deSilva
01-11-2008, 02:38 AM
The INEX-1000 will most likely need 5V interfacing, and will not run with the Propeller's 3V ...

Peter Verkaik
01-11-2008, 02:43 AM
The spin stamp either takes a high voltage (6-12V) on pin 24 or 5V on pin 21.
In that respect it behaves like a basic stamp.
Series protecting resistors of·1k on all I/O pins is necessary because of the
5V logic devices on the INEX board.

regards peter
·

Rayman
01-11-2008, 03:09 AM
Thanks.· Ok, I got it now...· Don't have a Prop Clip, but soldered on a header and the Prop Plug works with it...

Loaded deSilva's pin toggling code and it makes a LED blink right...

Too bad they didn't hook up a serial interface...· Looks like they thought about it...

deSilva
01-11-2008, 03:16 AM
Rayman said...
Too bad they didn't hook up a serial interface...

It depends what you mean by "serial interface".


BTW: Have you noticed that my "pin toggling" allows you to insert a LED between any two pins!! Think about it!
Depending on the clock you can even omit a resistor (when it toggles < 1 sec)

Peter Verkaik
01-11-2008, 03:16 AM
It is quite possible the SIN and SOUT pins work (although not guaranteed) via the serial connector,
just not for programming. Here are the propeller pin assignments:

CON
·
· 'clock settings for spin stamp
· _clkmode = xtal1+pll8x
· _xinfreq = 10_000_000
·
· debugPort = 2 '0=none, 1=propeller TX/RX, 2=spin stamp SOUT/SIN/ATN
·
· '//Spin stamp debug pin assignments
· stampSOUT = 16 'serial out (pin 1 of spin stamp)
· stampSIN· = 17 'serial in· (pin 2 of spin stamp)
· stampATN· = 18 'digital in (pin 3 of spin stamp, when activated, do reboot)

· '//Propeller system pin assignments
· propSCL = 28 'external eeprom SCL
· propSDA = 29 'external eeprom SDA
· propTX· = 30 'programming output
· propRX· = 31 'programming input

VAR
· long atnStack[10]······· 'stack for monitoring ATN pin
·
PUB main
· 'monitor ATN pin (optional)
· if debugPort == 2
··· cognew(atnReset,@atnStack)

PUB atnReset
· repeat 'loop endlessly
··· if (debugPort == 2) AND (INA[stampATN] == 1)
····· reboot

If you monitor the ATN pin, then if you toggle DTR of the serial port ON and OFF,
the spin stamp reboots, just like a basic stamp.

regards peter

deSilva
01-11-2008, 03:19 AM
This may not be "guaranteed", but it is in the datasheet of the SpinStamp http://forums.parallax.com/images/smilies/smile.gif

Peter Verkaik
01-11-2008, 03:24 AM
True, but it works for me on my serial port (desktop system).
Actually, the spin stamp datasheet says: do not connect for these pins, but the transistors
that do the level shifting are present on the spin stamp.

regards peter

deSilva
01-11-2008, 03:51 AM
Peter, I am SUPPORTING your opinion; I was not referring to what the datasheet SAYS, but to what it SHOWS http://forums.parallax.com/images/smilies/smile.gif

Post Edited (deSilva) : 1/10/2008 7:56:19 PM GMT

Rayman
01-11-2008, 04:04 AM
Wait... Does it have a 10MHz crystal? Oh, this might explain why my other code didn't work but deSilva's did... (You can tell I'm not one to read manuals...)

What a pain... I wish they'd have put in a 5 MHz crystal...

Paul Baker
01-11-2008, 04:14 AM
There are no 5 MHz crystals in existance which can fit the form factor of the Spin Stamp, our choice of the 10MHz crystal was not arbitrary.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker (mailto:pbaker@parallax.com)
Propeller Applications Engineer
[/url][url=http://www.parallax.com] (http://www.parallax.com)
Parallax, Inc. (http://www.parallax.com)