Радиоуправляемые модели самолетов, вертолетов, автомобилей, катеров, яхт и танков.
Гарантируем ваше удовольствие либо возврат денег. На сайте огромное количество отзывов о нашей работе и товарах.
Arduino совместимый DS1302 модуль часов реального времени с батареей.
-
The Real Time Clock has the ability of calculating to 2'100ths of a second, minute,
hour, day, week, month, year, and the ability to adjust to a leap year.
Color: Green
Material: PCB
Voltage: 2v ~ 5.5v
Length: 43mm
Width: 23mm*Note: This is not an original Arduino brand product.
-
Перевод устарел, чуть выше - новое англоязычное описание товара!
Часы реального времени имеют возможность расчета в 2'100-й доли секунды, минуты,
часа, дня, недели, месяца, года и имеют способность приспосабливаться к високосным годам.
Технические характеристики:
Цвет: Зеленый
Материал: PCB
Напряжение: 2V ~ 5.5V
Длина: 43 мм
Ширина: 23 ммНомер продукта: 438000032
-
The Real Time Clock has the ability of calculating to 2'100ths of a second, minute,
hour, day, week, month, year, and the ability to adjust to a leap year.Specs:
Color: Green
Material: PCB
Voltage: 2v ~ 5.5v
Length: 43mm
Width: 23mm
Чтобы общаться и совершать покупки необходимо зарегистрироваться.
Это просто и займёт всего одну минуту.
Спасибо за регистрацию!
Для подробностей, наведите курсор на одну из картинок.
Удаленные товары | |||||||
Очистить |
http://ru.aliexpress.com/item/Free-Shipping-New-DS1302-Real-Time-Clock-Module-With-CR2032-With-Battery-High-Quality/1922491035.html
DS1302--------ARDUINO
VCC-----------------5V
GND-----[1кОм]---GND (Важно! без этого нормально не работает)
CLK------------------3
DAT------------------2
RST------------------4
Библиотека:
DS1302.h
www.avislab.com/blog/wp-content/uploads/2011/08/ds1302.zip
Пример кода:
// DS1302_Serial_Easy (C)2010 Henning Karlsen
// web: http://www.henningkarlsen.com/electronics
//
// A quick demo of how to use my DS1302-library to
// quickly send time and date information over a serial link
//
// I assume you know how to connect the DS1302.
// DS1302: CE pin -> Arduino Digital 4
// I/O pin -> Arduino Digital 2
// SCLK pin -> Arduino Digital 3
#include <DS1302.h>
// Init the DS1302
DS1302 rtc(4, 2, 3);
void setup()
{
// Set the clock to run-mode, and disable the write protection
rtc.halt(false);
rtc.writeProtect(false);
// Setup Serial connection
Serial.begin(9600);
// УСТАНОВКА ВРЕМЕНИ ДЛЯ ЧАСОВ
//The following lines can be commented out to use the values already stored in the DS1302
// rtc.setDOW(FRIDAY); // Set Day-of-Week to FRIDAY
// rtc.setTime(12, 0, 0); // Set the time to 12:00:00 (24hr format)
// rtc.setDate(6, 8, 2010); // Set the date to August 6th, 2010
}
void loop()
{
// Send Day-of-Week
Serial.print(rtc.getDOWStr());
Serial.print(" ");
// Send date
Serial.print(rtc.getDateStr());
Serial.print(" -- ");
// Send time
Serial.println(rtc.getTimeStr());
// Wait one second before repeating :)
delay (1000);
}
Пример вывода:
Saturday 17.05.2014 -- 14:22:34
Saturday 17.05.2014 -- 14:22:35
Saturday 17.05.2014 -- 14:22:36
Saturday 17.05.2014 -- 14:22:37
Saturday 17.05.2014 -- 14:22:38
Saturday 17.05.2014 -- 14:22:39
Saturday 17.05.2014 -- 14:22:40
Saturday 17.05.2014 -- 14:22:41