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.

SAMD21 to WS28212b with PIR, 250728

Hello ETO forum,

Working with the XIAO SAMD21 to
control addressable LED strip
WS28212b by BTF-Lighting WS2812B SPI RGB LED Strip
SKU: WS2812B5M60LW30.

With a working system it was thought
that it would be good to add a PIR
so the system would light up when approached.

This a pictural of the bread board system built
which works with sketch
PIR_to_SAMD21_to_WS28212b_Fade_Color_250726.ino
herewith attached.



Based on breadboard system operating as
expected, a more permanent circuit was
built using prototype board:
SAMD21_to_WS2812b_w_PIR_PCB_above_250726.jpg


The two-minute video posted shows the
breadboard circuit stays on for about
twenty-six seconds, long enough for
the sketch to pulse the strip four
times. The circuit then glows red
(the last command given by the sketch)
and stays solid red until triggered
by the PIR when the strip begins
the loop by turning blue and repeating
the 26 second cycle.

But the PCB circuit only cycles once
and then glows solid red, also shown
in the video.

The two circuits have been compared
for hours but it cannot be discovered why
the breadboard works as expected and
the PCB does not. Have made several
tests and checked to make sure all
three subsystems, the microcontroller,
the PIR and the LED strip have the
same ground.

Why does the breadboard system work as
expected and the PCB circuit does not?.

Thanks.

Allen Pitts
 

Attachments

Last edited:
Are you using the same exact PIR as with the breadboard? If it's a different one the output on time may be different; I'd trigger a software timer or loop counter to give the light-on time you want, rather than rely directly on the PIR (if? that is what you are doing).
 
Hello rjenkinsgb and the ETO forum,

Have moved components: PIR, microcontroller, WS28212b strip from the back and forth between working breadboard system to the PCB to isolate the defective component without achievement.

Allen
 

Latest threads

New Articles From Microcontroller Tips

Back
Top