Skip to main content
100%

Arduino shutter

✓ Published0🌍 Public
SServuc
Last edited Apr 28, 2016
Created on Apr 28, 2016

This Arduino sketch operates an automated window shutter based on light and manual switch inputs. It shows a control loop that prioritizes an automatic daylight response, moving the shutter fully up or down when light conditions change, while also responding to physical wall switches with partial movements. The program uses the Arduino core library’s `pinMode`, `digitalRead`, and `digitalWrite` functions for I/O, along with `attachInterrupt` for switch detection and `Serial` for status logging. The logic employs simple state comparison to distinguish between sun and moon conditions, triggering relay outputs for up, down, or stop actions with predefined time delays.

AI-generated description

Similar vizzes