rotate bytes in array


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: rotate bytes in array

    Yes, the device is also a car alarm that is triggered by internal lights that come on when the vehicle door is opened.
    The line is 12 Volts live until a door is opened & a resistor divider provides 5 Volts for the pic's input.
    If ever I get a false alarm, I want to save the last thirty seconds voltage readings to see if I can prevent it.

    When the car battery goes cactus my alarm might also sound since the resistor divider is at the unregulated side,
    and may not produce the voltage for logic high at the pic pin.

    I could have the program look at the last thirty seconds values to prevent these false triggers.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: rotate bytes in array

    from your decription, the alarm part could be done with 1's and 0's, door opened/closed, no a/d overhead, just digital pin, "0" at < 2.5volts and "1" > about 2.5volts. No help checking batt voltage though...??
    Don

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default Re: rotate bytes in array

    Quote Originally Posted by Art View Post
    Yes, the device is also a car alarm that is triggered by internal lights that come on when the vehicle door is opened.
    ...

    Just a technicality; I'd feed directly from the door switch, not the lamp itself. You could have forgotten the interior lamp switch in the OFF position, the lamp could be burnt, or the robbers might know this trigger; they could just break the window, turn off the lamps and open the door.

    I know it's highly unlikely, but it would make your device even better.

    Robert

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: rotate bytes in array

    It does get it's input from the door switch
    It's live until any door is opened, then it is earthed.
    That is why I might get a false trigger as the batteries die.
    Last edited by Art; - 15th March 2012 at 23:06.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

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