Shop OBEX P1 Docs P2 Docs Learn Events
[Contest Entry]Automated Home Security System — Parallax Forums

[Contest Entry]Automated Home Security System

kpd237kpd237 Posts: 3
edited 2011-08-25 12:58 in Accessories
Hello, I'm fairly new to micro-controller programming, but I did use the boe-bot for one of my classes. Hopefully I just bought the last Spinneret in stock.

My automated home security system will monitor and report intrusions through text messages. I plan to implement multiple sensor types, and have many wild ideas I hope I can implement.

Expect a more detailed design document soon.

Comments

  • kpd237kpd237 Posts: 3
    edited 2011-07-31 20:59
    Well, do to my own time management issues I haven't finished, but here is what I've got:

    http://obex.parallax.com/objects/775/

    Sensor Schematic (if using less than 6 must be attached in order)

    AutomatedHomeSecurity_SensorArraySchematic.jpg


    I owe an incredible amount of thanks (in no particular order) to:
    Mike G
    Beau Schwabe
    Roy ELtham
    Jeff Martin
    Andy Lindsay
    Chip Gracey
    and all the others that they built on.

    Sorry that I do not have more to show. Thank you for the opportunity.
  • LtechLtech Posts: 380
    edited 2011-08-20 02:49
    In "kd_SensorArray.spin" i have trouble to compile on all the sensors routines ?


    If (sensorsAttached >= 1)
    setState(1,0,1,0,0,1)
    sensorWait= cnt *******' FAULT give :expected operator
    Waitcnt(sensorWait + 50_000)
    trippedsensor[0]=ina(middlePin) *******' FAULT give :expected operator

    ...........

    I try == and := but nothing


    Thanks for help
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2011-08-25 12:58
    I see your issue...your code should look like this:
    If (sensorsAttached >= 1)           
        setState(1,0,1,0,0,1)
        sensorWait := cnt                   'Give a 10ms pause so pins can be set appropriately and sensor circuit can be powered
        Waitcnt(sensorWait + 50_000)
        trippedsensor[0] := ina[middlePin]   
    

    Then it should compile. It looks like the source from the OBEX has these issues in it. It is also missing an object from Brildea.

    As a note, I have a custom home alarm system originally built around a BS2p40 and a BS2 which also sends me TXT messages on status upates, but I built mine back when we were developing the PINK Module, so it uses that. I had always thought about updating the system to use a Propeller though someday.
Sign In or Register to comment.