{"id":95,"date":"2013-02-23T20:23:36","date_gmt":"2013-02-24T04:23:36","guid":{"rendered":"http:\/\/schminktronics.com\/blog\/?p=95"},"modified":"2013-02-25T08:46:31","modified_gmt":"2013-02-25T16:46:31","slug":"next-problem","status":"publish","type":"post","link":"http:\/\/schminktronics.com\/blog\/archives\/95","title":{"rendered":"Next problem&#8230;"},"content":{"rendered":"<p>Now that the board mostly works, I&#8217;ve run into the next problem. The hall effect sensor isn&#8217;t working like I expect. I&#8217;ve got it on a pullup resistor and expect that it stays high most of the time, then in the presence of a magnetic field, it goes low and stays the whole time. This is exactly how it worked when I prototyped it on an Arduino. But on this board, it pulses while next to a magnet:<\/p>\n<p><a href=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTrigger2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-96\" alt=\"SS351-Mistrigger2\" src=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTrigger2.png\" width=\"800\" height=\"600\" srcset=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTrigger2.png 800w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTrigger2-300x225.png 300w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTrigger2-400x300.png 400w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Zooming out a little, I can see that it happens almost exactly every 10 ms:<\/p>\n<p><a href=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTriggerTiming.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-97\" alt=\"SS361-MisTriggerTiming\" src=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTriggerTiming.png\" width=\"800\" height=\"600\" srcset=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTriggerTiming.png 800w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTriggerTiming-300x225.png 300w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS361-MisTriggerTiming-400x300.png 400w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>It looks like something else is trying to drive that line every 10 ms. But running the exact same code on the Arduino doesn&#8217;t do this. And nothing else\u00a0<em>should<\/em> be on that line. Maybe it&#8217;s a PCB error. Maybe it&#8217;s because of the modifications I had to make to fix the board. Maybe I overheated the chip while mounting it. The chip is a little different. I prototyped with the SS451 because it fits in a breadboard. Then I used the SMD SS351AT on my PCB. They really shouldn&#8217;t behave\u00a0<strong>that<\/strong> differently though. It also mistriggers when a magnet is not present:<\/p>\n<p><a href=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS351-MisTriggerTiming2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-101\" alt=\"SS351-MisTriggerTiming2\" src=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS351-MisTriggerTiming2.png\" width=\"800\" height=\"600\" srcset=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS351-MisTriggerTiming2.png 800w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS351-MisTriggerTiming2-300x225.png 300w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/SS351-MisTriggerTiming2-400x300.png 400w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>I don&#8217;t know what&#8217;s going on here. I need to think about this&#8230;<\/p>\n<p>While I&#8217;m figuring that out, I can do some other tests though. First a quick balance check:<\/p>\n<p><a href=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/HDSpinnerBalanceTest.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-98\" alt=\"HDSpinnerBalanceTest\" src=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/HDSpinnerBalanceTest.jpg\" width=\"800\" height=\"600\" srcset=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/HDSpinnerBalanceTest.jpg 800w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/HDSpinnerBalanceTest-300x225.jpg 300w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/HDSpinnerBalanceTest-400x300.jpg 400w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The actual balance point is actually a little bit forward from where the hole is drilled, but not by too much. It should still work. My first test alternates each pixel on and off as fast as possible.<\/p>\n<p><a href=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0736.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-99\" alt=\"Pixel speed test\" src=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0736-1024x768.jpg\" width=\"584\" height=\"438\" srcset=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0736-1024x768.jpg 1024w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0736-300x225.jpg 300w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0736-400x300.jpg 400w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The main reason I used direct pin outputs for my last spinner is because I was worried sending SPI data wouldn&#8217;t be fast enough. But this is extremely impressive! Look at the spacing of those pixels.\u00a0<strong>WOW!<\/strong> Looks like I needn&#8217;t have worried! I can&#8217;t wait to fix the hall effect problem so I can see what I can do with this! Here&#8217;s a closeup for more detail:<\/p>\n<p><a href=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0742.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-100\" alt=\"IMG_0742\" src=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0742-1024x768.jpg\" width=\"584\" height=\"438\" srcset=\"http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0742-1024x768.jpg 1024w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0742-300x225.jpg 300w, http:\/\/schminktronics.com\/blog\/wp-content\/uploads\/2013\/02\/IMG_0742-400x300.jpg 400w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that the board mostly works, I&#8217;ve run into the next problem. The hall effect sensor isn&#8217;t working like I expect. I&#8217;ve got it on a pullup resistor and expect that it stays high most of the time, then in &hellip; <a href=\"http:\/\/schminktronics.com\/blog\/archives\/95\">Continue reading <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":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-spinnerhd"],"_links":{"self":[{"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":2,"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":103,"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions\/103"}],"wp:attachment":[{"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/schminktronics.com\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}