![]() ![]() Since I use a connector in this module frequent usage will lead to wear and tear of the wires. Then solder up the wires, a diagram is provided for reference. The other ends of the two resistors goes to the power pin eight of the DS 1307. So after you inserted the wires next we need to insert 10k resistors each into the two pins. I inserted both the resistor and the wire in the same pin and then soldered. I'm sorry because I made the module a little small so there was no hole for the 10k resistor. In this step we connect the other two data pins coming from the Arduino as shown in the figure. Then the ground is common for the IC and the button cell. The positive pin goes to the eighth pin of the DS 1307. Now insert the power pins coming from the Arduino. These connections provide the backup power. Now we need to connect the battery terminals using the tracks as shown in the diagram. ![]() This note is for showing the colour code for my 4 pin connector for reference, since yours may vary please double check that the proper connections are made. Now insert the crystal Oscillator near the first and second pin of the DIP Socket as shown in the figure. Solder some pins to hold the socket in place. Insert the DIP socket right next to the cell holder but leave space for the crystal oscillator like in the diagram. Then solder the bottom end to hold the cell in its place. Making The Module:Ĭut the prototype board to the size mentioned above and insert the coin cell holder. Anyway apart from the square wave pin not soldered the module has all the functional features. The module has a wire connector but you can also use a male or female header so that it can be directly plugged into the Arduino. So the module is only 2 x 3 cm in size, which is pretty compact. Hope this method is better to understand than just providing the circuit diagram. The instructable has steps of the soldering and the places of the components in the board. So now that the introductions are done lets get to actually making the module. SDA: It is the i2c data pin - Which communicates with the RTC. SCL: It is the i2c clock pin - Which communicates with the RTC. Both the ground of the battery and the power supply are tied together. GND: This is the ground pin for the module. Important Pins:ĥV Pin: When this pin is high then the ds1307 sends the data and when it is low it runs on the backup button cell. Simply put the chip sends data in decimal form such that each decimal form is 4 bits of binary data also known as Binary Coded Decimal System. The DS 1307 communicates with the arduino using I☬ communication. So now that the specs have been discussed lets talk about the communication. This battery is more than enough for the IC since the DS1307 has a fairly low power consumption the backup battery life of the cell is about a minimum of 9 years of usage. The beauty of the DS1307 is that it has this backup coin cell. For our particular application we can settle for the DS1307 itself. If u want to eliminate this u can go for the DS3234 which has a time drift of only 1 minute per year. The DS 1307 is specifically designed for timekeeping, The time is fairly accurate with an error (time drift) of about 1 minute per month. When I designed this module I ignored the square wave pin, Since I didn't find it useful in my application but you may add an extra pin if the need arises.Īpart from the arduino the DS1307 Integrated Circuit is the core of this project since it acts as the timekeeper and tells the arduino when it should leave the appliance on. This Module is the timekeeper for many projects like The Propeller Clock, The Nixie Clock, etc.You can build on the idea and make an Alarm Clock.Once you are done with this Instructable you will be able to make your own Digital Clock.A simple program with which the user can interact with the module.The code required to access the module and get the current time.Lets start off with the stuff you will learn and the applications of this module. This module also has a battery backup with which the module can keep track of the time even when the Arduino is programmed or turned off. So the timing is accurate with multiple applications. This module has the integrated time keeping system using a crystal oscillator. The Instructable will also try to include as much example code as possible so that the reader will get more than the basic knowledge of this module. Although there are many tutorials for the Real Time Clock module I wanted to make my version of this module entirely focused on the step by step soldering. This time I will be showing you how to make a module for letting the Arduino find out the time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |