Go Down

Topic: Connect scanner to Arduino (Read 3035 times) previous topic - next topic

Seatle

Mar 20, 2012, 09:20 am Last Edit: Mar 20, 2012, 02:25 pm by Seatle Reason: 1
Hello Everyone,

I want to connect scanner for exampe Epson Perfection V33 to arduino throught USB, I understand that need to use USB host shield, but not understand how to send commands to the scanner.
My goal is scanner have to scan paper and save image to SD card, so question - how can arduino do it?

johnwasser

The first step would be to figure out the protocol used by the scanner you have.  Most are not published because the scanner usually only talks to the driver provided by the scanner vendor.

Good luck.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Seatle

#2
Mar 20, 2012, 02:50 pm Last Edit: Mar 20, 2012, 02:55 pm by Seatle Reason: 1
thanks for reply! I think use USB analyzers like this http://www.usblyzer.com/ or http://www.totalphase.com/products/

robtillaart


Assuming it would succeed then a normal scanner would have scanlines of ~8inch x 600 dpi x 3 colors = 7200 bytes per scanline.
That is almost 4 times the total RAM of an UNO. So even at BW at 200 dpi you would have a RAM overflow in no time.

Unless your goal is different.... ????
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

P18F4550

You would have more chance of hacking into the linear CCD imager data lines and using arduino to control the stepper to move the image sensor

Mr_arduino

You could use spi external ram to overcome that limit have a look at this:
http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=27012&mid=&lang=en

Osgeld

ok yes spi ram exist's but are you going to have enough speed to deal with a camera in its real time while also streaming that data to an external source without running out of memory on the MCU?

SPI ram is not ram that you plug in and it add's onto the arduino's internal memory, its more or less a tiny SD card
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

P18F4550

At risk of repeating myself you could try hacking straight into the linear CCD bus, ones i have used output serial data and are clocked by the host mcu so you control the speed of scan but others are different and it would be easy to drive the stepper, have a look here, this isn't my site but just one i found https://github.com/chiva/Arduino-CCD-TSL214

Go Up