• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
Previous Next

Run Linker RTC on pcDuino

Posted by: , March 9, 2014

[vc_row][vc_column][vc_column_text]rtc_arduino_s0

Linker RTC is a kind of real time clock module based on DS1307. DS1307 is a low power consumption,

with 56 bytes non losing full BCD code clock calendar real time clock, the address and data are

transmitted through two line two-way serial bus, the chip can supply the information of seconds, minute, hour ,etc, the day of each month can adjust automatically,

it has the function of making up the leap year . AM/PM flag bit determine the clock work mode for 24 hours or 12 hours,

there is a built-in power supply circuitry inside the chip, and has the power failure detection and battery switch function.[/vc_column_text][vc_tour][vc_tab title=”Part list” tab_id=”1394162684-1-74″][vc_column_text]1  x  pcduino v2

1  x  Linker RTC

Linker kit 20cm connect line

Several dupont line[/vc_column_text][/vc_tab][vc_tab title=”Wiring Diagram” tab_id=”1394162684-2-79″][vc_column_text]The IIC of Arduin use the A5 A4 two simulation month and the IIC of pcDuino use the SCL and SDA pin,

so there are some difference in installing between them.

rtc_pcduino_02pcduino   SCL pin – > Linker RTC   SCL pin

pcduino  SDA pin   – > Linker RTC SDA pin

pcduino  +5v  pin   – > Linker RTC Vcc pin

pcduino  GND pin   – > Linker RTC  GND pin

Notice:

Here you can directly connect the Linker RTC and pcDuino with Dupont lines,

for the female Dupont line plug-in the base of Liner is loose, have an impact on experiment.

So we connect it with the connect line, then use the male to male Dupont line to connect the pcDuino and Linker RTC.[/vc_column_text][/vc_tab][vc_tab title=”Test code” tab_id=”1394224894411-2-6″][vc_column_text]

  1. Install arduino program environment( refers to the chapter three: Arduino IDE style for C language and pcDuino)
  2. Open the terminal and enter into the output/test file under the  c_enviroment ( *** is the path to save the c_enviroment)
    $ ***/c_enviroment/output/test
  3. Execute the Linker_rtc_test file.
    $ ./Linker_rtc_test

Notice: the corresponding C file is under the ***/c_enviroment/sample directory[/vc_column_text][/vc_tab][vc_tab title=”Test result” tab_id=”1394224895869-3-1″][vc_column_text]rtc_pcduino_03

Every two seconds the screen will receive the time returned from the Linker RTC

When execute Linker_rtc_test file It will start computing time from the time adding parameters

$ ./linker_rtc_test 14 3 6 18 43

rtc_pcduino_01[/vc_column_text][/vc_tab][/vc_tour][/vc_column][/vc_row]

Tags: pcDuino

Share!
Tweet

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors