CNC machine
computerized numerically controlled machine

Mechanics | Electrical | Computer control | Technical | Links

My Idea was to build a computer controlled machine to plot, engrave, and may be cut wood or plastic, built with parts from a typewriter and scanner.

Mechanics

Ae740.jpg (16981 bytes)
AE-740 Typewriter
Striped down to just what I need.

See: Service manual

typewriter.jpg (33411 bytes)

12v Stepper motor coil sequence - white -> ground, 1)-red, 2)-yellow, 3)-brown, 4)-blue

sq4830.jpg (13745 bytes)
SQ 4830 Color Scanner

Striped down.

scanner.jpg (39752 bytes)

Stepper motor coil sequence - green -> ground, 1)-yellow, 2)-red, 3)-blue, 4)-white

asemadd.jpg (8351 bytes)

Highlighted parts are added to attach typewriter to scanner.
Red part is a pen used in testing.

Scanner controls the Y axis
Typewriter controls the X axis

asembly.jpg (46789 bytes)
Attached the typewriter assembly to the scanner.

 

Electrical

port.gif (1879 bytes)

Male parallel port cable wiring.
see: SPP Parallel Port Pin-out

portwired.jpg (14548 bytes)

Driver circuit for the typewriter stepper motor
driver1.gif (3963 bytes)
IN- from D0 (pin 2) of the parallel port.
Out - to coil 1 (red) of the stepper motor.

Build 4 -                  IN from D0-D3 (pins 2-5):                       Out to stepper motor 1
NOTE: +vcc is 12V DC

Parts

R1-R4 r1.jpg (6398 bytes)

Resistor
Green, Violet, Red - 51KÙ

Q1-Q4 q1.jpg (9647 bytes)

NpN Transistor

R5-R8 r5.jpg (7957 bytes)

Resistor
Brown, Black, Red - 1KÙ

IC1 ic1.jpg (19929 bytes)

Transistor array - µPA1437H PnP
(4) - Darlington transistors
Found in typewriter
See: Data Sheet

Driver circuit for scanner stepper motor
driver2.gif (3163 bytes)
IN- from D4 (pin 6) of the parallel port.
Out - to coil 1 (yellow) of the stepper motor.

Build 4 -                  IN from D4-D7 (pins 6-10):                       Out to stepper motor 2 and then to 12V DC

Parts

R9-R12 r9.jpg (2980 bytes) Resistor
Gray, Red, Orange - 83 KÙ
Q5-Q8 q5.jpg (4462 bytes) NpN Transistor - 2N3904
Radio shack part number - (276-1617)
R13-R16 r13.jpg (2754 bytes) Resistor
Blue, Gray, Orange - 68 KÙ
Q9-Q12 q9.jpg (3987 bytes) PnP Transistor - 2N3906
Radio shack part number - (276-1604)
R17-R20 r5.jpg (7957 bytes) Resistor
Brown, Black, Red - 1KÙ
Q13-Q14 q13.jpg (4679 bytes)

NpN Power Transistor - 2N5190
See: Data Sheet

D1-D4 d1.jpg (2747 bytes)

Diode

BlockDiagram.jpg (84240 bytes)
Testing Circuit

 

Computer control

The program I'm using to control the parallel port is "Kemo - Relais Timer".  This program is designed to control a relay  module that could be used to turn on and off lights in the house at specific time.

You can download the program Here -> http://www.vego.nl/kemo/42/42.htm

"Kemo" allows you to save your work in a *.rpt file.
To get this program to drive the stepper motor sequence I had to write a program to automatically create the *.rpt file.
I wrote it in javascript.

I'm not going to go into details about the programming. You'll have to study files...(click on links below)

Basicly my program takes my instructions, and converts then to a format the Relais Timer understands, (.rpt file).

 

Technical

The parallel port outputs (pins 2-9) maximum   current 24 ma

My Cicuit
parallel port current draw = 68.4  µA & 44.6   @ 4.38 V on Q1-Q4 & Q5-Q8
Circuit at rest current - 1.3 µA
12V line Total max. current normal operation - .88 Amps
12V line max. current all coils on bad operation -   2.97 Amps

Typewriter driver circuit     x - direction

Buffer Q1-Q4 Ib
Ic
68.4  µA
7.6 mA
Driver IC1 Ic 360 mA

Scanner driver circuit     y- direction

Buffer Q5-Q8 Ib
Ic
44.6  µA
65.2 µA
Inverter Q9-Q12 Ic 4.29 mA
Driver Q13-Q16 Ic 210 mA

Stepper motors resolution
Typewriter     x - 1000 steps = 8.375":            1"=119.402985 steps
Scanner         y - 2000 steps = 6.8125":          1"=293.57798 steps

Range of motion
x - 12"
y - 9.625"

Max Speed
.02 sec/step

 

 

Links

Electronic Component Datasheets and Data Books http://www.datasheetarchive.com/
Parallel port output http://www.epanorama.net/circuits/parallel_output.html
Interfacing to the IBM-PC Parallel Printer Port http://www.doc.ic.ac.uk/~ih/doc/par/
Kemo-Relais Timer - Program that controls the parallel port http://www.vego.nl/kemo/42/42.htm
AE-740 Electronic Typewriter http://northamericandistribution.com/index_files/..........