Programming examples
morris4019
Posts: 145
Are there any online tutorial based information sites that I can breadboard out some different circuits (such as using motors, etc) so that i can learn the programming concepts and circuitry behind a stamp stack 2 microcontroller?
ps. I have done a few of my own experiments with leds, swtiches, pots, etc. But having trouble working a GM9 (solorbotics).
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======
······ I'll try everything once [noparse]:)[/noparse]
ps. I have done a few of my own experiments with leds, swtiches, pots, etc. But having trouble working a GM9 (solorbotics).
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======
······ I'll try everything once [noparse]:)[/noparse]
Comments
Have you looked at the Parallax Stamp tutorials? Have you looked at the Nuts and Volts Columns? They're all full of sample circuits and sample code.
There doesn't seem to be any on-line documentation for the Stamp Stack II, so it's hard to say whether the pin-out is identical to that of the BS2sx,
but you could certainly make up a diagram from the documentation to guide your experiments.
I am also wondering if for a simple on/off for my GM9(solarbotics) i can, say, use a 2n2222 transistor as follows:
______
/ \
| E B C |
| | |
| |
> +9v
|
> FROM pin 0 (or whatever pin on stamp as an output)
|
/ + \
| motor |
\ - /
|
> ground
does this work with the 2222?
-mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======
······ I'll try everything once [noparse]:)[/noparse]
so, +9v to one side of motor >> other side of motor to C of transistor >> E of transistor to ground.
Stamp pin >> 2.2K ohm resistor >>B of transistor.
When Stamp pin goes HIGH, motor runs. Check current rating of motor, 2n2222 is about 500 mA, I think.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·