jukingeo
October 14th, 2008, 08:06 PM
Hello,
As an avid user of Basic Stamp Microcontrollers, I was wondering if there was a program available for Linux in which I could access and program the computer's ports.
The basic idea is to control props such as Halloween props.
I do not know any computer programming languages outside of the Basic Stamp 1 and Basic Stamp 2. Needless to say in general, the Basic Programming Language is used for these devices. It is not exact Basic, but what is called PBasic as developed by Parallax.
While I may be interested in learning a new language, I would like something that is easy to follow.
I would mostly like to talk to the USB ports on my machine, but I understand that may be difficult. Usually the parallel port is recommended as it has 8 data lines and 4 bi-directional lines. I can start here for starters.
I am looking for something that is easy to learn and easy to interface the machine to the outside world.
My general goal is to write a program such as this:
1) Wait for unsuspecting victim (guest).
2) A PIR sensor detects the presents of victim and sends a signal to the computer's port.
3) The computer acts on the signal in that the sensor has been triggered.
4) The computer outputs a chain of events based on the triggered signal. I.E.
a) Flash a light in one second intervals for 5 seconds, then turn it off.
b) Then turn on a Fog machine for 5 seconds, turn it off.
c) Have a prop leap forward (via pneumatic valve) for 3 seconds.
d) Reset everything and then wait for next victim.
This is a typical program that can be easily set up on Basic Stamp controller, however, computers have much more storage capacity and can run longer programs. Computer also have the capabililty to multi-task (run interrupts) in which Basic Stamps cannot do.
I know that programming a computer in C is usually best, but I don't know that language, nor where to begin with it. The information on it is very overwhelming and I am looking for something easy to work with as I only want to control computer ports for right now.
Thanx in advance for any information/advice.
Geo
As an avid user of Basic Stamp Microcontrollers, I was wondering if there was a program available for Linux in which I could access and program the computer's ports.
The basic idea is to control props such as Halloween props.
I do not know any computer programming languages outside of the Basic Stamp 1 and Basic Stamp 2. Needless to say in general, the Basic Programming Language is used for these devices. It is not exact Basic, but what is called PBasic as developed by Parallax.
While I may be interested in learning a new language, I would like something that is easy to follow.
I would mostly like to talk to the USB ports on my machine, but I understand that may be difficult. Usually the parallel port is recommended as it has 8 data lines and 4 bi-directional lines. I can start here for starters.
I am looking for something that is easy to learn and easy to interface the machine to the outside world.
My general goal is to write a program such as this:
1) Wait for unsuspecting victim (guest).
2) A PIR sensor detects the presents of victim and sends a signal to the computer's port.
3) The computer acts on the signal in that the sensor has been triggered.
4) The computer outputs a chain of events based on the triggered signal. I.E.
a) Flash a light in one second intervals for 5 seconds, then turn it off.
b) Then turn on a Fog machine for 5 seconds, turn it off.
c) Have a prop leap forward (via pneumatic valve) for 3 seconds.
d) Reset everything and then wait for next victim.
This is a typical program that can be easily set up on Basic Stamp controller, however, computers have much more storage capacity and can run longer programs. Computer also have the capabililty to multi-task (run interrupts) in which Basic Stamps cannot do.
I know that programming a computer in C is usually best, but I don't know that language, nor where to begin with it. The information on it is very overwhelming and I am looking for something easy to work with as I only want to control computer ports for right now.
Thanx in advance for any information/advice.
Geo