{"action":"closed","issue":{"url":"https://api.github.com/repos/thunderbug1/Spherebot-Host-GUI/issues/22","repository_url":"https://api.github.com/repos/thunderbug1/Spherebot-Host-GUI","labels_url":"https://api.github.com/repos/thunderbug1/Spherebot-Host-GUI/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/thunderbug1/Spherebot-Host-GUI/issues/22/comments","events_url":"https://api.github.com/repos/thunderbug1/Spherebot-Host-GUI/issues/22/events","html_url":"https://github.com/thunderbug1/Spherebot-Host-GUI/issues/22","id":115354732,"number":22,"title":"overflow and bad communication, i suppose...","user":{"login":"marcogarzotti","id":3716247,"avatar_url":"https://avatars.githubusercontent.com/u/3716247?v=3","gravatar_id":"","url":"https://api.github.com/users/marcogarzotti","html_url":"https://github.com/marcogarzotti","followers_url":"https://api.github.com/users/marcogarzotti/followers","following_url":"https://api.github.com/users/marcogarzotti/following{/other_user}","gists_url":"https://api.github.com/users/marcogarzotti/gists{/gist_id}","starred_url":"https://api.github.com/users/marcogarzotti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcogarzotti/subscriptions","organizations_url":"https://api.github.com/users/marcogarzotti/orgs","repos_url":"https://api.github.com/users/marcogarzotti/repos","events_url":"https://api.github.com/users/marcogarzotti/events{/privacy}","received_events_url":"https://api.github.com/users/marcogarzotti/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-05T19:23:11Z","updated_at":"2016-02-27T15:16:20Z","closed_at":"2016-02-27T15:16:20Z","body":"Hi thunderbug,\r\ni'm facing some problems, i don't know what's wrong.\r\nI've downloaded everything, i've uploaded the arduino code with some warnings (see below) but no errors.\r\nI've modified the config.h (i will copypaste it below) and the servo is ok but the stepper don't work.\r\nI don't think that's a motor/driver problem, they used to work last time i checked.\r\nI can connect the spherebot control 2.0 to the arduino, i've tried to send the example gcode inkscape-unicorn.gcode that i've found but i see a very slow communication in the two boxes in the control software, transcieved data and received data. Just to give some numbers, a new line appears once every 3-5 seconds, only for the first 5-6 lines and no more lines after that, and an \"Overflow Error\" appears once on the received data box.\r\nIf i use the serial terminal in the arduino ide i can move the servo and i have a fast response, i'm trying to move the steppers but i cant actually control them properly. \r\nAnyway, my opinion is that the problem is related to the control software but i don't know how to check that.\r\n\r\nI'm using a windows 7 pc and an arduino 2009 wiht the 1.6.5 ide, this are the warning that i see when i upload the code and my config.h.\r\n\r\nThanks for the help!\r\n\r\n\r\n----- warnings ----\r\nIn file included from SoftwareServo.cpp:1:0:\r\nSoftwareServo.h:4:22: warning: extra tokens at end of #include directive [enabled by default]\r\n #include  \"Arduino.h\"</wprogram.h>\r\n                      ^\r\nIn file included from SphereBot.ino:34:0:\r\nSoftwareServo.h:4:22: warning: extra tokens at end of #include directive [enabled by default]\r\n #include  \"Arduino.h\"</wprogram.h>\r\n                      ^\r\nSphereBot.ino: In function 'void process_commands(char*, int)':\r\nSphereBot.ino:295:49: warning: NULL used in arithmetic [-Wpointer-arith]\r\n\r\n\r\nIn file included from SoftwareServo.cpp:1:0:\r\nSoftwareServo.h:4:22: warning: extra tokens at end of #include directive [enabled by default]\r\n #include  \"Arduino.h\"</wprogram.h>\r\n                      ^\r\nIn file included from SphereBot.ino:34:0:\r\nSoftwareServo.h:4:22: warning: extra tokens at end of #include directive [enabled by default]\r\n #include  \"Arduino.h\"</wprogram.h>\r\n                      ^\r\nSphereBot.ino: In function 'void process_commands(char*, int)':\r\nSphereBot.ino:295:49: warning: NULL used in arithmetic [-Wpointer-arith]\r\n\r\n\r\n----- config.h ----\r\n//#define BAUDRATE 9600\r\n#define BAUDRATE 57600\r\n//#define BAUDRATE 115200\r\n//#define BAUDRATE 256000\r\n\r\n/*\r\n * PINS\r\n */\r\n\r\n// Y-Axis\r\n//#define YAXIS_DIR_PIN 14\r\n//#define YAXIS_STEP_PIN 15\r\n//#define YAXIS_ENABLE_PIN 21\r\n#define YAXIS_DIR_PIN 5\r\n#define YAXIS_STEP_PIN 6\r\n#define YAXIS_ENABLE_PIN 2\r\n#define YAXIS_RST_PIN -1\r\n#define YAXIS_SLP_PIN -1\r\n#define YAXIS_MS1_PIN -1\r\n#define YAXIS_MS2_PIN -1\r\n#define YAXIS_MS3_PIN -1\r\n#define YAXIS_ENDSTOP_PIN -1     // -1 -> No Endstop\r\n#define YAXIS_VMS1 HIGH\r\n#define YAXIS_VMS2 HIGH\r\n#define YAXIS_VMS3 HIGH\r\n#define YAXIS_MIN_STEPCOUNT -50    // Travel limits\r\n#define YAXIS_MAX_STEPCOUNT 50\r\n#define YAXIS_STEPS_PER_FULL_ROTATION 200.0\r\n#define YAXIS_MICROSTEPPING 1\r\n\r\n//X-Axis\r\n//#define XAXIS_DIR_PIN 10\r\n//#define XAXIS_STEP_PIN 8\r\n//#define XAXIS_ENABLE_PIN 2\r\n#define XAXIS_DIR_PIN 9\r\n#define XAXIS_STEP_PIN 10\r\n#define XAXIS_ENABLE_PIN 4\r\n#define XAXIS_RST_PIN -1\r\n#define XAXIS_SLP_PIN -1\r\n#define XAXIS_MS1_PIN -1\r\n#define XAXIS_MS2_PIN -1\r\n#define XAXIS_MS3_PIN -1\r\n#define XAXIS_ENDSTOP_PIN -1     // -1 -> No Endstop\r\n#define XAXIS_VMS1 HIGH\r\n#define XAXIS_VMS2 HIGH\r\n#define XAXIS_VMS3 HIGH\r\n#define XAXIS_MIN_STEPCOUNT -50    // Travel limits\r\n#define XAXIS_MAX_STEPCOUNT 50\r\n#define XAXIS_STEPS_PER_FULL_ROTATION 200.0\r\n#define XAXIS_MICROSTEPPING 1\r\n\r\n#define SERVO_PIN_1 13\r\n\r\n/*\r\n * Other Configuration\r\n */\r\n\r\n#define DEFAULT_PEN_UP_POSITION 120\r\n\r\n#define DEFAULT_ZOOM_FACTOR 0.1808 // With a Zoom-Faktor of .65, I can print gcode for Makerbot Unicorn without changes. \r\n                               // The zoom factor can be also manipulated by the propretiary code M402\r\n#define X_SCALING_FACTOR    1.65/2    //this factor is for correction to meet the unicorn coordinates \r\n#define Y_SCALING_FACTOR    1\r\n/*\r\n * Microstepping Information\r\n */     \r\n                               \r\n//MS1, MS2 and MS3 are optional. You can simply make these settings by hardwiring the pins to high or low\r\n \r\n   /* MS1  |  MS2  |  MS3      Microstepping Resolution\r\n    -----------------------\r\n      L    |  L    |  L     ->  Full Step\r\n      H    |  L    |  L     ->  Half Step \r\n      L    |  H    |  L     ->  Quarter Step\r\n      H    |  H    |  L     ->  Eighth Step\r\n      H    |  H    |  H     ->  Sixteenth Step\r\n  */\r\n\r\n\r\n\r\n"}}