{"id":350,"date":"2012-09-10T18:44:42","date_gmt":"2012-09-11T01:44:42","guid":{"rendered":"http:\/\/zethus.ca\/wp\/?p=350"},"modified":"2012-09-10T22:49:01","modified_gmt":"2012-09-11T05:49:01","slug":"capacitive-discharge-welder","status":"publish","type":"post","link":"https:\/\/zethus.ca\/wp\/?p=350","title":{"rendered":"Capacitive Discharge Welder"},"content":{"rendered":"<p><a href=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/09\/IMG_0574.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-354\" title=\"Cap Discharge Welder\" src=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/09\/IMG_0574-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/09\/IMG_0574-300x225.jpg 300w, https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/09\/IMG_0574-1024x768.jpg 1024w, https:\/\/zethus.ca\/wp\/wp-content\/uploads\/2012\/09\/IMG_0574.jpg 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>The weather isn&#8217;t so good any more, so it&#8217;s back to the hobby&#8230;. \u00a0This time we are working on a cap discharge welder. Dave is doing the HV stuff, and I&#8217;m working on software. \u00a0This board has been nothing but a pain in the ass so far. \u00a0After figuring out that there was a 10K resistor inline on the ISP +5V line, I shorted it out, so i could read the device ID off of the ATMEL. \u00a0The micro turned out to be a 328 not a 328p as was intended. \u00a0I also did not have a crystal for this board. \u00a0 After hacking the Arduino config files to trick avrdude into thinking this was a 328p \u00a0(there is no 328 support in gcc or avrdude yet) I was still unable to program the board since the chip was clocked at 128Khz. \u00a0My hacked olimex programmer no longer works with avr-studio so I can&#8217;t change the clock on the programmer to work that slow. \u00a0I eventually programmed the fuse bytes to disable the div8. This enabled me to program the board. \u00a0Now the tools seem to work ok with the wrong micro, and wrong clock. New parts are coming from digikey tomorrow, so all this hacking was really unnecessary. \u00a0 What can I say. I&#8217;m impatient. \u00a0Anyway this post is a little boring, but some more interesting ones should be coming down the pipe, once the sparks start to fly.<\/p>\n<p>&nbsp;<\/p>\n<p>Update, here is video with the quadrature encoder hooked up!<\/p>\n<p>&nbsp;<\/p>\n<p><object width=\"420\" height=\"315\"><param name=\"movie\" value=\"http:\/\/www.youtube-nocookie.com\/v\/bBEfFsT-q_w?version=3&amp;hl=en_US&amp;rel=0\"><\/param><param name=\"allowFullScreen\" value=\"true\"><\/param><param name=\"allowscriptaccess\" value=\"always\"><\/param><\/object><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The weather isn&#8217;t so good any more, so it&#8217;s back to the hobby&#8230;. \u00a0This time we are working on a cap discharge welder. Dave is doing the HV stuff, and I&#8217;m working on software. \u00a0This board has been nothing but &hellip; <a href=\"https:\/\/zethus.ca\/wp\/?p=350\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,5],"tags":[],"class_list":["post-350","post","type-post","status-publish","format-standard","hentry","category-arduino","category-avr"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=350"}],"version-history":[{"count":6,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/350\/revisions"}],"predecessor-version":[{"id":357,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=\/wp\/v2\/posts\/350\/revisions\/357"}],"wp:attachment":[{"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zethus.ca\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}