Arduino code upload errors

Home Forum Makelangelo Polargraph Art Robot Arduino code upload errors

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5939
    AvatarAnonymous
    Inactive

    Hi,

    I have downloaded the Drawbot code and I am trying to upload the arduino code to the arduino Uno that I have. Unfortunately I am getting the following errors.

    I did also install the Adafruit library for the Motor control shield “AFmotor. I can run the stepper test on the arduino and it works just fine.

    Any thoughts as to what my problem might be?

    Here is the errors I get in in the sketch

    arduino:109: error: 'AF_Stepper' does not name a type
    arduino:110: error: 'AF_Stepper' does not name a type
    arduino:130: error: 'FORWARD' was not declared in this scope
    arduino:131: error: 'BACKWARD' was not declared in this scope
    arduino:132: error: 'FORWARD' was not declared in this scope
    arduino:133: error: 'BACKWARD' was not declared in this scope
    arduino.ino: In function 'void line(float, float, float)':
    arduino:354: error: 'm1' was not declared in this scope
    arduino:358: error: 'm2' was not declared in this scope
    arduino:365: error: 'm2' was not declared in this scope
    arduino:369: error: 'm1' was not declared in this scope
    arduino.ino: In function 'void processCommand()':
    arduino:742: error: 'm1' was not declared in this scope
    arduino:743: error: 'm2' was not declared in this scope
    arduino:764: error: 'FORWARD' was not declared in this scope
    arduino:765: error: 'BACKWARD' was not declared in this scope
    arduino:767: error: 'BACKWARD' was not declared in this scope
    arduino:768: error: 'FORWARD' was not declared in this scope
    arduino:773: error: 'FORWARD' was not declared in this scope
    arduino:774: error: 'BACKWARD' was not declared in this scope
    arduino:776: error: 'BACKWARD' was not declared in this scope
    arduino:777: error: 'FORWARD' was not declared in this scope
    arduino:889: error: 'm1' was not declared in this scope
    arduino:893: error: 'm2' was not declared in this scope

    When I go to the includes and change “AFMotorDrawbot.h” to “AFMotor.h” I get another set of error. I think I may have missed something?

    //
    
    // INCLUDES
    //
    // Adafruit motor driver library
    //#include
    #include

    New errors

    arduino.ino: In function 'void line(float, float, float)':
    arduino:357: error: no matching function for call to 'AF_Stepper::onestep(int&)'
    C:Program Files (x86)ArduinolibrariesAFmotor/AFMotor.h:169: note: candidates are: uint8_t AF_Stepper::onestep(uint8_t, uint8_t)
    arduino:361: error: no matching function for call to 'AF_Stepper::onestep(int&)'
    C:Program Files (x86)ArduinolibrariesAFmotor/AFMotor.h:169: note: candidates are: uint8_t AF_Stepper::onestep(uint8_t, uint8_t)
    arduino:368: error: no matching function for call to 'AF_Stepper::onestep(int&)'
    C:Program Files (x86)ArduinolibrariesAFmotor/AFMotor.h:169: note: candidates are: uint8_t AF_Stepper::onestep(uint8_t, uint8_t)
    arduino:372: error: no matching function for call to 'AF_Stepper::onestep(int&)'
    C:Program Files (x86)ArduinolibrariesAFmotor/AFMotor.h:169: note: candidates are: uint8_t AF_Stepper::onestep(uint8_t, uint8_t)

    Thanks in advance!

    #6425
    AvatarAnonymous
    Inactive

    It looks like you haven’t installed the AFMotorDrawbot library. Follow the same process as the AFMotor library and restart Arduino. Please let me know if that helps.

    #6426
    AvatarAnonymous
    Inactive

    ah, yes! I didn’t realize I needed a different library from the Adafruit.

    I followed these instructions “To install, click DOWNLOAD SOURCE in the top right corner, and see our tutorial at http://www.ladyada.net/library/arduino/libraries.html on Arduino Library installation” on the Motor shield page when I should have followed these instructions https://github.com/MarginallyClever/Makelangelo/wiki/Assembly > Software, on the Makelangelo marginally clever instructions page. I have it working now, thank you!

    /ryan

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.