{"id":346,"date":"2013-10-30T21:57:01","date_gmt":"2013-10-30T21:57:01","guid":{"rendered":"https:\/\/richardalbritton.wordpress.com\/?p=346"},"modified":"2015-01-15T23:54:14","modified_gmt":"2015-01-15T23:54:14","slug":"led-matrix-pendant","status":"publish","type":"post","link":"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/","title":{"rendered":"LED Matrix Pendant"},"content":{"rendered":"<p>I made a pendant for my girlfriend as a Halloween present. The animation was changed to an eye that blinks and looks around. I really wanted it not to just loop the same animation so I set out to create a few animations for the pendant to cycle through at random including a few longer blackout periods. I am still rather new to the coding side of this and didn&#8217;t understand some of the code, but here is the version I have working as of now.<!--more--><\/p>\n<p><a href=\"https:\/\/github.com\/RichardA1\/Trinket_8x8_LED_matrix\/tree\/master\/Eye_ball_random_charm\">https:\/\/github.com\/RichardA1\/Trinket_8x8_LED_matrix\/tree\/master\/Eye_ball_random_charm<\/a><\/p>\n<p>If anyone want&#8217;s to help me streamline this a bit, it would be appreciated. I&#8217;ll post photos of the pendant later and maybe come up with a 3D printed enclosure or something.<\/p>\n<div class=\"tiled-gallery type-rectangular tiled-gallery-unresized\" data-original-width=\"660\" data-carousel-extra='null' itemscope itemtype=\"http:\/\/schema.org\/ImageGallery\" > <div class=\"gallery-row\" style=\"width: 660px; height: 455px;\" data-original-width=\"660\" data-original-height=\"455\" > <div class=\"gallery-group images-2\" style=\"width: 402px; height: 455px;\" data-original-width=\"402\" data-original-height=\"455\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0855.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"398\"> <meta itemprop=\"height\" content=\"224\"> <img data-attachment-id=\"344\" data-orig-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0855.jpg\" data-orig-size=\"500,281\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"wpid-IMAG0855.jpg\" data-image-description=\"\" data-medium-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0855-300x169.jpg\" data-large-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0855.jpg\" src=\"https:\/\/i0.wp.com\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0855.jpg?w=398&#038;h=224&#038;ssl=1\" width=\"398\" height=\"224\" data-original-width=\"398\" data-original-height=\"224\" itemprop=\"http:\/\/schema.org\/image\" title=\"wpid-IMAG0855.jpg\" alt=\"wpid-IMAG0855.jpg\" style=\"width: 398px; height: 224px;\" \/> <\/a> <\/div> <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0856.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"398\"> <meta itemprop=\"height\" content=\"223\"> <img data-attachment-id=\"345\" data-orig-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0856.jpg\" data-orig-size=\"500,281\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"wpid-IMAG0856.jpg\" data-image-description=\"\" data-medium-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0856-300x169.jpg\" data-large-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0856.jpg\" src=\"https:\/\/i0.wp.com\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0856.jpg?w=398&#038;h=223&#038;ssl=1\" width=\"398\" height=\"223\" data-original-width=\"398\" data-original-height=\"223\" itemprop=\"http:\/\/schema.org\/image\" title=\"wpid-IMAG0856.jpg\" alt=\"wpid-IMAG0856.jpg\" style=\"width: 398px; height: 223px;\" \/> <\/a> <\/div> <\/div> <!-- close group --> <div class=\"gallery-group images-1\" style=\"width: 258px; height: 455px;\" data-original-width=\"258\" data-original-height=\"455\" > <div class=\"tiled-gallery-item tiled-gallery-item-large\" itemprop=\"associatedMedia\" itemscope itemtype=\"http:\/\/schema.org\/ImageObject\"> <a href=\"https:\/\/i0.wp.com\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0853.jpg?ssl=1\" border=\"0\" itemprop=\"url\"> <meta itemprop=\"width\" content=\"254\"> <meta itemprop=\"height\" content=\"451\"> <img data-attachment-id=\"343\" data-orig-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0853.jpg\" data-orig-size=\"500,889\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"wpid-IMAG0853.jpg\" data-image-description=\"\" data-medium-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0853-169x300.jpg\" data-large-file=\"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0853.jpg\" src=\"https:\/\/i0.wp.com\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0853.jpg?w=254&#038;h=451&#038;ssl=1\" width=\"254\" height=\"451\" data-original-width=\"254\" data-original-height=\"451\" itemprop=\"http:\/\/schema.org\/image\" title=\"wpid-IMAG0853.jpg\" alt=\"wpid-IMAG0853.jpg\" style=\"width: 254px; height: 451px;\" \/> <\/a> <\/div> <\/div> <!-- close group --> <\/div> <!-- close row --> <\/div>\n<p>I didn&#8217;t have a project box that small so I just cut up the Adafruit box and hot glue gunned it up. I had some window tinting laying around to darken the unlit LEDs. The frame and other stuff was just in my junk bins.<\/p>\n<p>This is using a lithium Ion battery attached to a charging board. The switch on the side lets you turn it on or off and the button is attached to the reset on the Trinket. I made sure to cut a slot so I can access the mini USB on the Trinket to reprogram it.<\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/\" target=\"_blank\" title=\"Click to print\"><span>Print<\/span><\/a><\/li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/?share=email\" target=\"_blank\" title=\"Click to email this to a friend\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-346\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-346\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>I made a pendant for my girlfriend as a Halloween present. The animation was changed to an eye that blinks and looks around. I really wanted it not to just loop the same animation so I set out to create a few animations for the pendant to cycle through at random including a few longer &hellip; <a href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">LED Matrix Pendant<\/span><\/a><\/p>\n<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-print\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-print sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/\" target=\"_blank\" title=\"Click to print\"><span>Print<\/span><\/a><\/li><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/?share=email\" target=\"_blank\" title=\"Click to email this to a friend\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-346\" class=\"share-facebook sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\"><span>Facebook<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-346\" class=\"share-twitter sd-button share-icon\" href=\"https:\/\/www.richa1.com\/RichardAlbritton\/led-matrix-pendant\/?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\"><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":343,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[56,61],"tags":[22,23,26,24,37,41],"jetpack_featured_media_url":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-content\/uploads\/2013\/10\/wpid-imag0853.jpg","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5AhH6-5A","_links":{"self":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/346"}],"collection":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/comments?post=346"}],"version-history":[{"count":3,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/346\/revisions"}],"predecessor-version":[{"id":738,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/posts\/346\/revisions\/738"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/media\/343"}],"wp:attachment":[{"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/media?parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/categories?post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.richa1.com\/RichardAlbritton\/wp-json\/wp\/v2\/tags?post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}