Fun with Arduino - a Series of Introductory Videos [external source]

Now that we know how to get rid of the delay(0 and use millis() in stead (video 13) we can finalize our Automatic Day Night Light Cycle unit to have direct on screen feedback of cycle time adjustment by the user and to have the cycle stop, and the lights turn off, immediately when the switch is set to ‘off’.

Our unit has quite nice specifications:

  • Configurable timing, via keyboard or via analog input with on screen display
  • An option to randomize the times to give it some ‘livelyness’
  • On screen display of the on/off, day/night state and the cycles times

Fun with Arduino 14 Day Night Cycle with millis(), no Delay, Direct Feedback