MS14A EagleEye motion sensor schematic



This inexpensive motion sensor from X-10 was giving false ON commands, and I decided
to see what was inside.  I was intrigued that it contained a variant of my favorite Microcontroller, and I
thought the hardware had good hacker potential.

The HawkEye and the EagleEye are of identical electrical design. 
The case of the EagleEye makes it weather resistant.

Direct link to X-10's image of the sensor
X-10 web page for this device.

Circuit Description


Photo of circuit board inside the motion sensor.  The unit is controlled by a 12C508 PIC and contains
an RF transmitter, two pushbuttons, two LEDs, a pyroelectric motion sensor, and is powered by 2 AAA batteries.


The schematic of the circuit board. The values of capacitors are in uF, and resistors
in Ohms (unless where noted).  Numbers in bold were sent to me by Bart McCormick (sterling_sound.at.bellsouth.net) on 9/05.  I have not verified them.  Thanks to him.

Starting in the top left, the power supply section consists of the two AAA batteries and the C11 electrolytic capacitor.  The C19 ceramic is the bypass cap for the PIC.  Below it in the schematic is the Sun Sensor, which employs a standard Cadmium Sulfide cell to detect the light level.  Its resistance drops with increasing light, thus the output at the jumper R1 goes low when it is daytime.  That is connected to pin 5 of the PIC, which also serves as the control input for the red LED.  Due to the high value of R14, the Sun Sensor is unable to provide much sink current to turn on TR4 to light the LED, but the PIC (with its totem-pole output) is able to do that without difficulty.  Presumably, the code in the PIC programs pin 5 as in input to sense the light level, but drives it low to turn on the red LED.

The Motion Sensor portion in the top right starts with the output from a pyroelectric sensor that connects to the U2A TLC27 Op-Amp.  This, along with the RC following it formed by C12 and R18, is configured as a band-pass filter with a peak pass frequency of about 1 Hz and a peak voltage gain of about 233 (47dB).  The result of a SPICE simulation is shown below.  The plot is the ratio of the input voltage of U2B over the input voltage of U2A.

Plot of MS14A bandpass filter
Characteristics of band-pass filter formed by U2A, C12, R18 and associated components.
The filter peak is around 1Hz and 47dB (gain of ~233).

The output of U2A is then threshold detected by U2B, which feeds pin 7 of the PIC via a 1Meg resistor.  This latter pin also serves double duty, and provides current to light the Green LED when the internal code drives it high.  Pin 3 of the PIC forms an enable signal for the threshold detector.  From observations of the operation of the circuit, this line goes high (disabling the threshold detector) for 10 seconds after every X-10 command sent via RF.  The need for this disable is unclear.  Also, why this disable function is not performed in software inside the PIC (and thus saving one pin) is not clear to me either.

Key components of the motion detector are the three RC pairs around U2A.  To ignore false triggers associated with slow thermal events, we could shift the peak of the band-pass higher in frequency.  This can be done by decreasing the value of the capacitors.  More on that is mentioned in the modification section below.

Sensitivity could in principle be increased by decreasing R5, however range is controlled geometrically by the arrangement of the fresnel lens in front of the pyroelectric sensor, and increasing the gain could degrade the reliability of the sensor in terms of false trigger events.

The transmitter is keyed by pin 2 via R3.  It is perhaps possible to control the power level with R3, but since I did not bother with tracing the transmitter itself, I do not know for sure.  That section is encased in wax to stabilize the components, and I did not want to destroy this particular unit by disturbing it.  Perhaps I will trace this section in the future.

The other parts of the circuit such as the two switches for the user interface are minor, and not worth much mention.  The microcontroller is a 12C508 from Microchip, and uses its internal RC oscillator, which means it is running at around 4MHz, or about 1MIPS.  I would think that its code is protected, and that reading it would be fruitless.  It is worth noting that the 1 minute expected duration for the OFF command delay was really about 70 seconds with this particular sensor.

Project Log

  • 7 December 2003
    • Circuit traced, and operation analyzed.
    • I removed the CDS1 dark/light sensor as I have separate sensor for that function in my system.
    • I decreased the value of C12 from 1uF to 0.1uF to decrease sensitivity to thermal events and false triggers.  The range appears to be unaffected, and is about 25 feet on a cold night.  This has reduced the number of false alarms, but has not eliminated them.  The response of the band-pass filter changes to the plot below.  This activity will continue intermittently.
modified band-pass filter
Modified band-pass filter response.  The peak frequency is now shifted up to 3.3Hz.
  • 7 September 2005 - On this day, received an e-mail from Bart McCormick with corrections to my schematic.  Many thanks to him.
  • 3 October 2005 - Note from Bryan Lee (bryanlee720.at.msn.com):
    Hi Ed
    I discovered a few thing about the MS14a you might be interested in. I am using two of the Eagleeye sensors out side and they were terrible about false triggering. Here is what I did.

    1. Raised the value of R15 to 330k this decreased the sensitivity to small IR changes. I will probiblly go to 470k. It appears the limit is about 1 Meg before it no longer triggers. On my board the 1 Meg above it on your diagram is R20 and resistor on the output of U2B is a 1K chip resistor on the back of the board.

    2. I tried changing C12 to .1 Mfd as you did, but with the higher trigger level the sensor missed slow movement. I went back to 1Mfd.

    3. I changed R11 to 220K to move the light / dark trip point brighter, and added a short piece of black heatshrink tube about 3/8 inch long to the CdS sensor to reduce its field of view. This prevents my units from seeing local lights and gives a better reading on natural light levels.

    4. As with any IR motion sensor, they must not be able to see the sky. I blocked the upper row of circles in the lens with a piece of black tape, to prevent the sensor from viewing up. This got rid of the last false triggers.

    These changes have eliminated false triggers and now small motion like birds and squirls don't cause triggers. I am using the sensors to trigger a DVR to record security cameras, so I can also see the cause of the triggers.

    Thanks for your efforts and the posting of the schematics. They were very helpfull.

    Bryan Lee
  • 29 December 2008 - Note from Bob Goodrich (bobgoodrich@bak.rr.com
Ed,Thank you very much for your MS14A page, it has been a lot of help.

The pictures below are a recent purchase of something X10 pro is calling the PMS03 outdoor motion sensor. In reality, it is the MS16A Active Eye motion sensor.  Two components, RX and URX, seem to take it from a MS14A to a MS16A.  R16 is removed from the board and the white jumper wire grabs ahold of the two added components. URX adjusts the off delay time from 1 to 60 minutes when the delay time has been set to the 1 blink mode only. A new capacitor was added down around the coil, I'm not sure what that is all about, perhaps bypassing?
 
The back side of the board contains two surface mount resistors R19 and R20 and a couple of surface mount capacitors up in the RF area. Both resistors would differ with your on line schematic. R20 is 1K on this board and you show 1M. R19 is a 470 ohm resistor in series with the green LED, you show a diode (with R19 label) in that location. The other difference is R1, (to the left of the green LED). It is shown as zero ohms on the schematic, a 68 ohm resistor is in that location. Your board picture shows the same 68 ohm resistor.

Thank you again for all of your X10 stuff, I've enjoyed it. It is stuff you can get no where else.

Bob

Links

Other X-10 Schematics

Main Home Automation Page

Back Home