{"id":5537,"date":"2013-08-24T19:39:47","date_gmt":"2013-08-25T02:39:47","guid":{"rendered":"http:\/\/mightyohm.com\/blog\/?p=5537"},"modified":"2015-09-26T11:10:56","modified_gmt":"2015-09-26T18:10:56","slug":"hexbright-hacking","status":"publish","type":"post","link":"https:\/\/mightyohm.com\/blog\/2013\/08\/hexbright-hacking\/","title":{"rendered":"Hexbright Hacking"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.hexbright.com\/\">Hexbright<\/a> is an Arduino-compatible open source flashlight that was the subject of a very successful <a href=\"http:\/\/www.kickstarter.com\/projects\/527051507\/hexbright-an-open-source-light\">kickstarter campaign<\/a>\u00a0in 2011.<\/p>\n<p>Today I spent a short time working on some custom firmware for it.<\/p>\n<p>My firmware adds two new features:<\/p>\n<ul>\n<li>Button presses cycle between modes (low, med, high brightness) as usual, but if you wait longer than CYCLE_DELAY (default 5 seconds) between presses, the next press turns the hexbright off.<\/li>\n<li>If the hexbright is left on for longer than AUTO_OFF_MINUTES (defaults to an hour), the hexbright turns off. \u00a0Handy for when you prop the light somewhere and forget about it.<\/li>\n<\/ul>\n<p>You can <a href=\"http:\/\/mightyohm.com\/files\/hexbright_offdelay.zip\">download my custom Hexbright Arduino sketch here<\/a>. \u00a0If you&#8217;re new to the Hexbright, <a href=\"http:\/\/community.hexbright.com\/Wiki\/Intro_to_Programming\">read these well-written instructions first<\/a>. \u00a0You&#8217;ll need to install the required USB driver and Arduino board configuration file.<\/p>\n<p>Amazon link: <a href=\"http:\/\/www.amazon.com\/gp\/product\/B00CY9RGD4\/ref=as_li_ss_tl?ie=UTF8&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B00CY9RGD4&#038;linkCode=as2&#038;tag=mightyohm-20\">HexBright FLEX, 500 Lumen Programmable LED Flashlight<\/a><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ir-na.amazon-adsystem.com\/e\/ir?t=mightyohm-20&#038;l=as2&#038;o=1&#038;a=B00CY9RGD4\" width=\"1\" height=\"1\" border=\"0\" alt=\"\" style=\"border:none !important; margin:0px !important;\" \/> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Hexbright is an Arduino-compatible open source flashlight that was the subject of a very successful kickstarter campaign\u00a0in 2011. Today I spent a short time working on some custom firmware for it. My firmware adds two new features: Button presses cycle between modes (low, med, high brightness) as usual, but if you wait longer than &hellip; <a href=\"https:\/\/mightyohm.com\/blog\/2013\/08\/hexbright-hacking\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Hexbright Hacking<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5,10,443],"tags":[63,473,472],"class_list":["post-5537","post","type-post","status-publish","format-standard","hentry","category-electronics","category-microcontrollers","category-projects-2","tag-arduino","tag-firmware","tag-hexbright"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pioCd-1rj","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":5548,"url":"https:\/\/mightyohm.com\/blog\/2013\/08\/hexbright-hacking-2-bedazzled\/","url_meta":{"origin":5537,"position":0},"title":"Hexbright Hacking 2 &#8211; Bedazzled","author":"Jeff","date":"August 31, 2013","format":false,"excerpt":"I borrowed a few lines of code from the hexbright dazzle demo to create a new\u00a0bedazzled version of my custom firmware. \u00a0The dazzle mode is activated by holding down the push button for more than 500 ms at power on. Also of interest: Check out this incredibly detailed development log\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/mightyohm.com\/blog\/category\/electronics\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":294,"url":"https:\/\/mightyohm.com\/blog\/2008\/09\/arduino-based-avr-high-voltage-programmer\/","url_meta":{"origin":5537,"position":1},"title":"Arduino-based AVR High Voltage Programmer","author":"Jeff","date":"September 24, 2008","format":false,"excerpt":"Update 01\/02\/09: A PCB version of this circuit is in the design stages - some preliminary information is here. Update 03\/11\/09: Kits based on this design are now for sale! Update 12\/14\/10: The original AVR HV Rescue Shield kit has been replaced by the new and improved HV Rescue Shield\u2026","rel":"","context":"In &quot;Kits&quot;","block_context":{"text":"Kits","link":"https:\/\/mightyohm.com\/blog\/category\/kits\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2008\/09\/hvfuse_fixed.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2008\/09\/hvfuse_fixed.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2008\/09\/hvfuse_fixed.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2008\/09\/hvfuse_fixed.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2008\/09\/hvfuse_fixed.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":3122,"url":"https:\/\/mightyohm.com\/blog\/2010\/10\/arduino-oops\/","url_meta":{"origin":5537,"position":2},"title":"Arduino Oops!","author":"Jeff","date":"October 4, 2010","format":false,"excerpt":"That's a closeup of resistor R1 on my new Arduino Uno board. \u00a0See how the left terminal isn't touching the solder bump on the land pad? \u00a0That's not good. Surprisingly, my Arduino seems to work just fine with one side of the resistor open. \u00a0Arduino, don't let the cost reduction\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/mightyohm.com\/blog\/category\/electronics\/"},"img":{"alt_text":"Closeup side view under the microscope","src":"https:\/\/i0.wp.com\/mightyohm.com\/files\/flickr\/5051973365_93c169076c.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":436,"url":"https:\/\/mightyohm.com\/blog\/2008\/10\/arduino-duemilanove\/","url_meta":{"origin":5537,"position":3},"title":"Arduino Duemilanove","author":"Jeff","date":"October 20, 2008","format":false,"excerpt":"The Arduino team has released a new version of the awesome Arduino platform called Arduino Duemilanove.\u00a0 Improvements include automatic selection of USB vs. external power, header pins for RESET and 3.3V supply, and an easy to cut automatic-RESET-disable trace. The wiki page includes a very helpful audio sample to demonstrate\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/mightyohm.com\/blog\/category\/electronics\/"},"img":{"alt_text":"Arduino Duemilanove","src":"https:\/\/i0.wp.com\/arduino.cc\/en\/uploads\/Main\/ArduinoDuemilanove.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3718,"url":"https:\/\/mightyohm.com\/blog\/2011\/03\/hv-rescue-shield-now-works-with-the-arduino-mega\/","url_meta":{"origin":5537,"position":4},"title":"HV Rescue Shield now works with the Arduino Mega","author":"Jeff","date":"March 16, 2011","format":false,"excerpt":"Thanks to John, of the ATX Hackerspace, who loaned me his Arduino for testing, the HV Rescue Shield now works with the Arduino Mega. I had to create new byte read\/write functions for digital lines 0-7\u00a0because\u00a0they are implemented very \"differently\" (and I don't mean that in a good way) in\u2026","rel":"","context":"In &quot;Announcements&quot;","block_context":{"text":"Announcements","link":"https:\/\/mightyohm.com\/blog\/category\/announcements\/"},"img":{"alt_text":"HV Rescue Shield works with Arduino Mega!","src":"https:\/\/i0.wp.com\/mightyohm.com\/files\/flickr\/5532607829_2e84bcb189.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1060,"url":"https:\/\/mightyohm.com\/blog\/2009\/02\/getting-started-with-arduino\/","url_meta":{"origin":5537,"position":5},"title":"Getting Started with Arduino","author":"Jeff","date":"February 6, 2009","format":false,"excerpt":"Getting Started with Arduino, by Massimo Banzi, is the latest physical computing book from O'Reilly and the first dedicated to the wildly popular Arduino microcontoller platform and integrated development environment. Massimo's short text is an excellent introduction to the hardware and software sides of the Arduino and contains a walk-through\u2026","rel":"","context":"In &quot;Books and Resources&quot;","block_context":{"text":"Books and Resources","link":"https:\/\/mightyohm.com\/blog\/category\/books-and-resources\/"},"img":{"alt_text":"Getting Started with Arduino","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2009\/01\/51uadcnribl_ss500_.jpg?resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/5537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/comments?post=5537"}],"version-history":[{"count":9,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/5537\/revisions"}],"predecessor-version":[{"id":5546,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/5537\/revisions\/5546"}],"wp:attachment":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/media?parent=5537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/categories?post=5537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/tags?post=5537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}