Homing runs things in reverse.

email4walker
Posts: 26
Joined: Mon Mar 16, 2015 10:21 pm

Re: Homing runs things in reverse.

Post by email4walker »

Ok, the jumpers fixed part of the problem. Now I can not get it to home. Also, If I have one of the axis move (x,y, or z) and I press the appropriate stop switch, it does not stop the movement. When I give the home command, each axis moves about 5 mm and stops. How do I fix this?

Thanks.
zhangxueyou
Posts: 1405
Joined: Fri Feb 06, 2015 1:33 pm

Re: Homing runs things in reverse.

Post by zhangxueyou »

Try to change the relavent parameters in "configuration.h":
Find "
const bool X_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Y_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MIN_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool X_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Y_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic of the endstop.
"
Inverse the value form "false" to "true" , or "true" to "false".
Note: Before you do it, you should select all the files (Ctrl+A) into Arduino IDE first.
I suggest you try one axis alone first (like "X_MIN" and "X_MAX"), to see if the corresponding axis moves correctly.
email4walker
Posts: 26
Joined: Mon Mar 16, 2015 10:21 pm

Re: Homing runs things in reverse.

Post by email4walker »

How do you up load the change to the board? My Arduino software says error comiling. I get the error even if I don't change anything:


core.a(main.cpp.o): In function `main':
C:\Users\Walker\Desktop\3D Printer Files\arduino-0023\hardware\Sanguino\cores\arduino/main.cpp:7: undefined reference to `setup'
C:\Users\Walker\Desktop\3D Printer Files\arduino-0023\hardware\Sanguino\cores\arduino/main.cpp:10: undefined reference to `loop'
zhangxueyou
Posts: 1405
Joined: Fri Feb 06, 2015 1:33 pm

Re: Homing runs things in reverse.

Post by zhangxueyou »

Hi, email4walker
First, select all the files (Ctrl+A) and drag them into Arduino IDE. Then choose correct board type (Tools>Board>Sanguino W/ATmega 1284p 16mhz) and serial port(Tools>Serial port>COM3 (usually)).
Click verify (the icon "√"). If compling successfully, click "Upload" (the icon "→").
email4walker
Posts: 26
Joined: Mon Mar 16, 2015 10:21 pm

Re: Homing runs things in reverse.

Post by email4walker »

When I did that, I got this error:

LiquidCrystal.cpp:6:21: error: Arduino.h: No such file or directory
In file included from LiquidCrystal.cpp:1:
LiquidCrystal.h:81: error: conflicting return type specified for 'virtual size_t LiquidCrystal::write(uint8_t)'
C:\Users\Jomo\Desktop\3D Printer Files\Arduino 0023\arduino-0023\hardware\Sanguino\cores\arduino/Print.h:40: error: overriding 'virtual void Print::write(uint8_t)'
LiquidCrystal.cpp: In member function 'void LiquidCrystal::init(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
LiquidCrystal.cpp:69: error: 'OUTPUT' was not declared in this scope
LiquidCrystal.cpp:69: error: 'pinMode' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::begin(uint8_t, uint8_t, uint8_t)':
LiquidCrystal.cpp:99: error: 'delayMicroseconds' was not declared in this scope
LiquidCrystal.cpp:101: error: 'LOW' was not declared in this scope
LiquidCrystal.cpp:101: error: 'digitalWrite' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::clear()':
LiquidCrystal.cpp:163: error: 'delayMicroseconds' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::home()':
LiquidCrystal.cpp:169: error: 'delayMicroseconds' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::command(uint8_t)':
LiquidCrystal.cpp:257: error: 'LOW' was not declared in this scope
LiquidCrystal.cpp: In member function 'virtual size_t LiquidCrystal::write(uint8_t)':
LiquidCrystal.cpp:261: error: 'HIGH' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::send(uint8_t, uint8_t)':
LiquidCrystal.cpp:269: error: 'digitalWrite' was not declared in this scope
LiquidCrystal.cpp:273: error: 'LOW' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::pulseEnable()':
LiquidCrystal.cpp:285: error: 'LOW' was not declared in this scope
LiquidCrystal.cpp:285: error: 'digitalWrite' was not declared in this scope
LiquidCrystal.cpp:286: error: 'delayMicroseconds' was not declared in this scope
LiquidCrystal.cpp:287: error: 'HIGH' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::write4bits(uint8_t)':
LiquidCrystal.cpp:295: error: 'OUTPUT' was not declared in this scope
LiquidCrystal.cpp:295: error: 'pinMode' was not declared in this scope
LiquidCrystal.cpp:296: error: 'digitalWrite' was not declared in this scope
LiquidCrystal.cpp: In member function 'void LiquidCrystal::write8bits(uint8_t)':
LiquidCrystal.cpp:304: error: 'OUTPUT' was not declared in this scope
LiquidCrystal.cpp:304: error: 'pinMode' was not declared in this scope
LiquidCrystal.cpp:305: error: 'digitalWrite' was not declared in this scope
zhangxueyou
Posts: 1405
Joined: Fri Feb 06, 2015 1:33 pm

Re: Homing runs things in reverse.

Post by zhangxueyou »

Do you have any commucation software like QQ or Skype? We want to better understand your issue.
email4walker
Posts: 26
Joined: Mon Mar 16, 2015 10:21 pm

Re: Homing runs things in reverse.

Post by email4walker »

At this moment I just need it to compile the file so I can up load it to the board. I used the file you sent me, I put it in Arduino 0023 (all the files, ctrl + a) and pressed compile. When I do this, I get the error you saw. My overall problem is it will not home. If I tell it to home, all axis (x, y, and z) move 5 mm and stop. Also, if I tell any axis to move manually (x, y, or z) and I press the endstop button, it does not stop the axis from moving. That is what I am trying to fix by changing the firmware. Do we need skype to fix this? I can download it if needed.
zhangxueyou
Posts: 1405
Joined: Fri Feb 06, 2015 1:33 pm

Re: Homing runs things in reverse.

Post by zhangxueyou »

Please check your private message.
And please download Skype and register an account. We will do our best to solve your problem.
email4walker
Posts: 26
Joined: Mon Mar 16, 2015 10:21 pm

Re: Homing runs things in reverse.

Post by email4walker »

Ok.
email4walker
Posts: 26
Joined: Mon Mar 16, 2015 10:21 pm

Re: Homing runs things in reverse.

Post by email4walker »

I am ready to skype. I will call in 5/10 min.
Post Reply