{"id":3718,"date":"2011-03-16T16:38:38","date_gmt":"2011-03-16T21:38:38","guid":{"rendered":"http:\/\/mightyohm.com\/blog\/?p=3718"},"modified":"2022-12-28T14:52:51","modified_gmt":"2022-12-28T22:52:51","slug":"hv-rescue-shield-now-works-with-the-arduino-mega","status":"publish","type":"post","link":"https:\/\/mightyohm.com\/blog\/2011\/03\/hv-rescue-shield-now-works-with-the-arduino-mega\/","title":{"rendered":"HV Rescue Shield now works with the Arduino Mega"},"content":{"rendered":"<p><a class=\"tt-flickr tt-flickr-Medium\" title=\"HV Rescue Shield works with Arduino Mega!\" href=\"http:\/\/mightyohm.com\/blog\/products\/hv-rescue-shield-2-x\/\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/mightyohm.com\/files\/flickr\/5532607829_2e84bcb189.jpg\" alt=\"HV Rescue Shield works with Arduino Mega!\" width=\"500\" height=\"279\" \/><\/a><\/p>\n<p>Thanks to John, of the ATX Hackerspace, who loaned me his Arduino for testing, the <a href=\"http:\/\/mightyohm.com\/blog\/products\/hv-rescue-shield-2-x\/\">HV Rescue Shield<\/a> now works with the <a href=\"http:\/\/arduino.cc\/en\/Main\/ArduinoBoardMega\">Arduino Mega<\/a>.<\/p>\n<p>I had to create new byte read\/write functions for digital lines 0-7\u00a0because\u00a0they are implemented very &#8220;differently&#8221; (<em>and I don&#8217;t mean that in a good way<\/em>) in the hardware for the Mega. \u00a0If you&#8217;re interested in how I did this, check out <a href=\"http:\/\/mightyohm.com\/blog\/products\/hv-rescue-shield-2-x\/source-code\/\">the new version 2.12 Arduino sketch<\/a> and the new mega_data_read and mega_data_write functions.<\/p>\n<p>To use the <a href=\"http:\/\/mightyohm.com\/blog\/products\/hv-rescue-shield-2-x\/\">HV Rescue Shield<\/a> with the Arduino, first download the revised sketch <a href=\"http:\/\/mightyohm.com\/blog\/products\/hv-rescue-shield-2-x\/source-code\/\">here<\/a>. \u00a0Set the MEGA #define to 1 and compile\/upload the sketch to your board. \u00a0Make sure you have the Arduino Mega selected in the Arduino Board menu, or the sketch won&#8217;t compile.<\/p>\n<p>The Mega has more pin headers than the Rescue Shield, so be sure to install the shield all the way to the left, as shown here:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"http:\/\/mightyohm.com\/files\/flickr\/5533188334_ed8c932e6a.jpg\" alt=\"HV Rescue Shield alignment on the Arduino Mega\" width=\"500\" height=\"202\" \/><\/p>\n<p>If you experience any problems with the <a href=\"http:\/\/mightyohm.com\/blog\/products\/hv-rescue-shield-2-x\/\">HV Rescue Shield<\/a> and the Arduino Mega, please report them in the <a href=\"http:\/\/mightyohm.com\/forum\/viewforum.php?f=7\">support forum<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;differently&#8221; (and I don&#8217;t mean that in a good way) in the hardware for the Mega. &hellip; <a href=\"https:\/\/mightyohm.com\/blog\/2011\/03\/hv-rescue-shield-now-works-with-the-arduino-mega\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">HV Rescue Shield now works with the Arduino Mega<\/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_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[376,10],"tags":[63,61,364],"class_list":["post-3718","post","type-post","status-publish","format-standard","hentry","category-announcements","category-microcontrollers","tag-arduino","tag-avr","tag-hvrescue"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pioCd-XY","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":3120,"url":"https:\/\/mightyohm.com\/blog\/2010\/10\/avr-hv-rescue-shield-works-with-arduino-uno\/","url_meta":{"origin":3718,"position":0},"title":"AVR HV Rescue Shield works with Arduino Uno","author":"Jeff","date":"October 4, 2010","format":false,"excerpt":"I'm happy to report that the AVR HV Rescue Shield has been tested and works with the new Arduino Uno. This isn't too much of a surprise, but it's always good to check that\u00a0seemingly\u00a0innocent changes to a hardware platform don't cause unexpected problems in existing applications. \u00a0(That is the voice\u2026","rel":"","context":"In &quot;Kits&quot;","block_context":{"text":"Kits","link":"https:\/\/mightyohm.com\/blog\/category\/kits\/"},"img":{"alt_text":"Arduino Uno","src":"https:\/\/i0.wp.com\/mightyohm.com\/files\/flickr\/5052593396_0bf1fbda64.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3480,"url":"https:\/\/mightyohm.com\/blog\/2010\/12\/new-product-hv-rescue-shield-2-0\/","url_meta":{"origin":3718,"position":1},"title":"New Product: HV Rescue Shield 2.0","author":"Jeff","date":"December 13, 2010","format":false,"excerpt":"The HV Rescue Shield 2.0 is a high voltage parallel mode fuse programmer for Atmel AVR microcontrollers. It currently supports a wide variety of AVR chips, including the 28-pin ATmega48\/88\/168\/328 series, the 20-pin ATtiny2313, and many 8-pin ATtiny devices (such as the ATtiny25\/45\/85 and ATtiny13A). \u00a0A\u00a0list of supported devices is\u2026","rel":"","context":"In &quot;Microcontrollers&quot;","block_context":{"text":"Microcontrollers","link":"https:\/\/mightyohm.com\/blog\/category\/microcontrollers\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2011\/12\/hvrescue21.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2530,"url":"https:\/\/mightyohm.com\/blog\/2009\/11\/minor-updates-to-avr-hv-rescue-shield\/","url_meta":{"origin":3718,"position":2},"title":"Minor updates to the AVR HV Rescue Shield","author":"Jeff","date":"November 3, 2009","format":false,"excerpt":"This week there have been a couple minor updates to the AVR HV Rescue Shield: I just uploaded version 1.1 of the Arduino sketch, which fixes an issue with garbage being printed in the serial monitor between burn cycles.\u00a0 I also made some minor changes to try to reduce the\u2026","rel":"","context":"In &quot;Kits&quot;","block_context":{"text":"Kits","link":"https:\/\/mightyohm.com\/blog\/category\/kits\/"},"img":{"alt_text":"AVR HV Rescue Shield with ATmega168 target ","src":"https:\/\/i0.wp.com\/www.mightyohm.com\/blog\/wp-content\/uploads\/2009\/03\/rescue-shield-with-atmega2_scaled-500x375.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":294,"url":"https:\/\/mightyohm.com\/blog\/2008\/09\/arduino-based-avr-high-voltage-programmer\/","url_meta":{"origin":3718,"position":3},"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":1419,"url":"https:\/\/mightyohm.com\/blog\/2009\/03\/introducing-the-avr-hv-rescue-shield\/","url_meta":{"origin":3718,"position":4},"title":"Introducing the AVR HV Rescue Shield","author":"Jeff","date":"March 11, 2009","format":false,"excerpt":"This all started last year, when I was playing with an ATmega168 microcontroller and did something silly.\u00a0 I programmed the RSTDISBL fuse bit, which effectively makes it impossible to reflash the chip using an ordinary (serial) programmer. Instead of giving up and throwing out the \"dead\" chip,\u00a0 I decided to\u2026","rel":"","context":"In &quot;Electronics&quot;","block_context":{"text":"Electronics","link":"https:\/\/mightyohm.com\/blog\/category\/electronics\/"},"img":{"alt_text":"AVR HV Rescue Shield with ATmega168 target ","src":"https:\/\/i0.wp.com\/mightyohm.com\/blog\/wp-content\/uploads\/2009\/03\/rescue-shield-with-atmega2_scaled-500x375.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3027,"url":"https:\/\/mightyohm.com\/blog\/2010\/08\/avr-hv-rescue-shield-code-update-1-2\/","url_meta":{"origin":3718,"position":5},"title":"AVR HV Rescue Shield Code Update 1.2","author":"Jeff","date":"August 18, 2010","format":false,"excerpt":"Version 1.2 of the Arduino sketch that powers the AVR HV Rescue Shield is now available for download. The revised sketch now displays the target AVR's existing fuse settings before asking you for new ones. I also cleaned up and reworked the code in a couple places, but these changes\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":[]}],"_links":{"self":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/3718","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=3718"}],"version-history":[{"count":13,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/3718\/revisions"}],"predecessor-version":[{"id":15915,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/posts\/3718\/revisions\/15915"}],"wp:attachment":[{"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/media?parent=3718"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/categories?post=3718"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mightyohm.com\/blog\/wp-json\/wp\/v2\/tags?post=3718"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}