Two LED matrices give 70 LEDs to light up a necklace with messages.
HeartMatrix hm = HeartMatrix(2,3,4);To change the displayed message use the function:
hm.set_message("Your message Here..");
This code uses the
mstimer 2 library
, as well as our Heart Matrix Library, both downloadable below in the
downloads section
!
/* LucidTronix write messages on the Heart Matrix. * For instructions details and schematic, See: * http://www.lucidtronix.com/tutorials/18 * Connect the data, latch, and clock pins * to the corresponding pins on the heart matrix */#include#include // dataPin is on 5, Latch is on 6, and clock is on 7HeartMatrix hm = HeartMatrix(5,6,7);void displayer2(){ hm.displayer();} void setup() { MsTimer2::set(2,displayer2); MsTimer2::start(); hm.set_message(" Your Message Here ");}void loop() { hm.on(); }
/* LucidTronix write messages on the Heart Matrix. * For instructions details and schematic, See: * http://www.lucidtronix.com/tutorials/18 * Connect the data, latch, and clock pins * to the corresponding pins on the heart matrix */#include#include // dataPin is on 2, Latch is on 3, and clock is on 4HeartMatrix hm = HeartMatrix(2,3,4);void displayer2(){ hm.displayer();}void setup() { //FrequencyTimer2::disable(); // Set refresh rate (interrupt timeout period) // if things break try making this number bigger FrequencyTimer2::setPeriod(2000); // Set interrupt routine to be called FrequencyTimer2::setOnOverflow(displayer2); }void loop() { hm.on(); if ( millis() > 5000) hm.set_scroll_wait(50); if ( millis() > 10000) hm.set_message("I Love LucidTronix");}
| Title | Description | # | Cost | Link | Picture |
| Heart Matrix PCB | The heart shaped PCB holds the shift registers and LED matrices. | 1 | $7.0 | Link |
|
| LED Dot Matrix | Displays Dot Matrix Panel 35LED Green Row CA Column CC 12-Pin DIPValue:2.8v Green | 2 | $0.99 | Link |
|
| Shift Register | IC 8-BIT SHIFT REGISTER 16-DIP Serial to Parallel Tri-State 2 V ~ 6 VValue:74HC | 3 | $0.63 | Link |
|
| Capacitor | Ceramic Capacitors CAP CER 0.1UF 50V 20% RADIALValue: 0.1µF | 1 | $0.24 | Link |
|
| Resistor | RES 100 OHM 1/4W 5% CARBON FILMValue:100 | 10 | $0.08 | Link |
|
Comments: