Announcement

Collapse
No announcement yet.

Basic Stamps???

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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!!!

      Comment


      • #4
        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

        Comment


        • #5
          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

          Comment


          • #6
            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

            Comment


            • #7
              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.

              Comment


              • #8
                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!!!

                Comment


                • #9
                  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

                  Comment


                  • #10
                    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 :

                    http://www.mp3car.com/vbulletin/showthread.php?t=24714

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

                    I think I have shown it to you already.

                    Comment


                    • #11
                      Originally posted by brooksware2000
                      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.
                      I went to the link you provided but I'm not sure what examples you are referring to.
                      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!!!

                      Comment


                      • #12
                        Originally posted by Ricky327
                        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 :

                        http://www.mp3car.com/vbulletin/showthread.php?t=24714

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

                        I think I have shown it to you already.
                        I'm still modifying the heck out of the ITPS controller for now. I have integrated more functions into it thanks to the idea I got from reading your posts. I'm thinking of expanding the outputs of the 629 on the board so I can add a few more functions I'd like to have. Like the option to turn on/off a small heater element when the car is below a certain temp. Or to keep the pc from starting until the car reaches a certain temp. To do that, I need to expand the outputs/inputs. Heck, I have all the parts to duplicate the ITPS so I may just build one on a protoboard using another chip with better options.
                        Check out my hopefully useful site...

                        www.hobbybotics.com

                        It's still under design but it is functional

                        Comment


                        • #13
                          Originally posted by Quattro-A4
                          I went to the link you provided but I'm not sure what examples you are referring to.
                          here's the links to get you started:

                          http://www.parallax.com/html_pages/downloads/sw/sw.asp

                          check out articles 25 and 26 for ideas.
                          Check out my hopefully useful site...

                          www.hobbybotics.com

                          It's still under design but it is functional

                          Comment


                          • #14
                            Hey Ricky, thanks for the link above, I hadn't read that one yet.
                            Check out my hopefully useful site...

                            www.hobbybotics.com

                            It's still under design but it is functional

                            Comment


                            • #15
                              Thanks, I'll probably look at the other examples as well.
                              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!!!

                              Comment

                              Working...
                              X