{"id":63,"date":"2021-02-09T19:44:34","date_gmt":"2021-02-09T19:44:34","guid":{"rendered":"http:\/\/rodneyross.com\/blog\/?page_id=63"},"modified":"2021-11-27T20:12:51","modified_gmt":"2021-11-27T20:12:51","slug":"smartportsd","status":"publish","type":"page","link":"https:\/\/rodneyross.com\/blog\/?page_id=63","title":{"rendered":"SmartPortSD"},"content":{"rendered":"<p>This project started with (Robert Justice) attaching a CF adapter to the Apple \/\/ smart port. \u00a0\u00a0<a href=\"http:\/\/www.users.on.net\/~rjustice\/SmartportCFA\/SmartportCFA.htm\">http:\/\/www.users.on.net\/~rjustice\/SmartportCFA\/SmartportCFA.htm<\/a><\/p>\n<p>It was then ported to Adrunio (328p) UNO by Andrea Ottaviani <a href=\"http:\/\/www.users.on.net\/~rjustice\/SmartportCFA\/SmartportSD.htm\">http:\/\/www.users.on.net\/~rjustice\/SmartportCFA\/SmartportSD.htm<\/a><\/p>\n<p>Then a face book user (Katherine Stark) <a href=\"https:\/\/www.facebook.com\/groups\/5251478676\/permalink\/10160668762608677\">https:\/\/www.facebook.com\/groups\/5251478676\/permalink\/10160668762608677<\/a><\/p>\n<p>posted that they got it working with SDFat. \u00a0 This was easier to manage files on the SD card instead of RAW partitions. \u00a0Katherines&#8217; code is located here:<\/p>\n<p><a href=\"https:\/\/gitlab.com\/nyankat\/smartportsd\">https:\/\/gitlab.com\/nyankat\/smartportsd<\/a><\/p>\n<p>I thought it would be fun so I cobbled one together from spare parts I had. \u00a0 As with any project it took a couple of tries. First I had a couple of bad Chinese SD socket (x2) fixed one with a rubber band! Second I was using the wrong version of the SDFat library (Use 1.x not 2.x).<\/p>\n<p>Once I put it together I tested on my Apple \/\/c+, and My \/\/GS ROM3. \u00a0 This little project worked pretty good.<\/p>\n<p>The hardest problem with these projects is the connectivity. \u00a0 A DB19 connector on Ebay is almost $15 each with the shipping and tax. \u00a0 More than the parts for the rest of the project combined. \u00a0 I did find some DB19 connectors Here: <a href=\"http:\/\/www.iec-usa.com\/cgi-bin\/iec\/DB19MS\">http:\/\/www.iec-usa.com\/cgi-bin\/iec\/DB19MS<\/a>\u00a0 at only $3.24 each so I purchased 10 and had them shipped, \u00a0 While waiting for the connector I did want to try the project so I pulled apart a Apple 5.25Drive (with the DB19 cable and stole the cable that goes from the DB19 to an IDC 20 pin female, \u00a0 Perfect to stuff in Dupont wires.<\/p>\n<p>Ok it works, \u00a0Now I&#8217;ve already got a design that uses an ATMega 328p and a SD card, \u00a0can I re-use this design for the Smartport SD? \u00a0 Well I started with the SDFat! project from some time ago and added in the connector for the DB19. \u00a0 From the first conversion of this project to Arduino, the code has supported a status LED and an INPUT to switch which of the 4 supported partitions are presented as the Boot partition. \u00a0 You press the button once and then either reset your Arduino or turn off the power to the Apple II and reboot. \u00a0 I decided to keep this &#8220;Eject switch &#8221; but to have 4 LEDS show which partition will be the boot partition on the next boot. \u00a0 I also modified the code so that you can press the eject button again and continue to choose which would boot rather than just the next one and then power cycle. \u00a0I had one pin left on the Arduino so I added an error LED rather than just blinking the status LED differently. \u00a0 Here is what I came up with.<\/p>\n<p><a href=\"http:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5746.jpeg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-68\" src=\"http:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5746-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5746-300x225.jpeg 300w, https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5746-768x576.jpeg 768w, https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5746-1024x768.jpeg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Installed on the Back of an Apple \/\/c.<\/p>\n<p><a href=\"http:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5743.jpeg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-67\" src=\"http:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5743-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5743-300x225.jpeg 300w, https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5743-768x576.jpeg 768w, https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5743-1024x768.jpeg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>A little closer so you can see it compared to the composite cable plug that is also out the back of the \/\/c.<\/p>\n<p><a href=\"http:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5744.jpeg\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-66\" src=\"http:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5744-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5744-300x225.jpeg 300w, https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5744-768x576.jpeg 768w, https:\/\/rodneyross.com\/blog\/wp-content\/uploads\/2021\/02\/IMG_5744-1024x768.jpeg 1024w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This project started with (Robert Justice) attaching a CF adapter to the Apple \/\/ smart port. \u00a0\u00a0http:\/\/www.users.on.net\/~rjustice\/SmartportCFA\/SmartportCFA.htm It was then ported to Adrunio (328p) UNO by Andrea Ottaviani http:\/\/www.users.on.net\/~rjustice\/SmartportCFA\/SmartportSD.htm Then a face book user (Katherine Stark) https:\/\/www.facebook.com\/groups\/5251478676\/permalink\/10160668762608677 posted that they &hellip; <a href=\"https:\/\/rodneyross.com\/blog\/?page_id=63\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":12,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/63"}],"collection":[{"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":10,"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/63\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/63\/revisions\/106"}],"up":[{"embeddable":true,"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=\/wp\/v2\/pages\/12"}],"wp:attachment":[{"href":"https:\/\/rodneyross.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}