Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Seeed XIAO SAMD21 with PIR 250303

Hello ETO forum,

Have built and installed a half dozen closet lights
that use PIRs (motion detectors) to turn three
12 volt lamps on for a minute.=, schematic attached.
Closet_SEED_XIAO_schematic_240920.jpg


The timer is a microcontroller called XIAO SAMD21

A couple of the closet lights have failed, not because
they won't come on but because they won't go off.
lnr_3_lens.jpg


First the PIR was tested to make sure that it is
going from high to low so the PIR wasn't 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.
lnr_3.jpg

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 desperation 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
 

Attachments

  • Closet_SEED_XIAO_schematic_240826.jpg
    Closet_SEED_XIAO_schematic_240826.jpg
    126.6 KB · Views: 8

Latest threads

New Articles From Microcontroller Tips

Back
Top