{"id":249,"date":"2014-07-02T10:04:34","date_gmt":"2014-07-02T10:04:34","guid":{"rendered":"http:\/\/wphost.spider-e.com\/?p=249"},"modified":"2014-07-02T10:07:21","modified_gmt":"2014-07-02T10:07:21","slug":"dallas-1-wire-ibutton-teardown","status":"publish","type":"post","link":"https:\/\/wphost.spider-e.com\/?p=249","title":{"rendered":"Dallas 1-Wire iButton teardown."},"content":{"rendered":"<p>Recently I&#8217;ve been investigating 1-wire iButtons and interfacing them to different systems. I thought it might be interesting to see what&#8217;s inside an iButton. So here is my Dallas DS1990A iButton teardown.<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/06\/IMG_0519.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-232\" src=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/06\/IMG_0519.jpg?resize=150%2C150\" alt=\"iButton Key Fobs\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/06\/IMG_0519.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/06\/IMG_0519.jpg?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/06\/IMG_0519.jpg?zoom=3&amp;resize=150%2C150 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>The 1-Wire iButton is essential an read-only-memory (ROM)\u00a0with a unique 64 Bit serial-number\u00a0programmed into it at the factory. The code is guaranteed to be globally unique, so no two iButtons will ever have the same code.\u00a0In reality the code is actually only 6 Bytes (48 Bits) long because there is 1 byte of device-ID and one byte of CRC (cyclic redundancy code, a form of calculated checksum). The iButtons come in various shapes and sizes, but they all have the same features, a 64 Bit unique serial number\u00a0in a metal can which can be read using a single data wire which provides power, and also writes instructions to the device and reads data back from it. See my <a title=\"Reading 1-Wire iButtons using a UART\" href=\"http:\/\/wphost.spider-e.com\/?p=231\">previous<\/a>\u00a0<a title=\"Reading 1-Wire iButtons using Cypress PSoC 3 and 5\/5LP\" href=\"http:\/\/wphost.spider-e.com\/?p=234\">posts<\/a> on how this works, and how it can be implemented on various platforms.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0530.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-250\" src=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0530.jpg?resize=150%2C150\" alt=\"IMG_0530\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0530.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0530.jpg?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0530.jpg?zoom=3&amp;resize=150%2C150 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>The button I&#8217;m tearing down today is the DS1990A, in a 5mm deep can, attached to a plastic key fob. To begin with, I simply popped the can out of the key fob, it is not glued or bonded, simply pressed into the key fob and retained by a lip on the can. The plastic fob just makes it easy to use and attach to a key ring or lanyard, it has no functional purpose as far as the electronics of the device are concerned.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0531.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-251\" src=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0531.jpg?resize=150%2C150\" alt=\"IMG_0531\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0531.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0531.jpg?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0531.jpg?zoom=3&amp;resize=150%2C150 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>Due to their similarity to button cell batteries such as the CR2302 many people often think that they contain a lithium or rechargeable battery, and while some other 1-Wire devices such as temperature loggers do, these serial \u00a0number iButtons do not include any kind of power source. All the power they need to communicate is drawn form the 1-wire connection. The next step is to pry the can open and see what&#8217;s inside. To do this I gently squeezed the can in a vice until it was deformed enough to pop open a little.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0532.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-252\" src=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0532.jpg?resize=150%2C150\" alt=\"IMG_0532\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0532.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0532.jpg?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0532.jpg?zoom=3&amp;resize=150%2C150 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>Now that it was starting to open, I simply popped the top section out of the can to reveal all it&#8217;s insides. The electronics are on a board attached to the top section, and the rest of the can just contains a retaining clip and a rubber seal. these devices are completely waterproof when undamaged. Looks like the electronics are on the form of DoB (Die On Board) where a silicon die (i.e. the actual silicon chip) is bonded directly to a circuit board.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0533.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-253\" src=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0533.jpg?resize=150%2C150\" alt=\"IMG_0533\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0533.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0533.jpg?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0533.jpg?zoom=3&amp;resize=150%2C150 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a>There&#8217;s not much else to see. The die is bonded to a small piece of 0.5mm thick fibreglass board, which has an electro conductive coating, one side of the PCB contacts directly against the top can, the other to the bottom can via the retaining clip and a thin metal ring.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The other side of the board has nothing at all except the conductive coating to contact with the can.<a href=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0534.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-254\" src=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0534.jpg?resize=150%2C150\" alt=\"IMG_0534\" width=\"150\" height=\"150\" srcset=\"https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0534.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0534.jpg?zoom=2&amp;resize=150%2C150 300w, https:\/\/i0.wp.com\/wphost.spider-e.com\/wp-content\/uploads\/2014\/07\/IMG_0534.jpg?zoom=3&amp;resize=150%2C150 450w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I&#8217;ve been investigating 1-wire iButtons and interfacing them to different systems. I thought it might be interesting to see what&#8217;s inside an iButton. So here is my Dallas DS1990A iButton teardown.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":[2,51,52],"tags":[64,69,65],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-electronics","category-hardware-2","category-teardown","tag-1-wire","tag-1wire","tag-ibutton"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p42WEU-41","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=249"}],"version-history":[{"count":3,"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=\/wp\/v2\/posts\/249\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wphost.spider-e.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}