Close the IDE. Unpack the libraries if necessary, rename them if necessary and copy them into the folder "[Arduinosketchbook]/libraries".
Download and install the sketch and parameter set
Download the latest version of the sketch and parameter set here and save them to your Arduino sketchbook folder.
Connect the USB cable to the PC where the Arduino IDE is installed
Open the sketch
Select board type and COM port, if necessary
the brightness of the displays can be adjusted
the time and alarm time can be set
the alarm sound is played
the volume can be adjusted
the MP3 file can be played completely
the MP3 file can be interrupted by switching to "Alarm off" or "Alarm set"
the relay has only energized while the MP3 file is playing
After exiting the IDE, disconnecting the USB cable from the PC and connecting it to the Powerbank, check that
the time and alarm time after disconnecting the Powerbank from the power supply and disconnecting the USB cable from the Powerbank survive
The sketch contains the line: "#include "parameterset4clock1.h" // Parameters for Clock No. 1"
This includes constants which can be used to adjust the behaviour of the displays, the DFPlayer and the minute keys of the alarm time.
Displays: The constants MIN_C and MAX_C are used to compensate for differences in brightness between the displays or to adjust the brightness according to one's own
preferences. It can be used to set the lowest and highest brightness values for the time display. The same applies to MIN_A and MAX_A, which are responsible for the alarm display.
DFPlayer: MIN_V and MAX_V indicate the lowest and highest volume value. Values between 0 and 30 are allowed, the setting should depend on the type and volume of the MP3
file. The lower value should always be slightly higher than 0 so that the alarm cannot (accidentally) be set to silent. The upper value should not exceed the point at which the
speaker might start to boom.
Minute keys of the alarm time: With MIN_STEP_WIDTH you can select the interval at which the minute keys increase or decrease the alarm time. It should be an integer
divider of 60, i.e. 1, 2, 3, 4, 5, 6, 10, 12, 15, 20 or 30, default value is 1.
Ideal mounting height: the user should stretch their arms slightly upwards in a supine position and lying on their usual cushion. This height is optimal for the bottom side, the control panel
of the alarm clock. Fix the mounting plate to the wall using dowels and screws.
Cable duct, power supply and power bank
To lead the USB cable down or to the side, an optional cable duct (DIY store) can be used.
Place the power supply and power bank according to the space available and make sure that both remain completely free of any objects (bedspreads, plush toys, magazines, etc.) that could
hinder their heat dissipation. Otherwise there is a fire hazard!