![]() Since most of the IO pin is occupied by Serial (D0, D1) and DMD (D6, D7, D8, D9, D11, D13), the available pin would be D2, D3, D4, D5, D10 & D12, therefore I use D2 & D3 as the software I2C pin for the DS1307RTC, D4 & D5 for alarm1 and alarm2 respectively. In order to overcome this problem, the software I2C library is used in this project which allows the DS1307RTC connect to any IO pin (D0 to D13) except the analog IO (Analog 0 to Analog 5). The DMD library is conflicted with the analog pin when used with DS1307RTC, please do not interface the DS1307RTC with the hardware I2C since it uses Analog 4 (SDA) & Analog 5 (SCL) as the signal pin. It is then using a homemade Arduino after the project has been completed. Initially I'm using an Arduino UNO for this project. You can use it on this project as long as the interface (16 pins IDC connector) is complied to Hub12 protocol. The LED matrix panel is available from several sellers & design. The LED matrix panel is arranged in 32 rows by 16 columns (512 LEDs total) which can be used to display digits, letters and even graphs. I'm using a P10 (10mm pitch ) LED matrix panel with the size 320mm(W) x 160mm(H) x 30mm(D), it is designed for outdoor (extra bright). ![]() ![]() The DS1307 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply. DS1307 works on I2C protocol which can interfaces to most microcontrollers.Ī 3 volt lithium coin cell battery is connected to the DS1307 which keeps time running after electricity failure. The DS1307 serial real-time clock (RTC) is a low- power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM. Note: DMD2 library is not backwards compatible with the original DMD library. Finally I found a " 3x5 Fixed Width Font" from the Freetronics forum which is contributed by Micah. The 3x5 fixed width font file type is missing from their library. Only four functions from the library is used in the Arduino sketch.ĭMD2 includes several font file types in the library font folder, there are: There are several ways to drive the 32x16 LED Dot Matrix Display from an Arduino, I found that Freetronic DMD and DMD2 are the most easy to use library for display text & simple shape like circles and boxes.ĭMD2 added features such as brightness control which allows the Arduino to control the brightness of the display. The SoftI2C.h library implements the master side of the I2C protocol in software on any arbitrary pair of pins for DATA and CLOCK.Ī library for driving the 32x16 dot matrix LED displayĭMD2 does not include the 3x5 fixed width font in their download, you must copy it to your DMD2 fonts folder.įreetronics DMD (Dot Matrix Display) Library ![]() The DS1307RTC.h library allows you to access the DS1307 realtime clock chip via I2C. The RTC.h library adds timekeeping functionality to Arduino with or without external timekeeping hardware. You need to download and install the following libraries before you can upload sketch to your Arduino. Using a homemade Arduino which is very simple & low costĭesign a GUI interface using AutoIT scripting language to read settings from and write settings to the LED clock. ![]() Keeps time running after electricity failure.Adjust settings via serial interface or push button switches.Very bright LED, suitable for indoor & outdoor.3 display mode (Font_Normal, Font_3x5 & Font_Large).Shows date and time on a 32x16 LED matrix panel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |