Hello Arduino forum,
Have bread boarded the schematic shown in JPG
titled 'Closet Seed XIAO SAM SD12.
The circuit employs a PIR to send a signal
to the XIAO microprocessor to saturate
a MOSFET that opens the gate to four
12 volt LEDs that are bright enough
to light a walk-in closet.
In the past the method was to load
the breadboard, power the circuit
and wonder why 80% of the time the
system did not work.
So a method building and testing
has been adopted.
First the PIR was installed and
powered and the output of the PIR
was tested positive at 3.3 volts.
Then the 7805 voltage regulator
was put in and that it was confirmed
that the 7805 was receiving 12 volts and
outputting 5 volts.
Next the XIAO MC was installed
with the sketch Closet_ATtiny85_240120.ino,
attached herewith, and after it
was noticed that XIAO power indicator
LED was lit a resistor and 5 mm LED
(D1 on the schematic) was connnected to pin 3 and
D1 began to oscillate at the programmed
interval.
A second resistor/LED pair was then connected
to pin 3 of the MC which is timed to
send a signal for twenty seconds.
The LED showed that the MC was sending
the signal that is designed to go to
the Gate of the MOSFET and was
confirmed that the signal is 2.6 volts.
Finally the MOSFET was installed and the
and the MC pin 3 connected to the
MOSFET Gate as shown in the schematic.
But for some reason the 12 volt LEDs
will not light.
The lead to the 12 volt LEDs was
moved from the MOSFET Drain to
ground and the lights came on.
The MOSFET was tested and replaced.
The signal at the MOSFET Gate reads 2.6 volts
when the MC is sending a signal.
When the 12 volt LEDs are not connected to
the system the voltage between the 12
volt rail and the MOSFET Drain is
11.8 volts but when the 12 volt LEDs
are applied the voltage the power
rail and the MOSFET drain drops to
6.8 volts.
Tests of the 12 volt LEDs with a
5 volt power source shows that
5 volts will not make the
12 volt LEDs light.
So what about plugging the 12
volt LEDs makes the MOSFET
Drain drop to less than 7 volts?
Thanks.
Allen Pitts
Closet_ATtiny85_240120.ino (3.7 KB)