Code error or wiring?
Hi guys, I have been using this code for a little while.
In short, it is a motion sensored strip of lights and when the sensor is tripped the LED strip turns on for 60s. In addition, the clock enables me to keep the lights switched off during the day so it only turns on at night.
It seemed to work fine for the last few months, unless I have been oblivious to this, but now it constantly stays on.
What happens is the sesnor is stripped, lights turn on and during the 60s all is good. Then it freezes for about 5-7s and then it always reads the motion to be high and turns back on. And repeat over and over.
I think there is some kind of lagg involved where previous motion readings are not being read, but I am not certain about this, could be somethign else?
Code is here (https://gist.github.com/Tejkaran/059194457f5a1ed82d59a51e9cb718ee)
anyone know what is going on?
I replaced my motion sensor and that made no difference
I am using the LRS 350-5 power supply which is more than strong enough, Teensy 3.2 + prop shield, APA102c light strip, first light to Teensy is about 1.5m of wire, Teensy to motion sensor is the same( I dont think they affect it but adding for complete information)