Announcement

Collapse
No announcement yet.

Really cool alarm system using Basic stamp

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

  • Really cool alarm system using Basic stamp

    I'm looking into putting a Basic Stamp in my car and setting it up as an alarm system.
    its a Parrallax model 2. it holds like 32k of programming.
    It has 16 I/O pins.
    here is the program->
    'Logans Car Alarm
    'pin 0 is LED on dash
    'pin 1 is siren or voice chip
    'pin 7 is UHF remote
    'pin 13 is trunk light
    'pin 14 is shock detector
    'pin 15 is dome light relay

    Dirs = %000000111111111 '0=out 1=in

    Standby: 'standby mode
    out0=0 'led is off
    if in7=1 then chirp 'if remote outputs to pin 7 then chirp the alarm
    goto Standby

    chirp: 'chirp the alarm and LED twice then goto armed mode
    out4=1
    out0=1
    pause 500
    out4=0
    out0=0
    pause 500
    out4=1
    out0=1
    pause 500
    out4=0
    out0=0
    pause 500
    out4=0
    out0=0
    'goto armed mode

    arm: 'armed mode, alarm is on and ready
    if in13=1 then warn 'goto warn mode
    if in14=1 then warn 'goto warn mode
    if in15=1 then warn 'goto warn mode
    if in7=1 then standby
    goto arm
    warn:
    out1=1 'turn on voice chip
    pause 5000
    goto arm

    I'm not done with the program yet, and I am really bad at it, and I can't get it to work right, so any help with it would be great.

    I am going to use relays so that when someone opens my trunk or door, it will set it off, and I am going to get a shock sensor so if some one pushes against the car.

    I am going to get a voice chip from Radioshack, so that if the alarm is set off, it will say "Please step back from the vehicle" then 10 seconds later, it will set off an alarm, then the alarm will go off in 30 seconds.

    I think I am going to use an extra battery and one of those things that lets it charge from but not drain the main battery.
    This will then power a 80watt amp I have laying around, which will power a 10" woofer for the alarm and voice.

    I am going to buy a UHF transmitter and reciever from radioshack (unless someone know where I can buy the key ring type with out having to have it tied to a certain alarm system/brand.)

    So, any ideas anyone?
    Clarion 200watt head unit w/ Aux in.
    Kicker 800watt 4 channel amp
    In a 96 Grand Prix SE.

  • #2
    That all sounds nice, and mite even work, but just buy a car alarm, they arn't all that expensive any more
    http://www.mp3vl.tk Plans and progress on my install - (Updated 28 June 02)
    Australian mp3car Portal
    mp3car related links Check them out / Add some
    mp3car FAQ - RTFF

    [########==]80% Assembling
    -=Current Progress: Working Sproggy supply, building box.=-

    Comment


    • #3
      All, ok, and instead of building my own mp3 system, I believe I'll go talk to that annoying dude over in the sale section and get one of those prefab computer setups, ok?

      I THOUGHT BUILDING THIS STUFF WAS THE WHOLE POINT OF THIS SITE!!!!
      Clarion 200watt head unit w/ Aux in.
      Kicker 800watt 4 channel amp
      In a 96 Grand Prix SE.

      Comment


      • #4
        I've been looking for an excuse to buy the BasicSTAMP dev kit for a while, and you may have just provided it for me. It suddenly occured to me that there's no good reason for me to carry keys around, since my car has keyless entry. So, why not build a STAMP based keypad and start button to start the car? Type in a code, which enables the IGN line. Then push the start button to crank the car. Once the start button is released, the stamp loops and waits for a shutdown button to be pressed (or the start button to be pressed again), at which time it kills the IGN line. There could be another button that just enables the ACC line...Hmmmm....
        Player: Pentium 166MMX, Amptron 598LMR MB w/onboard Sound, Video, LAN, 10.2 Gig Fujitsu Laptop HD, Arise 865 DC-DC Converter, Lexan Case, Custom Software w/Voice Interface, MS Access Based Playlists
        Car: 1986 Mazda RX-7 Turbo (highly modded), 1978 RX-7 Beater (Dead, parting out), 2001 Honda Insight
        "If one more body-kitted, cut-spring-lowered, farty-exhausted Civic revs on me at an intersection, I swear I'm going to get out of my car and cram their ridiculous double-decker aluminium wing firmly up their rump."

        Comment


        • #5
          i also need a new car alarm, and i`d much rather build it myself, but wtf is STAMP?

          doesn't anyone have a link or anything...

          sorry to seem like skinny boy!

          [ 08-16-2001: Message edited by: Mike Hunt 79 ]
          My Setup

          Comment


          • #6
            I had the same question. I found this

            There seems to be a lot of info out there (go to Yahoo and search for "Basic Stamp"). It definitely looks interesting.

            Comment


            • #7
              Originally posted by tbone:
              <STRONG>I had the same question. I found this

              There seems to be a lot of info out there (go to Yahoo and search for "Basic Stamp"). It definitely looks interesting.</STRONG>
              Thanx for the link!
              I can feel another project coming on already, and i havent even finished my mp3 project!

              Looks like my BBC BASIC experience (from 12 years ago!) might come in useful after all!

              Idea... u could have the in car mp3 computer linked to the BASIC STAMP in the car.... the possabilities r endless.... the computer could control leds, 'letric windows, etc... i must stop, or i will explode with excitement
              My Setup

              Comment


              • #8
                Its not that hard to program, I've never programmed much before, and I picked it right up in about 2 hours.
                I'm going this weekend to buy a piezo alarm, shock detector, and a Doppler Radar detector for it.
                Clarion 200watt head unit w/ Aux in.
                Kicker 800watt 4 channel amp
                In a 96 Grand Prix SE.

                Comment


                • #9
                  cool... let us know how it goes... i`d also wire up the horn to the alarm... but then i have a lorry airhorn installed
                  My Setup

                  Comment


                  • #10
                    Bite the bullet, build or buy a programmer and just learn to program in Microchip assembly. There are a multitude of MCU's from Microchip that are dirt cheap, have built in flash, have A/D converters, Uarts, etc etc.

                    REAL convenient to use and program, much cheaper and more powerful in the long run.

                    Probe

                    Comment


                    • #11
                      I agree with probedude_2000. I just learn to program Microchip Microcontroller. I built my own programmer (free from www.myke.com) and I'm writing code in pic basic (similar to Pbasic). You can compile your code at compileshot.com for free. Microchip is about 1/5 of the cost of Basic stamp and way faster. I designed my computer shut down circuit with it. Delay timing and controling you shut down can be done with you code instead of relays and transistor. You can make it to do anything you want.
                      66 Mustang

                      Comment


                      • #12
                        heres a thought, Radio Shack (in the commercial catalog) sells a pair of RS-232 transeviers for like 5 bucks each.

                        Not sure of the range, but wouldent it be cool to make one into a pager type device with the STAMP output going to the RS-232 transmitter sending an alarm signal to the pager? All Electronics sells a shaker taken out of a pager that could be used if you didn't want a loud alarm.

                        just a few thoughts.

                        share your thoughts with me on this.
                        Monger
                        ICQ-7207702
                        UPDATE: I moved farther north. Now its even too cold for the deer; only moose now

                        Comment


                        • #13
                          I'm a visual basic programmer with very little understanding of hardware and lower level programming. Would you still recommend the Microchip route??

                          I would be very interested in seeing some practical examples of projects people here have done with this (or similar) technology. Seems like there are a lot of things you can do with this stuff for both car and home automation.

                          For you VB programmers, check out www.oopic.com.

                          Comment


                          • #14
                            Yes, go the microchip route.

                            There are TONS of example programs on the Microchip website, and on the web itself with decently commented code. It shouldn't take you long to create simple programs that do useful things.

                            Comment


                            • #15
                              MicroChip

                              Yes, i agree. The Basic Stamp is not 1/2 as useful as a good PIC, and quite a bit more expensive, not to mention that they all have to run a real time basic intepreter to do anything. It just comes down to learning how to use the PIC. I am working on my microcontroller shutdown controller.

                              Comment

                              Working...
                              X