Welcome! Log In Create A New Profile

Advanced

End Stop Issue

Posted by ModulateRecords 
End Stop Issue
April 14, 2015 06:14PM
So recently I decided to build my first 3D printer so purchased a kit from RPtechworks on Ebay. After successfully putting it together I have finally got to the stage where it should be ready to print.
I have an issue though, when I try to manually control the axis motors they only move away from the end stops. I have tried triggering the switches and when they are triggered the axis can move in both directions so I have came to the conclusion that I need to invert the logic of the end stops.
I have tried inverting them in the firmware with Arduino but when I go to upload it to the printer or verify it I am greeted with a lot of errors. The version of Arduino I am using is 0023.

The errors are as follow:

In file included from Sprinter_Melzi.cpp:7:
/Configuration.h:655:2: error: #error Oops! Make sure you have the appropriate 'Sanguino' selected from the 'Tools -> Boards' menu.
Sprinter_Melzi.cpp: In function 'void setup()':
Sprinter_Melzi:225: error: 'DIO27_DDR' was not declared in this scope
Sprinter_Melzi:225: error: 'DIO27_PIN' was not declared in this scope
Sprinter_Melzi:226: error: 'DIO27_WPORT' was not declared in this scope
Sprinter_Melzi:226: error: 'DIO27_PIN' was not declared in this scope
Sprinter_Melzi:226: error: 'DIO27_WPORT' was not declared in this scope
Sprinter_Melzi:226: error: 'DIO27_PIN' was not declared in this scope
Sprinter_Melzi:231: error: 'PINC7' was not declared in this scope
Sprinter_Melzi:234: error: 'DIO23_DDR' was not declared in this scope
Sprinter_Melzi:234: error: 'DIO23_PIN' was not declared in this scope
Sprinter_Melzi:254: error: 'DIO26_DDR' was not declared in this scope
Sprinter_Melzi:254: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:255: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:255: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:255: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:255: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:329: error: 'DIO22_DDR' was not declared in this scope
Sprinter_Melzi:329: error: 'DIO22_PIN' was not declared in this scope
Sprinter_Melzi.cpp: In function 'void process_commands()':
Sprinter_Melzi:937: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:937: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:937: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:937: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi.cpp: In function 'void linear_move(long unsigned int*)':
Sprinter_Melzi:1182: error: 'PINC7' was not declared in this scope
Sprinter_Melzi:1182: error: 'PINC7' was not declared in this scope
Sprinter_Melzi:1183: error: 'PINC7' was not declared in this scope
Sprinter_Melzi:1183: error: 'PINC7' was not declared in this scope
Sprinter_Melzi:1184: error: 'DIO23_WPORT' was not declared in this scope
Sprinter_Melzi:1184: error: 'DIO23_PIN' was not declared in this scope
Sprinter_Melzi:1184: error: 'DIO23_WPORT' was not declared in this scope
Sprinter_Melzi:1184: error: 'DIO23_PIN' was not declared in this scope
Sprinter_Melzi:1185: error: 'DIO23_WPORT' was not declared in this scope
Sprinter_Melzi:1185: error: 'DIO23_PIN' was not declared in this scope
Sprinter_Melzi:1185: error: 'DIO23_WPORT' was not declared in this scope
Sprinter_Melzi:1185: error: 'DIO23_PIN' was not declared in this scope
Sprinter_Melzi:1216: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1216: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:1216: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1216: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:1433: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1433: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:1433: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1433: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi.cpp: In function 'void do_step(int)':
Sprinter_Melzi:1450: error: 'DIO22_WPORT' was not declared in this scope
Sprinter_Melzi:1450: error: 'DIO22_PIN' was not declared in this scope
Sprinter_Melzi:1450: error: 'DIO22_WPORT' was not declared in this scope
Sprinter_Melzi:1450: error: 'DIO22_PIN' was not declared in this scope
Sprinter_Melzi:1461: error: 'DIO22_WPORT' was not declared in this scope
Sprinter_Melzi:1461: error: 'DIO22_PIN' was not declared in this scope
Sprinter_Melzi:1461: error: 'DIO22_WPORT' was not declared in this scope
Sprinter_Melzi:1461: error: 'DIO22_PIN' was not declared in this scope
Sprinter_Melzi.cpp: In function 'void manage_heater()':
Sprinter_Melzi:1635: error: 'DIO27_RPORT' was not declared in this scope
Sprinter_Melzi:1635: error: 'DIO27_PIN' was not declared in this scope
Sprinter_Melzi:1642: error: 'DIO27_RPORT' was not declared in this scope
Sprinter_Melzi:1642: error: 'DIO27_PIN' was not declared in this scope
Sprinter_Melzi:1647: error: 'DIO27_WPORT' was not declared in this scope
Sprinter_Melzi:1647: error: 'DIO27_PIN' was not declared in this scope
Sprinter_Melzi:1647: error: 'DIO27_WPORT' was not declared in this scope
Sprinter_Melzi:1647: error: 'DIO27_PIN' was not declared in this scope
Sprinter_Melzi.cpp: In function 'void kill()':
Sprinter_Melzi:1775: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1775: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:1775: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1775: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi.cpp: In function 'void manage_inactivity(byte)':
Sprinter_Melzi:1784: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1784: error: 'DIO26_PIN' was not declared in this scope
Sprinter_Melzi:1784: error: 'DIO26_WPORT' was not declared in this scope
Sprinter_Melzi:1784: error: 'DIO26_PIN' was not declared in this scope


I have checked and the correct Sanguino has been selected for the board I have.
I have attached the firmware for the printer.

Thanks in advance for any help,
Andrew
Attachments:
open | download - Sprinter_Melzi.zip (85.9 KB)
Re: End Stop Issue
April 15, 2015 10:12PM
I think I would try a more recent version of Arduino and use Marlin Firmware little easier to figure out the errors. There is probably somebody on here that knows the old stuff, but not sure how many people still use it. Here are the links to the newer firmware and Arduino IDE.
Marlin
Arduino
Re: End Stop Issue
April 15, 2015 10:39PM
Someone else just pointed me to this thread to help me out with my end stops:

[forums.reprap.org]

Scroll about halfway down the page and you'll see a section on how to plug in the end stops depending on where your Home position is set up. Hopefully that'll help.
Sorry, only registered users may post in this forum.

Click here to login