XY Plotter Drawing Robot | Arduino | Polargraph

hi
I need some help, I am trying to make a drawer bot but the error comes up saying compiling for board

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all
libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AFMotorController::AFMotorController()'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AFMotorController::AFMotorController()'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AFMotorController::latch_tx()'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AFMotorController::enable()'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_Stepper::release()'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_DCMotor::AF_DCMotor(unsigned char, unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_Stepper::AF_Stepper(unsigned int, unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_DCMotor::AF_DCMotor(unsigned char, unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_DCMotor::run(unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_DCMotor::setSpeed(unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_Stepper::AF_Stepper(unsigned int, unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_Stepper::setSpeed(unsigned int)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_Stepper::onestep(unsigned char, unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `microstepcurve'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

libraries\AFMotor\AFMotor.cpp.o (symbol from plugin): In function `AFMotorController::AFMotorController()':

(.text+0x0): multiple definition of `AF_Stepper::step(unsigned int, unsigned char, unsigned char)'

libraries\AFMotor\AFMotor (2).cpp.o (symbol from plugin):(.text+0x0): first defined here

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

so any help at all would be great tia

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

We cannot exactly say what is wrong with your code until we see it.

Are you using a Mega controller?

Thanks.. Tom... :slight_smile:

TomGeorge:
We cannot exactly say what is wrong with your code until we see it.

the post is the error, not code.
also, as Tom posted, you must use code tags as they are defined in 'how to use this forum'
we cannot read your post as the special characters come up as funny faces.
but your first error is that you may have the same name twice ?
(.text+0x0): multiple definition of `AFMotorController::AFMotorController()'

do what Tom said,read 'how to use this forum'
post your code, but also post your errors, separately, as if they were code.