


Howto set the rtc power on time serial#
initialize serial communication at 9600 bits per secondĬontrollino_SetTimeDate(31,2,1,17,8,37,23) // set initial values to the RTC chip (USB or external 12V/24V) to the CONTROLLINO. The setup function runs once when you press reset (CONTROLLINO RST button) or connect power supply #include /* Usage of CONTROLLINO library allows you to use CONTROLLINO_xx aliases in your sketch. To set initial values to the RTC chip we use function from Controllino Library: * Controllino_SetTimeDate(31,2,1,17,8,37,23) // (Day of the month, Day of the week, Month, Year, Hour, Minute, Second) #include Voltage levels over 5.5V can damage the Controllino permanently. If you use the RTC in your program, the switch has to be in the “1” position, otherwise there would be no data connection to the RTC.

On CONTROLLINO MINI the “RTC” switch is made for switching the internal RTC (Real Time Clock) onto the SPI bus. (Please, refer to if you do not see the CONTROLLINOs in the Arduino IDE menu Tools->Board.) Hardware Required Please, select proper target board in Tools->Board->Controllino MINI/MAXI/MEGA before Upload to your CONTROLLINO. These values can be prompted and can be used directly or in logical combination with other conditions as a trigger for specific operations. In the user program you can set the hour, minute, second, day, weekday, month and year. So after a loss of supply voltage you don’t have to reconfigure the time. The RTC also runs without external power supply for about 2 weeks. Every CONTROLLINO has a built-in RTC of the type RV-2123-C2-TA-QC-020 with buffered power supply.
