The number of motor steps per millimeter. See https://shop.evilmadscientist.com/productsmenu/846.
Type: number
The maximum speed of the AxiDraw in millimeters per second. See https://shop.evilmadscientist.com/productsmenu/846.
Type: number
The minimum speed of the AxiDraw in millimeters per second. See https://evil-mad.github.io/EggBot/ebb.html#SM.
Type: number
A class for controlling the AxiDraw pen plotter.
Enable the motors in the AxiDraw. This will "lock" the position of the pen, so it can't be moved by hand. Movement commands automatically enable the motors, so this is usually not needed. The command is queued, so it will be executed after any previous commands.
Promise<void>
:
Resolves when the motors are enabled.
Move the pen to a position specified by an XY coordinate in millimeters. The command is queued, so it will be executed after any previous commands.
Promise<void>
:
Resolves when the pen has reached the destination.
Configure an analog input channel.
Channel | Pin | Comments |
---|---|---|
0 | RA0 | Connected to current adjustment trim-pot |
1 | RA1 | |
2 | RA2 | |
3 | RA3 | (don't use) Pen lift servo power enable |
4 | RA5 | |
5 | RE0 | (don't use) Motor enable 1 |
6 | RE1 | (don't use) MS2 |
7 | RE2 | (don't use) MS1 |
8 | RB2 | Servo connector JP3 |
9 | RB3 | Servo connector JP4 |
10 | RB1 | Pen lift servo connector |
11 | RC2 | |
12 | RB0 | Servo connector JP2 |
(number)
The analog channel number (0-12).
(boolean)
Whether the channel should be enabled.
Promise<void>
:
Resolves when the channel is configured.
Read an analog input channel. The value is normalized to a range of 0-1,
where 1 represents 3.3V. The channel must be enabled with analogConfigure
first. See analogConfigure
for a list of channels and their pins.
(number)
The analog channel number (0-12).
Promise<number>
:
Resolves with the normalized value (0-1).