Jump to content

Arduino SCSI device - Work in Progress


Recommended Posts

  • 68kMLA Supporter
On 4/5/2021 at 12:20 PM, androda said:

here's the prototype version of my PowerBook BlueSCSI device board

Nice! Also thanks for using a Non-Commercial license to keep in the spirit of this project!

Link to post
Share on other sites
  • Replies 268
  • Created
  • Last Reply

Top Posters In This Topic

On 4/5/2021 at 11:20 AM, androda said:

The two jumpers are for selecting which power source you use (L = logic, M = motor) and term power.  I have found that it doesn't work at all without termination enabled in my PowerBook 180.  Sleep mode is not tested, unsure if it'll work.  This board is definitely harder to put together because of the little surface mount components, but will have better battery life because of active termination vs resistor network termination.

 

 

I ended up doing the same thing  regard to logic or motor power with v1.1 of my board, so I'm glad I'm not the only one. Poring over all the old PowerBook TechNotes and usenet posts makes me *think* that some powerbooks turn motor power on an off to make the drive sleep but I can't find any place where its explicitly stated and what models it might apply to. The motor *should* be switched on/off using the "START/STOP UNIT" SCSI command, but since the drive in my PB145 lacks the "NO SPIN UP" pin as well, it makes me think that feature is not always implemented.

 

I like what you've done with the active termination, I shy'ed away from using a 2.85v regulator it because I didn't want to solder 18 of those 0603 or 0805 resistors :).  I'm waiting on another board for my IIGS that'll use an SOIC or SSOP termination ICs instead. I'm especially curious if changing the termination resistance from 110 to 2.5k will help make these work better in problematic Powerbooks.

Link to post
Share on other sites
  • 68kMLA Supporter
On 4/6/2021 at 7:09 PM, xunker said:

I like what you've done with the active termination, I shy'ed away from using a 2.85v regulator it because I didn't want to solder 18 of those 0603 or 0805 resistors

 

Thanks for the compliment, but my design isn't technically correct yet.  The resistors can't be removed from circuit, which might cause issues in mid-bus usage even with termpower disabled.  It's more suited for end of bus where termination is required.  The next board revision will include some sort of bus switch for connect/disconnect of the term resistors.

 

Termination resistors don't have to be teeny-tiny.  You can use physically larger 110 ohm resistors, the normal through-hole style.  I've found that these little things are actually pretty easy with a solder paste syringe and heat gun.  Just use a pad sized for hand soldering and it works out fine.

 

Are SCSI termination ICs still in production?  What's the part number?

 

As for changing the SCSI termination resistors to 2.5k ohms, that wouldn't produce much termination pull-up current at all.  Only about a milliamp.  The 110 ohm resistance is aimed at producing 24 milliamps of termination pull-up current from a 2.85v termpower source, which is the SCSI standard for termination current.

 

 

Link to post
Share on other sites
20 hours ago, androda said:

Are SCSI termination ICs still in production?  What's the part number?

 

For something in production, you could try the TL2218-285PWR.

 

I personally use the DS21S07AE (NOS) because I can find it for cheaper, but it requires a few extra capacitors.

Link to post
Share on other sites
  • 68kMLA Supporter
20 hours ago, SuperSVGA said:

For something in production, you could try the TL2218-285PWR.

 

I personally use the DS21S07AE (NOS) because I can find it for cheaper, but it requires a few extra capacitors.

 

Thanks for the pointer.  Makes me wonder how much longer the 2218 will be manufactured.  How many brand new SCSI devices are being made these days, with everything being SATA and SAS?

Link to post
Share on other sites
22 hours ago, androda said:

Are SCSI termination ICs still in production?  What's the part number?

 

As for changing the SCSI termination resistors to 2.5k ohms, that wouldn't produce much termination pull-up current at all.  Only about a milliamp.  The 110 ohm resistance is aimed at producing 24 milliamps of termination pull-up current from a 2.85v termpower source, which is the SCSI standard for termination current.

 

 

 

I'm using both the UCC5606 and DS21S07A mainly; I think the former is still in production, not sure about the later. If it comes to the worst case, there are many SCSI-2 and Ultra160/360 terminator ICs still in production that that retain SCSI-1/SE compatibility though they are starting to all be shipped as QFN or leadframe. They generally all require at least one capacitor per IC, and then another for decoupling TERMPWR. The UCC56xx family recommends tantalum, and the DS21* require tantalum.

 

The docs for the UCC56xx series say "The 110-Ω termination is used for standard SCSI bus lengths and the 2.5-kΩ termination is typically used in short bus applications", and you probably can't a shorter bus than in a laptop! No idea if it will really improve anything, so it's more of a "try and see" idea at this point.

Link to post
Share on other sites

Dear Fellows,
I would like to present you something I call The Poor Man Blue Scsi (PMBScsi) :)

pmbscsi.thumb.jpg.be16b3b4088d786c2e7b48d139fcf043.jpg


Thanks to @erichelgeson, and with hints and moral support of @bibilit.
The idea is to use off-the-shelf components :
- DB25 connector
- STM32 and  micro SD Shield
- A few Dupont wires.

It doesn’t require soldering skills. Here is the details :

poor-man-scsi-ssd.thumb.PNG.6384f1f32ff15f1d02f14ec94c759444.PNG

 

My two cents :
- My SD shield doesn't work with +3.3v, so  I connected it to +5v. I think that a lot of cheap SD shields suffer from the same problem.
- I sligthly modified the code on line #30, because i can’t access to SD card with SPI_FULL_SPEED (perhaps again because of my cheap SD shield). I put 18 Mhz :
#define SD1_CONFIG SdSpiConfig(PA4, DEDICATED_SPI, SD_SCK_MHZ(18), &SPI)

Tested on Macintosh Classic II.

Link to post
Share on other sites
20 hours ago, Dav said:

- My SD shield doesn't work with +3.3v, so  I connected it to +5v. I think that a lot of cheap SD shields suffer from the same problem.

 

That shield has a voltage regulator and level converter on it, this intended for interfacing to 5V micros. I'm pretty sure that means it will be pushing 5V into pins on the BluePill that are not 5V tolerant.

 

If you search "SparkFun microSD Transflash Breakout" or "wemos Micro SD Card Shield" you'll find a couple of modules that don't include regulators or level converters.

 

image.png.e713a8ca7e2bb67513bc99eb5e1e5c25.png

Link to post
Share on other sites
  • 68kMLA Supporter

Tested the updated PowerBook design on a 540 and 520 w/ppc upgrade (my brother's laptops). They booted just fine on the rascsi 7.5.3 image. Will be posting the new design in my repo later today.

 

This morning I finished assembling 8 of the updated design, and will soon be making a trading post thread to list them for sale. No sales website yet, that's another thing I need to do (and I'm pretty bad at web stuff).

Link to post
Share on other sites
  • 68kMLA Supporter
On 4/9/2021 at 8:16 AM, Dav said:

I would like to present you something I call The Poor Man Blue Scsi (PMBScsi) :)

:D You may be surprised to know I've seen an even more "poorer" implementation - someone wired directly to a 50 pin ribbon cable and soldered the wires directly to a microsd->sd card holder.... :D If you ever find yourself in that situation I'm happy to send you a board.

Link to post
Share on other sites
  • 68kMLA Supporter

@blindowl I would either put it at the end of the chain - or pick up a vintage external case and drop it in that - they usually have a 50 pin to dual db25 connector or similar inside. I have also seen a stacked db25 connector but it was expensive if i remember correctly and seemed a bit flimsy - you'd have to build a mount for it.

Link to post
Share on other sites
On 4/9/2021 at 12:29 PM, erichelgeson said:

and soldered the wires directly to a microsd->sd card holder

 Kind of like this :) ?

Microsd-to-sd adapters are cheaper than those SMD microsd sockets, so doing it this way let me validate that I got all the SD card pins correct before potentially wasting a microsd slot on a board design that didn't work.

 

(I actually did the exact thing you mention, too, on a board I got from you; microsd slots hadn't come in the mail yet and I wanted to try out the board so I soldered wires from a microsd-adapter to the pins on the back of the STM32 footprint and then attached it with electrical tape -- still working well a few weeks later!)

low_rent_microsd_adapter.jpg

Link to post
Share on other sites

If I connect the BlueSCSI with a DB25 extension cable (1.8 m) my SE/30s just stuck on a flashing ? at startup (ignoring the internal disk). But works with the Classic. I thought it could be a power issue so I hooked it up to USB power, but no change. Any idea what the issue can be? Crappy cable? Do I need to do any kind of modification to run the BlueSCSI on USB power?

Edited by blindowl
Link to post
Share on other sites
On 4/12/2021 at 6:40 AM, blindowl said:

If I want to daisy chain the BlueSCSI (connected externally) with another SCSI device, what are my options then? Are there SCSI splitters?

 

It should be possible to use two of the 50pin header to DB25 adapters stacked together with extra long header connectors.

Either as long pins soldered to all three boards, or as stacked sockets.

 

image.png.10c32bbfc6fc2642cdfc71f3638f4fb8.pngimage.png.dce38d3b38524fc53fd09a614d7e2bf8.png

Link to post
Share on other sites
On 4/16/2021 at 7:34 PM, blindowl said:

If I connect the BlueSCSI with a DB25 extension cable (1.8 m) my SE/30s just stuck on a flashing ? at startup (ignoring the internal disk). But works with the Classic. I thought it could be a power issue so I hooked it up to USB power, but no change. Any idea what the issue can be? Crappy cable? Do I need to do any kind of modification to run the BlueSCSI on USB power?

 

After some trial and error with different setups, my conclusion is that the problem is due to a bad cable. A standard DB25 cable is not good enough. I think I need to get a thicker and better shielded, purpose-built SCSI cable.

Edited by blindowl
Link to post
Share on other sites
22 hours ago, blindowl said:

 

After some trial and error with different setups, my conclusion is that the problem is due to a bad cable. A standard DB25 cable is not good enough. I think I need to get a thicker and better shielded, purpose-built SCSI cable.

Unfortunately it can be hard to find an actual db25 scsi cable, there’s heaps of parallel port and serial port cables for pc that use the db25 connector and they aren’t straight through cables, ive had a bit of trouble finding scsi cables myself in the past and ended up just making some myself 

Link to post
Share on other sites

For those interested in the PowerBook model I've been working on, I have the new revision (v1.1) and it is working in my PB520c. I think this version is ready to be used by anyone who wants to try it in their own powerbooks (with the caveat that might not work in all machines, I still haven't got it to work properly with my PB145).

 

Biggest changes:
* the screw holes actually line up now!
* jumpers to select if you want it to be powered from Termination Power or "motor power"
* activity LED is broken out in case you want to see drive activity for some reason

 

I'll put the boards up for sale (cost + shipping, probably) if there is any interest, but of course you've always got the option to download the Gerber files and send them to the fab of your choice (which can be cheaper if you're willing to wait for shipping!)
 

Main repo: https://github.com/xunker/bluescsi_pb

pcb_v1.1_render.jpg

 

IMG_5156 copy.jpg

Edited by xunker
too many pictures
Link to post
Share on other sites
  • 68kMLA Supporter

In stock again - giving 68kmla'ers a head start - I've also have @Torbar helping out this time as demand seems to be pent up.

 

You can check https://scsi.blue (yes .blue is a tld! :D thanks @androda for the domain tip) for in stock across the three of us currently making them.

  

 

 

On 4/21/2021 at 4:20 PM, xunker said:

Looks great! I just got my powerbook one from @androda but my T8 is too short to open my 520c :( 

 

 

Link to post
Share on other sites

Does anyone have any suggestions about good ebay or aliexpress suppliers for bluepill boards? 

Sadly I don't think I can justify £46 for the Australasia pricing (almost $90 in NZ moneys).

 

I seem to have had some bad luck in getting legit STM32 blue pills to this end of the world.

I purchased some from Aliexpress which claimed to be original, but they never arrived (tracking shows as simultaneously "In transit" and "Cancelled"). The seller was good and offered a refund if I open a dispute.

Once I noticed this, I purchased a couple from a local seller, which in the photos at least appeared to be marked correctly.

You can see on closer inspection the top surface is really shiny and looks painted (maybe I should try stripping it off and see what's underneath).

When I tried to upload using platform.io it failed with a cpu ID message, this confirmed they were the clone micros. I was able to update the project and get it to load though.

 

I've made two attempts to build my own "board". Both successfully read the SD card and write to the log file identifying drive images, but neither are able to mount drive images.

 

My "bodge wire special" almost works! it shows up in SCSI Probe and LIDO, but any attempt to initialise fails. With the RaSCSI image it actually boots most of the way, then fails when it tries to rebuild the desktop. If i boot from a scsi2sd 5.5 it locks up before mounting any additional drives other than the system.

 

Todays attempt was a "poor mans" version, while not too inelegant as I used box shells to keep the dupont connectors in order, failed to even show up in a SCSI Probe or LIDO. This surprised me actually, I thought it would work as well as the protoboard with bodge wire routing. At least all the wires were the same length.

 

IMG_20210423_160349__01.thumb.jpg.5e80bb66ae081c490a607e8caa217c67.jpg

 

IMG_20210423_160349__03.thumb.jpg.7a5b8cab48933f74cbb72b50774552c6.jpg

 

IMG_20210423_160159__01.thumb.jpg.a1fd76d2baed548aaa434ab9836e3968.jpg

 

Bonus content: I am rather proud of my DIY terminator networks, made from a TSSOP breakout board. It's double sided, with the 220s are on the other side.

IMG_20210411_130405.thumb.jpg.dc0432b1f5d926e6fdf4a1cbc9b8326b.jpg

 

Link to post
Share on other sites

Has anybody considered a version that could sit right on top of the scsi chip in a Plus? Connected like this hack: 

 

It'd be tight, for sure. Are there SMD versions of the resistor networks used? 

 

If the wire length for the sd card isn't critical we could put a full size SD slot in the hole for the cable lock. I know in some instances the sd slot ends up needing to be right next to the mcu and in others you can get away with using extension cables. 

 

I've never produced complete gerber files but I basically know my way around kicad. I've only used it for single-sided stuff i can etch at home so far. 

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...