{"id":136,"date":"2010-01-30T09:49:10","date_gmt":"2010-01-30T14:49:10","guid":{"rendered":"http:\/\/ammonsengineering.com\/blog\/?p=136"},"modified":"2010-01-30T09:55:26","modified_gmt":"2010-01-30T14:55:26","slug":"more-current-analysis","status":"publish","type":"post","link":"https:\/\/ammonsengineering.com\/blog\/2010\/01\/more-current-analysis\/","title":{"rendered":"More current analysis"},"content":{"rendered":"<div class=\"mceTemp\">\n<p>It looks like I jumped the gun on the inductor curves.\u00a0 I started looking at the curves as the current increases by preventing the motor from rotating.\u00a0 I found out that the curve did NOT stay the same shape as it shifted up.\u00a0 For some reason, the Off current is roughly twice as much as the On current.\u00a0 The shape of the curve also gradually changes, which makes the inductor oscillations unusable.<\/p>\n<dl id=\"attachment_139\" class=\"wp-caption alignnone\" style=\"width: 577px;\">\n<dt class=\"wp-caption-dt\"><a href=\"http:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque-470.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-139 \" title=\"Current waveform, 25% duty cycle, no rotation, 470 uH inductor\" src=\"http:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque-470.png\" alt=\"Current waveform, 25% duty cycle, no rotation, 470 uH inductor\" width=\"567\" height=\"308\" srcset=\"https:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque-470.png 945w, https:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque-470-150x81.png 150w, https:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque-470-300x163.png 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/a><\/dt>\n<dd class=\"wp-caption-dd\">Current waveform, 25% duty cycle, no rotation, 470 uH inductor<\/dd>\n<\/dl>\n<\/div>\n<p>I decided the inductor wasn&#8217;t going to be useful, so I went back to just the motor and took a look at the currents at the higher loads.\u00a0 I get the graph below, which shows a very smooth curve and the Off cycle is almost exactly twice the On cycle.\u00a0 I recorded the curve at many different duty cycles and this looks pretty repeatable.<\/p>\n<div id=\"attachment_138\" style=\"width: 578px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-138\" class=\"size-full wp-image-138 \" title=\"Current waveform, 25% duty cycle, no rotation, no inductor\" src=\"http:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque.png\" alt=\"Current waveform, 25% duty cycle, no rotation, no inductor\" width=\"568\" height=\"310\" srcset=\"https:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque.png 946w, https:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque-150x81.png 150w, https:\/\/ammonsengineering.com\/blog\/wp-content\/uploads\/2010\/01\/Current-waveform-25-percent-duty-cycle-full-torque-300x163.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/a><p id=\"caption-attachment-138\" class=\"wp-caption-text\">Current waveform, 25% duty cycle, no rotation, no inductor<\/p><\/div>\n<p>From my observations, I came up with an algorithm for measuring current.\u00a0 I measure the current at 140 counts in whichever part of the cycle is longer, then estimate the other part of the cycle by multiplying or dividing by two.\u00a0 I multiply each value by its percentage of the total cycle time, add together, and divide by total cycle time to get average current.\u00a0 For all my recorded graphs the value was very close to the mean value of the entire graph.\u00a0 I think this will be accurate enough to control the motor.\u00a0 I will code it into the FPGA and see how well it works.\u00a0 The next step will be writing a PID control loop for the current.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It looks like I jumped the gun on the inductor curves.\u00a0 I started looking at the curves as the current increases by preventing the motor from rotating.\u00a0 I found out that the curve did NOT stay the same shape as it shifted up.\u00a0 For some reason, the Off current is roughly twice as much as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-software"],"_links":{"self":[{"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":3,"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":140,"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions\/140"}],"wp:attachment":[{"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ammonsengineering.com\/blog\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}