Repository navigation
ak3918ev300_lite_heimvision-pe3020w: IR-cut 42 night / 41 day, light monitor on - #266
Conversation
…monitor on Confirmed on the camera (#234): with irCutPin1=42 and irCutPin2=41 the filter swings to night when the photocell is covered and back to day when it is uncovered, each pulse 150-158 ms, both pads back low. Majestic counted one automatic transition each way. The pins are swapped from the guessed 41/42, and nightMode.lightMonitor is turned on now that the direction is known.
PR Summary by QodoCorrect PE3020-W IR-cut direction and enable automatic day/night switching
AI Description
Merge Risk
|
Code Review by Qodo
1. Default config enables auto day/night on an unfixed ADC
|
Confirmed on the physical PE3020-W in #234 (comment). With
irCutPin1=42andirCutPin2=41:Both pads were back low after every pulse. Majestic counted one automatic transition each way, and the photocell read 2999 → 36–41 → 2999 mV.
Changes
customizer.sh:irCutPin1 42(night) andirCutPin2 41(day), swapped from the guessed 41/42, andnightMode.lightMonitor true. The ADC day/night keys from ak3918ev300_lite_heimvision-pe3020w: the photocell on AIN0, for ADC day and night #259 are unchanged.The ADC reading depends on OpenIPC/linux#281, the EV300 SAR-ADC1 fix; a kernel without it reads 0 mV, which with
lightMonitoron would hold the camera at night. #281 is merged intoanyka-ak3918ev300, so every image built from here carries it. The test image for #234 checks this.