I have a 1541 drive and I want to make it spin but I don’t have a Commodore computer. I don’t need to read data, I would just like the drive to spin. Can I manually tell it to spin using a raspberry pi or something?
One way to do this is to program a Raspberry Pi to simulate an IEC bus controller, then drive the 1541 that way, via the 6-pin IEC port on the drive. This is very similar to using a PC parallel port with a specially wired parallel-to-IEC cable, just using a Raspberry Pi instead of a PC, and using some general purpose I/O pins rather than the parallel port. Once that's done you can save files, load files, format disks, or whatever, just by sending the appropriate commands down the IEC bus.
If you're willing to open up the drive and tinker with the internals you could probably drive the 'motor on' line directly.
The procedure to enable the spindle motor of a disassembled 1541 drive is given in the Service Manual for the drive. This is the procedure you would use to calibrate the motor speed.
_MTR output from the PLA is active "low". This signal is passed, through the current driver UD2, to the motor control PCB. When _MTR is "low," Q1 is biased off, and Q2, Q3, and Q4 are biased on, allowing current flow through the spindle motor coil. Attached to the shaft of the spindle motor is an inductive tachometer that generates low level AC voltages, as the motor spins. The output of the tachometer is rectified by CR1-CR4. IC 1 monitors the output of the rectifier and adjusts the bias to Q2, which changes the bias on Q3 and Q4 to regulate motor current for a constant velocity. VR1 is a manual speed adjustment. The speed can be adjusted by watching the 60Hz strobe as the adjustment is made or loading the system test from the diagnostic disc. The Newtronics Motor Speed PCB is electronically the same as the ALPS Motor Speed PCB, but some of the discrete components have been integrated.
And here is the link to the 1541 Service Manual. Just search the document for "_MTR".