width = int mm
string lengths: int stepper_motors_steps
mm_to_steps: float [magic number from calibration]
x,y: floats 0-100
top left - [0,0]
top right - [100, 100]
sudo pip install -U platformio
wget https://raw.githubusercontent.com/platformio/platformio-core/develop/scripts/99-platformio-udev.rules
sudo cp 99-platformio-udev.rules /etc/udev/rules.d/99-platformio-udev.rules
sudo service udev restart
platformio boards
Arduino uno is uno
cd /path/to/project
platformio init --board uno
Write code in /src/main.cpp
platformio run --target upload
platformio device monitor
platformio run --target upload ;and platformio device monitor
Visicut + inkscape for lasercutting
IGNORE THE DATASHEET!
Red-Black and Green-Blue are the coil pairs.
Example: python svgParser.py method-draw-image.svg 0 0 100 100
call python on our script with the arguments:
- image to draw
- minimum x value
- minimum y value
- maximum x value
- maximum y value
This will change the cpp main file to have the path that will draw what you want. Theoreticall, flashing that code will draw what you want where you want.
Load your SVG in Method Draw http://editor.method.ac (File > Open Image)
Ungroup your elements (Object > Ungroup elements) you might have to do this more than once.
Select your path
Reorient the path (Object > Reorient Paths).
Save your image (File > Save Image) If it appears in a new window you can right click and "Save Image as..."