Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: 1 2 [3]
Author Topic: Arduino MEGA 2560R3 with RAMPS 1.4?
dickholmer
Beginner
Posts: 39
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: January 31, 2015, 16:25
Quote

[i]Hello all,
first off all I am completely innocent when it comes to arduiono or programming. I am a design eingineer and I am very excited about all the stuff you are doing here. due to the fact that I have an arduino MEGA 2560 with a RAMPS 1.4 left over from an old 3d printer project I would like to recycle the board and the Steppers.
he big problem is my lack of programming experience.
I tried a Little bit with the latest Version of the polargraph_server_polarshield but I am not successfull. I added all the libaries but I receive the error message: C:\Users\Jennifer\Documents\Arduino\libraries\polargraph_server_polarshield-master/UTFT.h:229: error: 'bitmapdatatype' has not been declared
what should I do? I Need help 馃檪
cheers Thomas

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: January 31, 2015, 16:36
Quote

Hello, you need change how you've stored the files.

The polargraph firmware should be in:
Documents\Arduino\polargraph_server_polarshield\

Accelstepper, UTFT and UTouch libraries must be in:
Documents\Arduino\libraries\

If you haven't got these, then the easiest way to get them is by downloading the code bundle (https://github.com/euphy/polargraphcontroller/releases/latest) and then looking in arduino-source in the zip.

sn

dickholmer
Beginner
Posts: 39
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: January 31, 2015, 17:10
Quote

ok, got it 馃檪 thanks for the quick Response.

dickholmer
Beginner
Posts: 39
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: January 31, 2015, 17:46
Quote

ok...got the Firmware on the board, but it does not connect to your polargraph Controller 馃檨 when i plug in the USB there appears a COM4 atthe Serial port selection. but i only receive the message: polargraph is not connected. I tried to Change the properties file from controller.machine.serialport=-1 to 0 and to 4. but no effect.

sorry for such absolutely beginner questions

cheers
thomas

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: January 31, 2015, 19:55
Quote

The machine rebroadcasts that it is connected every couple of seconds, so it won't necessarily go green "connected" immediately, you might have to wait 4 seconds.

1. Connect USB.
2. Start Controller.
3. On the SETUP tab, click "Serial Port..." to open the serial port window.
4. Choose COM4, wait for a few seconds.

Other thing to check is whether the firmware is even broadcasting. Make sure the controller is closed, and open the Arduino IDE, and open the serial monitor and change the connection speed to 57600. You should see a "READY..." message coming from the arduino, every couple of seconds.

sn

dickholmer
Beginner
Posts: 39
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: February 1, 2015, 12:05
Quote

hello sandy,
not really a feeling of success 馃檨
here is what the Serial Monitor tells me.

POLARGRAPH ON!
v1.10
Hardware: RAMPS14
Servo 4
Loaded machine width:650
Loaded machine height:650
Loaded mm per rev:nan
Loaded motor steps per rev:400
Loaded motor step multiplier:8
Loaded machine name:每每每每每每每每
Loaded down pos:90
Loaded up pos:180
Recalc mmPerStep (nan), stepsPerMM (nan)
Recalc pageWidth in steps (-2147483648)
Recalc pageHeight in steps (-2147483648)
Card failed, or not present
Released motors
READY_200
MEMORY,1197,END
I do not see a ready every couple of seconds.
the controller.machine.serialport in the properties should be 4?

thanks

thomas

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: February 1, 2015, 12:15
Quote

That's a good start Thomas, it confirms that the firmware is uploaded. The READY_200 should be repeated every couple of seconds (I can't remember the interval, 4 or 8 seconds). If it is only emitted once, then there is something wrong.

If you only have 1 COM port, then controller.machine.serialport should probably be 0. It's actually an index to which port you want to use, given a full list. So for instance I've got three COM ports, COM4 (index 0), COM8 (index 1) and COM26 (index 2). I want to use COM26 to connect to my drawing machine, so in the settings file, the controller.machine.serialport is set to 2. It's a lot easier to just use the selector in the controller directly though, that way you can see if it worked quickly.

You need to make sure nothing else is connected to the port before you start the controller. If your port (COM4) is listed in the available ports, in the Serial Port... sub window, then it should be available. And if it is selected, then the controller should be listening out for any message starting with "READY" as a sign of life.

sn

dickholmer
Beginner
Posts: 39
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: February 1, 2015, 14:26
Quote

ok, then obviously something is wrong 馃檪 the READY_200 does not repeat. the adruiono board works, the Basic LED on/off sketch does work well. I also compiled the firmeware once more but wthout success
cheers
thomas

dickholmer
Beginner
Posts: 39
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: February 2, 2015, 19:07
Quote

hello
one finding from my side. i uploaded the "polargraph_server_mega" firmware and with this firmware the Controller connects to my board (but without doing aything) in addition the READY_100 repeats every couple of seconds on the Serial Monitor. uploading the "polargraph_server_polarshield" firmware the READY_200 only appears once. but the two steppers begin to life and make sounds by connecting the USB or clicking the serial Monitor.
thomas

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: February 2, 2015, 20:31
Quote

Hey is there any chance you haven't commented out the #define USE_LCD line?

https://github.com/euphy/polargraph/wiki/Using-the-Polargraph-software-with-RAMPS-motorshield#use-lcd

dickholmer
Beginner
Posts: 39
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: February 2, 2015, 21:12
Quote

thats it 馃檪

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: February 6, 2015, 20:37
Quote

hurray 馃檪

linkreinca-
rnate
Newbie
Posts: 3
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: June 9, 2015, 04:43
Quote

Is there any walkthrough on setting up this for the first time. I have no idea where the linker is looking for files and I cannot even get it to compile. I'm kinda an arduino noob. I am running kali linux and I have the arduino nightly build on the desktop. Which files do i download from github? Where do i put them once I download them? What do i need to do so that all the files are talking to eachother properly and how do I upload it to the ramps board? Basically is there a video tutorial anywhere that covers everything from downloading the project to runnning it?

I added the library files and commented out the stuff I was instructed to but I get a compiler error:

polargraph_server_polarshield.ino:109:16: error: 'prog_uint32_t' does not name a type
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI/SPI.h:17,
from polargraph_server_polarshield.ino:47:
util.ino: In function 'long unsigned int crc_update(long unsigned int, byte)':
util.ino:392:31: error: 'crc_table' was not declared in this scope
util.ino:394:31: error: 'crc_table' was not declared in this scope
Error compiling.

reconlap
Newbie
Posts: 7
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: June 15, 2015, 21:57
Quote

I changed the line in polargraph_server_polarsheild.ino

from

// for working out CRCs
static PROGMEM prog_uint32_t crc_table[16] = {
    0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
    0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
    0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,
    0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c
};

to

// for working out CRCs
const uint32_t PROGMEM crc_table[16] = { // const static PROGMEM prog_uint32_t crc_table[16] = {
    0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
    0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c,
    0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c,
    0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c
};

Might work for you as well.

Quote from linkreincarnate on June 9, 2015, 04:43
Is there any walkthrough on setting up this for the first time. I have no idea where the linker is looking for files and I cannot even get it to compile. I'm kinda an arduino noob. I am running kali linux and I have the arduino nightly build on the desktop. Which files do i download from github? Where do i put them once I download them? What do i need to do so that all the files are talking to eachother properly and how do I upload it to the ramps board? Basically is there a video tutorial anywhere that covers everything from downloading the project to runnning it?

I added the library files and commented out the stuff I was instructed to but I get a compiler error:

polargraph_server_polarshield.ino:109:16: error: 'prog_uint32_t' does not name a type
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/libraries/SPI/SPI.h:17,
from polargraph_server_polarshield.ino:47:
util.ino: In function 'long unsigned int crc_update(long unsigned int, byte)':
util.ino:392:31: error: 'crc_table' was not declared in this scope
util.ino:394:31: error: 'crc_table' was not declared in this scope
Error compiling.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: June 19, 2015, 21:57
Quote

Wanted to add, this is a problem with compiling in the Arduino 1.6+ environment. It still works ok in older versions.

Asmo
Newbie
Posts: 1
Permalink
Post Re: Arduino MEGA 2560R3 with RAMPS 1.4?
on: November 13, 2016, 18:24
Quote

Hi there,

I'm just trying to buyild a polargraph with a Mega 2560 board and a RAMPS shield laying from my old 3d printer. But I have a problem to move motor Y (E1 apparantly move normally)
I uncommented the ramp14 line in the polargraph_server_polarshield instead of the Polarshield but it doesn't work
Motor A warms normally while in use but B stay cold.
At the startup the motor grip and is hard to turn by hand but no sound from it. There is sound from the motor A
I tried on a clone Mega 2560 + RAMPS and I tried also on a Chinese MKS Mini board which is based on a 2560 + Ramps also (at least in the PIN assignment)

I tried to tune the Pollolu (On the mega/ramps) and the DRV8825 on the MKS Mini without effect.

I crossed test motors and steppers and they worked all fines.

I tried the X axis instead of Y but it already has been tried here without succes. (Same for me)

If someone could post me his Polarshield sketch, it'll be fine for comparaison.

Thanks in advance,

Asmo

Pages: 1 2 [3]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.032 seconds.