Hello AAC forum,
Have built and installed a half dozen closet lights
that use PIRs (motion detectors) to turn three or four
12 volt lamps on for a minute, schematic attached.

The timer is a microcontroller called XIAO SAMD21,
used to be called Seeeduino.
A couple of the closet lights have failed, not because
they won't come on but because they won't go off.
First the PIR was tested to make sure that is
going from high to low which would make the motion detector
the culprit.
But the PIR, which are very reliable, operates
normally in a test circuit.

The XIAO SAMD21 was then tested and the MC seems
to be normal. Also LED D1 acts as a sort of heartbeat
for the XIAO and LED D1 operates as expected,
blinking on and off every three seconds.

The only other component that might fail is the
MOSFET. Very difficult to test a transistor once
soldered into the PCB. So, the MOSFET was removed
and replaced with a brand new, freshly tested
unit.
Out of desparation a new XIAO was unpackaged
programmed and installed. Same result. The
load lights come on but will ot go off.
It is unlikely that there is a problem with
the sketch since the same program is being
used in four other systems that are operating
normally.
I am at the end of ny troubleshooting
skills rope.
Thanks
Allen PItts
Have built and installed a half dozen closet lights
that use PIRs (motion detectors) to turn three or four
12 volt lamps on for a minute, schematic attached.

The timer is a microcontroller called XIAO SAMD21,
used to be called Seeeduino.
A couple of the closet lights have failed, not because
they won't come on but because they won't go off.
First the PIR was tested to make sure that is
going from high to low which would make the motion detector
the culprit.
But the PIR, which are very reliable, operates
normally in a test circuit.

The XIAO SAMD21 was then tested and the MC seems
to be normal. Also LED D1 acts as a sort of heartbeat
for the XIAO and LED D1 operates as expected,
blinking on and off every three seconds.

The only other component that might fail is the
MOSFET. Very difficult to test a transistor once
soldered into the PCB. So, the MOSFET was removed
and replaced with a brand new, freshly tested
unit.
Out of desparation a new XIAO was unpackaged
programmed and installed. Same result. The
load lights come on but will ot go off.
It is unlikely that there is a problem with
the sketch since the same program is being
used in four other systems that are operating
normally.
I am at the end of ny troubleshooting
skills rope.
Thanks
Allen PItts



