2. Motivation
The need to print on an arbitrarily large format
●
Vector graphics will be scaled up or down to fit
●
the desired format
The system needs to be easy to carry around
●
not heavy
–
not large
–
if possible, autonomous (no PC attached)
–
3. Physics
L
(0,0)
2 2 2
a =x y
2 2 2
b = L− x y
a
b
a
b
a a++
b++ b
(x,y)
a++
b++
4. Software design
moveTo(x,y)
●
starting from a previous point (x0,y0)
–
Bresenham's line algorithm?
–
both motors will run at once?
–
Reverse equations:
●
2 2 2
L a −b 2 2
x= y= a −x
2L
6. Line drawing
Use Bresenham algorithm and then convert
●
coordinates
Only needed when drawing lines
●
If pen is up other choices are possible
●
It works ok!!
●
Problem: Both motors need to work in sync
●
Unpredictable next step
–
Not ramp up/down speed
–
But painting works better at a fixed pen speed!!
●