Sammy1Am / MoppyClassic

Moppy has been replaced with Moppy 2.0!
568 stars 190 forks source link

Scanner Motor / Arduino #192

Open Mason10198 opened 6 years ago

Mason10198 commented 6 years ago

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.

Lothean commented 6 years ago

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 ?

Mason10198 commented 6 years ago

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.

Lothean commented 6 years ago

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