Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Basic Stamps???

  1. #1
    Newbie
    Join Date
    Mar 2004
    Location
    Lee's Summit
    Posts
    5

    Basic Stamps???

    Has anyone else used a basic stamp II for start up and shut down?

    I built a relay board that is piggybacked to a basic stamp II board. The basic stamp turns everything on and off for me. It very is easy to program and I can give anyone a dummy program based off the one I wrote for mine.

    Here's what it does...

    A relay in the acc line activates when there is power. This relay closes a circuit...the basic stamp sees this switch(the relay) closed and starts it's program.

    The Program...

    When the program starts it waits 3 seconds for the vehicle to start.

    1. The pc button is "pushed" via another relay.
    2. The lcd inverter is turned on via another relay.
    3. The amp is...yeah same as above.

    There is a delay between each of these steps. All the delays are completely customizable in milliseconds.

    At this point the bsII stands-by waiting for the acc wire to go dead. Again there is another 3 second delay at shutdown also. This allows you to turn the ign switch to aux without the pc shutting down.

    I also added a three-position switch to the side of the driver's seat.

    Position of the switch...

    1(down). The computer will start up shut down based on ign switch position.
    2(middle). The computer is completely shut down and will not come on. i.e., oil changes....
    3(up). The computer is on and the aux battery is isolated. Great for washing the jeep...not being killed by carbon monoxide...running into a store...that kind of stuff. The aux battery is isolated via a relay to the acc line. Anytime the computer and the jeep are on, the batteries are connected. If the jeep is off the batteries are disconnected. If the computer is off the batteries are disconnected. If the jeep is off and the computer is on the batteries are disconnected.

    I use inverters and atx power supply. They are inexpensive and readily available. I have been using this setup since Feb. with no problems. I get in a start the jeep and the bsII takes care of everything else. It's playing music in about 20 seconds. When I shut off the jeep...by the time I get out the music is off and the pc is almost shut down.

    Here are pictures...

    http://www.4idiots.net/andy/jeeputer/jeeputer/index.htm

  2. #2
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Has anyone else used a basic stamp II for start up and shut down?

    Yes a few poeple in here have played around with MCU based shutdown controller.

    There should be BASIC STAMP, PICAXE and the raw PIC design ideas in this forum somewhere.

    I have coded a PIC using ASM for a shutdown controller...with so many features that I cant even get it to 100% complete status.

    Oh well Ill carry on with it some other time

  3. #3
    I see dead kittens Quattro's Avatar
    Join Date
    Dec 2003
    Location
    New York
    Posts
    2,922
    Do you guys know of any way of using stamps to control a motor that I would use to open and close a screen cover/door with. The cover would open when car starts and close when turned off, also need a way to control how long the motor runs for?
    Installed
    Asus A7N8X-VM - AMD Mobile Athlon 2400
    512 Ram - 60GB HD - Opus 150w
    Lilliput 7" - Rikaline 6010
    [00000000000001100010-] 98% Completed

    Check Out My Install!!!

  4. #4
    Variable Bitrate brooksware2000's Avatar
    Join Date
    May 2004
    Location
    Minot AFB, ND
    Posts
    260
    yeah, I prototype on the stamp before moving to pic. Like Ricky327 I keep adding onto my startup/shutdown controller so it is not complete either. Mine works by turning the computer on when a button is pressed and turns off either when the button is pressed again or the ACC goes low and stays low for a specified amount of time. I also have a switch so I can have it startup from ACC line or the pushbutton switch. I am using MBasic to code mine which is 99% compatible with the BS2 language. I will post what I have if I ever get around to finishing it. But, by all means share what you have. I am sure someone will find it usefull or inspiring.
    Check out my hopefully useful site...

    www.hobbybotics.com

    It's still under design but it is functional

  5. #5
    Variable Bitrate brooksware2000's Avatar
    Join Date
    May 2004
    Location
    Minot AFB, ND
    Posts
    260
    Quote Originally Posted by Quattro-A4
    Do you guys know of any way of using stamps to control a motor that I would use to open and close a screen cover/door with. The cover would open when car starts and close when turned off, also need a way to control how long the motor runs for?
    Oh, that would be pretty simple but you don't want to use a motor for this. Either use a servo motor or a stepper motor out of a floppy drive. Go to www.parallax.com and look at the examples they have of interfacing to each.
    Check out my hopefully useful site...

    www.hobbybotics.com

    It's still under design but it is functional

  6. #6
    Newbie
    Join Date
    Mar 2004
    Location
    Lee's Summit
    Posts
    5
    Here is the program....it's very simple and effective. You can have the basic stamp control anything. I was thinking along the same lines...I want to put a "roll top" on my lcd. When the jeep start the cover rolls back into the dash like a roll top desk. We'll see though..too many hobbies.

    'BASIC Stamp Jeeputer startup/shutdown circuit



    '{$STAMP BS2}

    'pin designations:
    '0 input from acc line
    '1 output pc on/off
    '2 output lcd inverter
    '3 output amps
    '4 output battery disconnect

    'set output pins to low
    LOW 1
    LOW 2
    LOW 3
    LOW 4

    DEBUG "Init",CR

    Main:
    IF IN0=1 THEN Startup
    SLEEP 2
    DEBUG "Ready",CR,10
    GOTO Main:

    Startup:
    DEBUG "Waiting 3 seconds for car to start...",CR,10
    PAUSE 2000
    IF IN0=0 THEN Shutdown
    DEBUG "4 HIGH (connect batteries)",CR,10
    HIGH 4
    PAUSE 500
    IF IN0=0 THEN Shutdown
    DEBUG "1 HIGH (pc button on)",CR,10
    HIGH 1
    PAUSE 1000
    DEBUG "1 LOW (pc button off)",CR,10
    LOW 1
    PAUSE 2000
    IF IN0=0 THEN Shutdown
    DEBUG "2 HIGH - (lcd inverter on)",CR,10
    HIGH 2
    PAUSE 2000
    IF IN0=0 THEN Shutdown
    DEBUG "3 HIGH - (amps on)",CR,10
    HIGH 3

    Standby:
    DEBUG "Standing by for activity...",CR,10
    PAUSE 1000
    IF IN0=0 THEN Accdelay
    GOTO Standby

    AccDelay:
    DEBUG "Delay to turn key to acc...",CR,10
    PAUSE 3000
    IF IN0=1 THEN Standby
    IF IN0=0 THEN Shutdown

    Shutdown:
    DEBUG "Shutting Down...",CR,10
    DEBUG "4 LOW (disconnect batteries)",CR,10
    LOW 4
    PAUSE 2000
    DEBUG "3 LOW (amp off)",CR,10
    LOW 3
    PAUSE 1000
    DEBUG "1 HIGH (pc button on)",CR,10
    HIGH 1
    PAUSE 1000
    DEBUG "1 LOW (pc button off)",CR,10
    LOW 1
    PAUSE 3000
    DEBUG "2 LOW (lcd inverter off)",CR,10
    LOW 2
    GOTO Main
    END

  7. #7
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Quote Originally Posted by Quattro-A4
    Do you guys know of any way of using stamps to control a motor that I would use to open and close a screen cover/door with. The cover would open when car starts and close when turned off, also need a way to control how long the motor runs for?

    It should be fairly easy.

    Have 2 position sensors, either microswitch or optical.

    1 sensor is to check for fully opened and the other is for fully closed door.

    The motor will just carry on rotating at whatever direction until it hits the sensor. Include a timeout so the motor dont continously spin when something had gone wrong. Even include a current sense so the motor will stop automatically when it hits something that it not supposed to...bit like the CD tray in a CDROM drive.

  8. #8
    I see dead kittens Quattro's Avatar
    Join Date
    Dec 2003
    Location
    New York
    Posts
    2,922
    Thanks for the link I'll look at it, but how would you achieve this.
    I'm thinking it would work similar to the way the start up and shut down is set up.
    Wait 3 second to start car, use relay to start either the servo or stepper motor and after some time and use a relay again to stop motor. Let me know if this is correct, I don't know much about relay's and stamps.
    Installed
    Asus A7N8X-VM - AMD Mobile Athlon 2400
    512 Ram - 60GB HD - Opus 150w
    Lilliput 7" - Rikaline 6010
    [00000000000001100010-] 98% Completed

    Check Out My Install!!!

  9. #9
    Variable Bitrate brooksware2000's Avatar
    Join Date
    May 2004
    Location
    Minot AFB, ND
    Posts
    260
    Partly right but you would not need the relay to start the servo. Just send the correct pulses to the servo to have it pulse up or down. Also, as an idea you could add some pushbutton switches to the upper and lower positions to make sure the servo stops in the correct position. I would suppose some kind of limit switch would be needed since servos are not very precise.
    Check out my hopefully useful site...

    www.hobbybotics.com

    It's still under design but it is functional

  10. #10
    Raw Wave
    Join Date
    Jun 2003
    Posts
    1,823
    Quote Originally Posted by brooksware2000
    yeah, I prototype on the stamp before moving to pic. Like Ricky327 I keep adding onto my startup/shutdown controller so it is not complete either. Mine works by turning the computer on when a button is pressed and turns off either when the button is pressed again or the ACC goes low and stays low for a specified amount of time. I also have a switch so I can have it startup from ACC line or the pushbutton switch. I am using MBasic to code mine which is 99% compatible with the BS2 language. I will post what I have if I ever get around to finishing it. But, by all means share what you have. I am sure someone will find it usefull or inspiring.
    Are you designing your own shutdown controller now or you still modifying the ITPS firmware?

    You may wanna get some ideas from the one I already designed on post #4 :

    New Improved ATX Shutdown Unit!

    Got the hardware design, PCB and schematic apart from finalising the PIC code.

    I think I have shown it to you already.

Page 1 of 2 12 LastLast

Similar Threads

  1. Basic Stamp Programmers
    By owenjh in forum General MP3Car Discussion
    Replies: 9
    Last Post: 04-21-2004, 07:50 PM
  2. Win98 lite basic install?!?
    By jakeep in forum GPS
    Replies: 4
    Last Post: 11-15-2003, 06:19 AM
  3. basic win95 and winamp...
    By Franko in forum Software & Software Development
    Replies: 2
    Last Post: 07-13-2001, 08:02 AM
  4. Basic Stamps and VFDs
    By NuBooJew in forum LCD/Display
    Replies: 5
    Last Post: 04-09-2001, 02:05 PM
  5. Touch Screens and Basic Stamps
    By NuBooJew in forum General Hardware Discussion
    Replies: 0
    Last Post: 03-23-2001, 12:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •