Skip to content

Drew-S/xy-plotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XY-Plotter

1.2.1

This project includes code, drawings, and schematics for building a XY-Plotter. The code is all made in c++ using Platform.io to compile and run on an Arduino.

Code

NOTE

The current version of main.cpp, where the server code runs from is being used for testing. This version of the code is not ready for full use.

Server

This code uses:

The code is operating well enough to draw basic shapes:

  • Circle
  • Ellipse (with rotations)
  • Polygon (Square, Diamond, Rectangle, etc)
  • Bezier curve

The Drive functionallity has some quirks with moveTo(), taking odd paths to get to next shape. The shapes themselves are unaffected. Without fixing this the system still works well. However, without fixing them it runs slower as moving from one shape to another takes uneeded steps wasting time.

These four basic types will allow the drawing of, I believe any shape.

The client code, which has yet to started, will convert shapes into operable types for the server code (Arduino code).

I plan to make the client code convert SVG files into server code for easy drawing.

Changed the main.cpp file so it can communicate and take commands from the connected computer.

Client

The client code runs on Node.js using the 'serialport' and 'xml-parser' npm packages. The client app can read SVG files and parse the data into a command list to control the XY-Plotter.

Conversion of shapes:

  • circle -> Circle
  • ellipse -> Ellipse
  • path -> Bezier
  • rect -> Polygon
  • line -> Polygon
  • polyline -> Polygon
  • polygon -> Polygon

Transformations:

  • By group
  • By individual shape (Only Ellipse rotation supported)

CAD and Drawings

I have removed the old CAD and drawing files as they're outdated.

I will be drawing up new ones soon-ish.

Circuit

Look in the docs/circuit folder for diagrams.

The Master.svg file shows the entire diagram for the circuit. The diagrams are divided into smaller diagrams for easier reading.

Master Circuit Diagram

Author

Drew Sommer

License

The MIT License (MIT)

Copyright (c) 2017 Drew Sommer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

XY-Plotter for Arduino.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published