MoppyClassic icon indicating copy to clipboard operation
MoppyClassic copied to clipboard

Scanner Motor / Arduino

Open Mason10198 opened this issue 7 years ago • 3 comments

I got a few scanners and some of those StepStick driver chips that solidsnake said he used, and I got them all hooked up and Moppy seems to be playing them perfectly fine, but no matter what I do to the MAX_POSITION array in the Arduino code, the scanner head wont tick more than a regular floppy, meaning it only moves around in about a 1 inch area. I bumped the max positions up to 3000 and it doesn't make any change at all.

Mason10198 avatar Feb 03 '18 00:02 Mason10198

Hello,

In the Arduino code, change this

byte MAX_POSITION[] = { 0,0,10000,0,158,0,158,0,158,0,158,0,158,0,158,0,158,0};

//Array to track the current position of each floppy head. (Only even indexes (i.e. 2,4,6...) are used) byte currentPosition[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};

to this :

int MAX_POSITION[] = { 0,0,10000,0,158,0,158,0,158,0,158,0,158,0,158,0,158,0};

//Array to track the current position of each floppy head. (Only even indexes (i.e. 2,4,6...) are used) int currentPosition[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};

A byte number can't go higher than 255, so you were stuck no matter the number! By the way, which scanner do you use ?

Lothean avatar Mar 09 '18 01:03 Lothean

WOW, of course. Thank you, I totally missed that. I grabbed 3 different Visioneer models off of ebay, and used the internal board of one of them to make an interfacing board for the motors, since they all use the same type of motor.

Mason10198 avatar Mar 09 '18 01:03 Mason10198

Nice! Would love to know how they sound :) And sorry for the late reply ;)

Lothean avatar Mar 09 '18 01:03 Lothean