1. Arduino Nano 328
2. Shield P10 for nano
3. RTC DS3231
4. Modul P10
5. kabel usb untuk memmrogram arduino
6. Software Arduino
7. Library :
1. DMD
2. TimerOne
3. DS3231
Tutorial :
1. Setting jam dahulu menggunakan sketch dibawah ini:
// DS3231_Serial_Easy
// Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
// web: http://www.RinkyDinkElectronics.com/
//
// A quick demo of how to use my DS3231-library to
// quickly send time and date information over a serial link
//
// To use the hardware I2C (TWI) interface of the Arduino you must connect
// the pins as follows:
//
// Arduino Uno/2009:
// ----------------------
// DS3231: SDA pin -> Arduino Analog 4 or the dedicated SDA pin
// SCL pin -> Arduino Analog 5 or the dedicated SCL pin
//
// Arduino Leonardo:
// ----------------------
// DS3231: SDA pin -> Arduino Digital 2 or the dedicated SDA pin
// SCL pin -> Arduino Digital 3 or the dedicated SCL pin
//
// Arduino Mega:
// ----------------------
// DS3231: SDA pin -> Arduino Digital 20 (SDA) or the dedicated SDA pin
// SCL pin -> Arduino Digital 21 (SCL) or the dedicated SCL pin
//
// Arduino Due:
// ----------------------
// DS3231: SDA pin -> Arduino Digital 20 (SDA) or the dedicated SDA1 (Digital 70) pin
// SCL pin -> Arduino Digital 21 (SCL) or the dedicated SCL1 (Digital 71) pin
//
// The internal pull-up resistors will be activated when using the
// hardware I2C interfaces.
//
// You can connect the DS3231 to any available pin but if you use any
// other than what is described above the library will fall back to
// a software-based, TWI-like protocol which will require exclusive access
// to the pins used, and you will also have to use appropriate, external
// pull-up resistors on the data and clock signals.
//
#include <DS3231.h>
// Init the DS3231 using the hardware interface
DS3231 rtc(SDA, SCL);
void setup()
{
// Setup Serial connection
Serial.begin(115200);
// Uncomment the next line if you are using an Arduino Leonardo
//while (!Serial) {}
// Initialize the rtc object
rtc.begin();
// The following lines can be uncommented to set the date and time
rtc.setDOW(WEDNESDAY); // setting hari
rtc.setTime(12, 0, 0); // Setting jam
rtc.setDate(1, 1, 2014); // Setting Tanggal, Bulan, Tahun
}
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);
}
2. Setelah jam sudah disetting
upload sketch dibawah ini:
jam nano
tutorial ini juga tersedia di play store:
Tutorial P10 dengan arduino
jadilah seperti video dibawah ini
maaf mas saya mau tanya tentang program diatas, saat ditampilkan bisa gakpenampilan jamnya di perlama terus detiknya setiap 1 detik berubah ?
BalasHapusbisa... d atur d kodingnya...
BalasHapusMas fuad hasan...ini ada mslh saya buat panel p10 split marque tp kok tampilannya jam gk bisa kontinue...detiknya gk mau jalan....mohon sarannnya
BalasHapusMas fuad hasan...ini ada mslh saya buat panel p10 split marque tp kok tampilannya jam gk bisa kontinue...detiknya gk mau jalan....mohon sarannnya
BalasHapuscoba dmasukin ksini codingnya
BalasHapuskalau setting pakai remote, apa aja yg ditamabahkan mas??
Hapusmaaf mas saya belom pernah...
BalasHapusmunkin yang perlu ditambahkan modul reciever
kode ini DS3231 rtc(SDA, SCL); setelah dikomplier erro
BalasHapusno matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
mohon bantuannya
Coding nya gak bisa di bukak
BalasHapusmau nanya gan, kebetulan kami di Kaltim (Wite), kalau ingin menambahkan jam misalkan wilayah Indonesia Barat (kota Medan) lalu Indonesia Timur(Misalkan Jayapura)
BalasHapusCara konversinya gmn ya