Unrepentant Geek (matthew) wrote,
Unrepentant Geek

  • Mood:

Limited Success

I sat down tonight and hacked around with the code that Apple provided and have come to understand it reasonably well. I managed to get the driver code to find and connect to the scanner and open it's communication pipes.

So you'd think it's time to party, right? Nope, sorry. Now is when the work begins.

I've started reading the docs on the LM9833 chip that drives the scanner. Communications with the device are done by reading and setting registers in the chip. That's fairly straightforward, or at least it would be if I could figure out how to do that from code. That's the next step, turning on the lamp, or moving the carriage, or sensing a button press or something.

After that, I get to the really fun part. Calibration. You'd think that you just have to tell the scanner to give you an image of what's on the page, right? Not exactly. You first have to calibrate the scanner by taking readings of a known image, like a strip of black or white that's hidden inside the scanner. Once you do that, you have to the calculate a whole bunch of stuff with equations that take me back to my calc classes, and then program the scanner with the values derived from those calculations.

Sounds like fun huh?

  • I welcome our new cube overlord

    Posted via LiveJournal app for Android.

  • it begins again...

    Tonight I changed the oil and started in on replacing the seat bushing. looks pretty odd without a tank. Posted via LiveJournal app for Android.

  • Makerbot madness

    I finally took some time to poke at my makerbot again. gordonmessmer and I tried to get it working again in a fairly standard config only…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment