{"id":17,"date":"2014-01-01T13:00:00","date_gmt":"2014-01-01T13:00:00","guid":{"rendered":""},"modified":"2023-08-18T12:19:07","modified_gmt":"2023-08-18T11:19:07","slug":"diy-dro-for-mini-mill","status":"publish","type":"post","link":"https:\/\/blog.hslracing.com\/electronics\/2014\/01\/diy-dro-for-mini-mill.html","title":{"rendered":"DIY DRO for Mini Mill"},"content":{"rendered":"<p>Having settled on some\u00a0<a href=\"http:\/\/www.igaging.com\/\">Igaging<\/a>\u00a0linear scales\u00a0and Yuriy Krushelnytskiy&#8217;s\u00a0<a href=\"http:\/\/www.yuriystoys.com\/p\/android-dro.html\">DIY DRO<\/a>\u00a0for Android as mentioned in my <a href=\"https:\/\/blog.hslracing.com\/workshop\/2014\/01\/01\/stripping-plus-dro-musings\/\">Mini Mill posting<\/a>\u00a0I set about making the board itself a cheaper prospect.<\/p>\n<p>I am not a big fan of the <a href=\"http:\/\/www.arduino.cc\/\">Arduino<\/a> boards and their associated shields, as they use a non-standard pin spacing from one side to the other, which is incompatible with 0.1&#8243; perfboard or stripboard, simply so distributors can charge a premium for the boards and shields, many of which do not contain more than a few pennies worth of components.<\/p>\n<p>I can understand the convenience factor and the &#8220;plug and play&#8221; nature of the shields, however personally I am not willing to pay the premium for them. I would rather spend a little more time on a breadboard or with <a href=\"http:\/\/www.cadsoftusa.com\/\">Eagle<\/a>\u00a0designing a more minimalist solution that only uses the components actually required.<\/p>\n<p>At least the <a href=\"http:\/\/www.ti.com\/tool\/msp-exp430g2\">Launchpad<\/a>\u00a0platform from Texas Instruments is almost compatible with standard 0.1&#8243; perfboard (it does fit, but the pins will be at a little bit of an angle).<\/p>\n<p>Both solutions proposed by Yuriy make use of a 20 pin chip &#8211; <a href=\"http:\/\/www.atmel.com\/devices\/atmega328p.aspx\">ATmega328P<\/a> on the\u00a0<a href=\"http:\/\/www.arduino.cc\/\">Arduino<\/a>\u00a0Uno\/Duemilanove\/whatever and a <a href=\"http:\/\/www.ti.com\/product\/msp430g2553\">MSP430G2553<\/a>\u00a0for the\u00a0<a href=\"http:\/\/www.ti.com\/tool\/msp-exp430g2\">Launchpad<\/a>, now considering that only 5 I\/O pins are actually being used (6 if you connect RX and TX from the bluetooth module), this is a little overkill.<\/p>\n<p>A better choice of chips would be the 14 pin\u00a0<a href=\"http:\/\/www.atmel.com\/devices\/attiny24.aspx\">ATtiny24\/44\/84<\/a>\u00a0from Atmel or the <a href=\"http:\/\/www.ti.com\/product\/msp430g2231\">MSP430G2231<\/a>\/<a href=\"http:\/\/www.ti.com\/product\/msp430g2211\">MSP430G2211<\/a>\u00a0from Texas Instruments, you are still wasting half the I\/O pins, but going smaller still does not really have enough pins.<\/p>\n<p>I have chosen to draw up the circuits with the additional battery, diodes and smoothing capacitor as mentioned in one of <a href=\"http:\/\/www.yuriystoys.com\/2013\/06\/parts-list-for-msp430-digital-readout.html\">Yuriy&#8217;s other posts<\/a>.<\/p>\n<p>ATtiny version:<\/p>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.41.15.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-92 size-medium\" src=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.41.15-300x198.png\" alt=\"\" width=\"300\" height=\"198\" srcset=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.41.15-300x198.png 300w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.41.15-768x508.png 768w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.41.15.png 839w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: left;\">Single sided board layout with earth plane 45mm x 40mm (1.75&#8243; x 1.6&#8243;):<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.58.20.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-93 size-medium\" src=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.58.20-300x264.png\" alt=\"\" width=\"300\" height=\"264\" srcset=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.58.20-300x264.png 300w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.58.20.png 726w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: left;\"><span style=\"text-align: left;\">The MSP430G version does not require all of the other resistors as it has built in pull-up\/down resistors:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.39.49.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-94 size-medium\" src=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.39.49-300x200.png\" alt=\"\" width=\"300\" height=\"200\" srcset=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.39.49-300x200.png 300w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.39.49.png 704w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: left;\">Single sided board with earth plane 40mm (1.6&#8243;) square:<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.46.14.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-95 size-medium\" src=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.46.14-290x300.png\" alt=\"\" width=\"290\" height=\"300\" srcset=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.46.14-290x300.png 290w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-01-at-11.46.14.png 731w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: left;\">Perfboard version drawn using\u00a0<a href=\"https:\/\/code.google.com\/p\/diy-layout-creator\/\">DIY Layout Creator<\/a>, The battery used here is a 3V CR1220 (bottom middle connections):<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-15.00.52.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-96 size-medium\" src=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-15.00.52-300x206.png\" alt=\"\" width=\"300\" height=\"206\" srcset=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-15.00.52-300x206.png 300w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-15.00.52-768x527.png 768w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-15.00.52.png 902w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: left;\">In all cases the bluetooth module sits over the top of the battery saving yet more space.<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\">Turning the board 90 degrees, is possibly a better layout it would even be possible to use Female USB type A connectors, that way no cables would need to be cut (\u00a31.93 for 10 and free shipping from <a href=\"http:\/\/www.ebay.co.uk\/\">ebay<\/a>).<\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-17.07.36.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-97 size-medium\" src=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-17.07.36-231x300.png\" alt=\"\" width=\"231\" height=\"300\" srcset=\"https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-17.07.36-231x300.png 231w, https:\/\/blog.hslracing.com\/wp-content\/uploads\/sites\/2\/2014\/01\/Screen-shot-2014-01-08-at-17.07.36.png 658w\" sizes=\"auto, (max-width: 231px) 100vw, 231px\" \/><\/a><\/div>\n<div style=\"clear: both; text-align: left;\">I have several of each of these various chips, the\u00a0<a href=\"http:\/\/www.atmel.com\/devices\/attiny24.aspx\">ATtiny44<\/a>\u00a0chips cost me \u00a31.13 each from <a href=\"http:\/\/uk.rs-online.com\/web\/p\/microcontrollers\/7194092\/?searchTerm=719-4092&amp;relevancy-data=636F3D3126696E3D4931384E525353746F636B4E756D6265724D504E266C753D656E266D6D3D6D61746368616C6C26706D3D5E5C647B337D5B5C732D2F255C2E2C5D5C647B332C347D2426706F3D313426736E3D592673743D52535F53544F434B5F4E554D424552267573743D3731392D343039322677633D4E4F4E4526\">RS<\/a>, the\u00a0<a href=\"http:\/\/www.ti.com\/product\/msp430g2211\">MSP430G2211<\/a>\u00a0cost me $12.90 for 3 x launchpad kits each of which came with a\u00a0<a href=\"http:\/\/www.ti.com\/product\/msp430g2211\">MSP430G2211<\/a>\u00a0and a\u00a0<a href=\"http:\/\/www.ti.com\/product\/msp430g2231\">MSP430G2231<\/a>\u00a0chip, so almost free if you assume $4.90 for the Launchpad \u00a0and one chip (now $9.99), or you could simply order some free samples from <a href=\"http:\/\/www.ti.com\/product\/msp430g2231\">Texas Instruments<\/a>.<\/div>\n<div style=\"clear: both; text-align: left;\"><\/div>\n<div style=\"clear: both; text-align: left;\">The board, capacitors and diodes cost pennies, the most expensive part is the bluetooth module at around \u00a34.80 &#8211; they pretty much all work on 3.3V or 5V, or any voltage in-between (as do the micro-controllers).<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Having settled on some\u00a0Igaging\u00a0linear scales\u00a0and Yuriy Krushelnytskiy&#8217;s\u00a0DIY DRO\u00a0for Android as mentioned in my Mini Mill posting\u00a0I set about making the board itself a cheaper prospect. I am not a big fan of the Arduino boards and their associated shields, as they use a non-standard pin spacing from one side to the other, which is incompatible&hellip;<\/p>\n","protected":false},"author":2,"featured_media":92,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3],"class_list":["post-17","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised","tag-dro"],"_links":{"self":[{"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":5,"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/posts\/17\/revisions\/172"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/media\/92"}],"wp:attachment":[{"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hslracing.com\/electronics\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}