Realtime clock: Unterschied zwischen den Versionen

Aus www.wiki.ardumower.de
Wechseln zu: Navigation, Suche
(Realtime clock (RTC))
(Realtime clock (RTC))
 
(10 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 5: Zeile 5:
 
The robot requires a clock, so that it can start mowing automatically at certain time intervals (timer).
 
The robot requires a clock, so that it can start mowing automatically at certain time intervals (timer).
  
A realtime clock (RTC) returns current time (minute, hour) and date (day of week, day, month, year) - by the help of a battery the time continues to run even if the robot mower is switched off.
+
A realtime clock (RTC) returns current time (minute, hour) and date (day of week, day, month, year) - by the help of a battery (Lithium Ion LIR2032, 3.6v, 48 mAh) the time continues to run even if the robot mower is switched off.
  
Example: DS1307
+
Additionally, the RTC module contains an EEPROM memory (non volatile memory) that can hold 4K of permanent user data.
 +
 
 +
DS1307 module
  
 
<gallery>
 
<gallery>
Zeile 14: Zeile 16:
 
File: ds1307_schematics.jpg | ds1307_schematics
 
File: ds1307_schematics.jpg | ds1307_schematics
 
</gallery>
 
</gallery>
 +
 +
== Troubleshooting "Tiny RTC I2C module" ==
 +
If your module is losing time/date, fix the circuit like this:
 +
 +
* Remove D1, R6 and R4
 +
* Solder jumper wire in place of R6
 +
* Inspect crystal soldering - fix if necessary
 +
* Replace battery
  
 
== '''Wiring''' ==
 
== '''Wiring''' ==
Zeile 19: Zeile 29:
 
The RTC module is connected on the I2C bus of the Arduino Mega (in parallel with any other I2C modules).
 
The RTC module is connected on the I2C bus of the Arduino Mega (in parallel with any other I2C modules).
  
DS1307 Module SDA — Arduino SDA Pin
+
<blockquote style="background-color: lightgrey; border: solid thin grey;">
 
+
<pre>
DS1307 Module SCL — Arduino SCL Pin
+
DS1307 Module SDA       — Arduino SDA Pin
 
+
DS1307 Module SCL       — Arduino SCL Pin
DS1307 Module VCC (+5V) — Arduino VCC (+5V)
+
DS1307 Module VCC (+5V) — Arduino VCC (+5V)
 
+
DS1307 Module GND       — Arduino GND
DS1307 Module GND — Arduino GND
+
</pre>
 
+
</blockquote>
  
 
== '''Note''' ==
 
== '''Note''' ==
Zeile 37: Zeile 47:
  
 
On the robot, several timers can be programmed (via Android pfodApp).  
 
On the robot, several timers can be programmed (via Android pfodApp).  
For each timer, you can define a time interval and the desired days.
+
For each timer, you can define a time interval ('time windows') for the desired days. As long as the actual time is within any time window, the robot can freely mow, charge, mow, charge etc.
 
+
  
 
== '''Example:''' ==
 
== '''Example:''' ==

Aktuelle Version vom 3. Juni 2016, 08:27 Uhr

Realtime clock (RTC)

The robot requires a clock, so that it can start mowing automatically at certain time intervals (timer).

A realtime clock (RTC) returns current time (minute, hour) and date (day of week, day, month, year) - by the help of a battery (Lithium Ion LIR2032, 3.6v, 48 mAh) the time continues to run even if the robot mower is switched off.

Additionally, the RTC module contains an EEPROM memory (non volatile memory) that can hold 4K of permanent user data.

DS1307 module

Troubleshooting "Tiny RTC I2C module"

If your module is losing time/date, fix the circuit like this:

  • Remove D1, R6 and R4
  • Solder jumper wire in place of R6
  • Inspect crystal soldering - fix if necessary
  • Replace battery

Wiring

The RTC module is connected on the I2C bus of the Arduino Mega (in parallel with any other I2C modules).

 DS1307 Module SDA       — Arduino SDA Pin
 DS1307 Module SCL       — Arduino SCL Pin
 DS1307 Module VCC (+5V) — Arduino VCC (+5V)
 DS1307 Module GND       — Arduino GND

Note

If you experience communication problems when using multiple I2C modules on one I2C bus, it is recommended to reduce the length of the cables.


Timer

On the robot, several timers can be programmed (via Android pfodApp). For each timer, you can define a time interval ('time windows') for the desired days. As long as the actual time is within any time window, the robot can freely mow, charge, mow, charge etc.

Example:

Timer 1: 08:00 - 13:00 Monday, Thuesday, Wednesday

Timer 2: 14:00 - 16:00 every day

Timer 3: off

Timer 4: off