{"id":6358,"date":"2021-11-18T07:57:47","date_gmt":"2021-11-18T07:57:47","guid":{"rendered":"https:\/\/41j.com\/blog\/?p=6358"},"modified":"2021-11-18T07:57:47","modified_gmt":"2021-11-18T07:57:47","slug":"du530-cfl-spectra-again","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2021\/11\/du530-cfl-spectra-again\/","title":{"rendered":"DU530 CFL Spectra &#8211; Again"},"content":{"rendered":"\n<p>In my previous post <a href=\"https:\/\/41j.com\/blog\/2021\/11\/beckman-du530-spectrophotometer-cfl-spectra\/\">hacking around with the DU530<\/a> I showed a spectra from a CFL which matched published spectra. However I was still having a number of issues, particularly with the stepper driver. In particular I was having issues with the stepper skipping steps.<\/p>\n\n\n\n<p>I&#8217;ve been using an EasyDriver (clone) and found that if I disabled microstepping everything was working correctly, but when microstepping was enabled steps would be skipped.<\/p>\n\n\n\n<p>I installed a shunt resistor and took a look at the current output on a scope (over the shunt). I used a couple of 0.22Ohm resistors as this is what I had to hand&#8230;<\/p>\n\n\n\n<p>The current trace looked like this:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-34-1024x612.png\" alt=\"\" class=\"wp-image-6359\" width=\"504\" height=\"301\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-34-1024x612.png 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-34-300x179.png 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-34-150x90.png 150w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-34-768x459.png 768w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-34-1536x918.png 1536w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-34-2048x1224.png 2048w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/figure><\/div>\n\n\n\n<p>So for some reason it was hitting it&#8217;s maximum current output and then just sitting there. I don&#8217;t fully understand why, but reducing the current (via the current adjust pot on the board) and increasing the supply voltage (I pushed it to 24, which seems like it&#8217;s more than should be required, but still drawing only ~300mA) resolved the issue. I don&#8217;t fully understand why the current adjust should have this effect and should probably investigate further. But the traces look fine and I don&#8217;t see any missed steps:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-35-1024x587.png\" alt=\"\" class=\"wp-image-6360\" width=\"493\" height=\"282\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-35-1024x587.png 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-35-300x172.png 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-35-150x86.png 150w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-35-768x440.png 768w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-35-1536x880.png 1536w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-35-2048x1174.png 2048w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/figure><\/div>\n\n\n\n<p>With these changes I was again able to resolve the CFL spectra but now I have more freedom with speed\/acquisition time&#8230;<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-36-1024x635.png\" alt=\"\" class=\"wp-image-6361\" width=\"614\" height=\"380\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-36-1024x635.png 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-36-300x186.png 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-36-150x93.png 150w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-36-768x476.png 768w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-36-1536x952.png 1536w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-36-2048x1270.png 2048w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/figure><\/div>\n\n\n\n<p>Acquiring on the scope at a lower speed seems to result in more noise (likely from vibration), but at least a still visible spectra:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-37-1024x591.png\" alt=\"\" class=\"wp-image-6362\" width=\"521\" height=\"300\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-37-1024x591.png 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-37-300x173.png 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-37-150x87.png 150w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-37-768x444.png 768w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-37-1536x887.png 1536w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-37-2048x1183.png 2048w\" sizes=\"auto, (max-width: 521px) 100vw, 521px\" \/><\/figure><\/div>\n\n\n\n<p>This means I can probably move on to acquiring the photodiode output on a microcontroller&#8230; a picture of the EasyDriver\/shunt is below for reference:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-38-1024x613.png\" alt=\"\" class=\"wp-image-6363\" width=\"539\" height=\"322\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-38-1024x613.png 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-38-300x180.png 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-38-150x90.png 150w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-38-768x460.png 768w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-38-1536x919.png 1536w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2021\/11\/image-38-2048x1226.png 2048w\" sizes=\"auto, (max-width: 539px) 100vw, 539px\" \/><\/figure><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post hacking around with the DU530 I showed a spectra from a CFL which matched published spectra. However I was still having a number of issues, particularly with the stepper driver. In particular I was having issues with the stepper skipping steps. I&#8217;ve been using an EasyDriver (clone) and found that if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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}},"categories":[1],"tags":[],"class_list":["post-6358","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-1Ey","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/6358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=6358"}],"version-history":[{"count":1,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/6358\/revisions"}],"predecessor-version":[{"id":6364,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/6358\/revisions\/6364"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=6358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=6358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=6358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}