Shop OBEX P1 Docs P2 Docs Learn Events
BASIC STAMP 2 to control projector? — Parallax Forums

BASIC STAMP 2 to control projector?

lunchboxlunchbox Posts: 4
edited 2008-05-10 17:21 in BASIC Stamp
Hi everyone. I am currently on my final project, in which i have a problem. I want to make a system that enables people to control projector via motion detection. So i decided to interface a PIR motion detector to a BASIC STAMP 2 to a computer and than to a projector. Now is there any way to make BASIC STAMP 2 controls the projector? Because i want every movement makes the projector projects different objects. Do i have to make the basic stamp sends data to the VGA buffer?

many thanks for the help.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-08 14:42
    The Stamp is not fast enough to send data to the VGA buffer. The images will need to come from the PC which already would have a video output controller. You will need some kind of program on the PC to produce different images based on information (like an image number) sent from the Stamp. You could use the DEBUG statement to send a number to the PC using the serial port used for programming.
  • lunchboxlunchbox Posts: 4
    edited 2008-05-08 23:22
    OK. So in other word, i just need to program The basic stamp to sends data to the PC, and let tehe PC acts according to the data it received? Got it. Thank you very much. I should try it.
  • lunchboxlunchbox Posts: 4
    edited 2008-05-10 15:44
    now i got another question.. can the DEBUG command makes the computer reacts as if there was a data sent from a computer keyboard?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-10 16:04
    Yes and no. Most computer keyboards today use PS/2 or USB keyboard interfaces and the DEBUG statement can't do that kind of interface. Old PCs also provided for serial keyboards which is the same kind of interface provided by the DEBUG statement.

    The DEBUG command can send information to the PC just like it sends information to the DEBUG window of the Stamp Editor. You could write a program for the PC that reads this information from the same serial port and does something with it, but you can't really make it look "just like" the normal keyboard.
  • lunchboxlunchbox Posts: 4
    edited 2008-05-10 16:30
    o, yes yes..now everything's clear.. Wait, one more question, is there any difference between using the DEBUG command and the SERIN/SEROUT?
  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-10 17:21
    The DEBUG statement assumes that the serial port is the programming port (#16) and it has a fixed Baud (9600 Baud for most Stamps, 19200 Baud for the BS2px). There are also some syntactical differences, but it's mostly the same as SEROUT.
Sign In or Register to comment.