Quantcast
Channel: Reprap Forum - Firmware - Marlin
Viewing all 12094 articles
Browse latest View live

Re: Malyan M150 - latest firmware

$
0
0
Looks good. Probably not you...

also try 38400 as upload baud rate

Many manufacturer just don't put a boot loader on the chip so only way to program it is with avrisp to either put a bootloader on it or upload the firmware directly

Re: Experimental MAX31865 on Marlin

$
0
0
Hi, i have a MKS GEN L v.1 board, which is basically a RAMPS 1.4

i have tested my MAX31865 board + PT100 3 wire version with Arduino Uno and Adafruit example file and all works fine. Therefore I can exclude an error on the MAX31865 board

1. I have wired on MKS Gen L Aux 2 top row = GND, 63[sdi], 40 [sck], 42 [sdo], 65 [cs]
2. copied temperature.cpp in Arduino folder
3. install Adafruit library MAX31865
4. in configuration.h
#define TEMP_SENSOR_0 -2 // MAX 6675
#define MAX6675_IS_MAX31865

I have disconnected my before thermistor from MKS Gen L, therefore Pin 13 is empty

Compiled, upload is ok, but directly Marlin throws the ERR: MAXTEMP

My intuition tells me, that the empty PIN13 makes the problem.

Do you have an idea how to troubleshoot?

thks
Herri

Re: Malyan M150 - latest firmware

$
0
0
I was trying all speeds - still the same :(

Could you please explain how to use avrisp or upload firmware directly?

Do I need to use those?
[s8.postimg.cc]

Re: Diamond Hotend M163 - Set Mix Factor

$
0
0
Ok nobody knows LOL.

So I've done a math to get the convertion from RGB to M163 mix factor and also from CMY to M163.

RGB to M163 mix
===============
Example: RGB (240, 186, 173)

Rv = R/256 = 0,9375
Gv = G/256 = 0,7265625
Bv = B/256 = 0,67578125

Tv = Rv+Gv+Bv = 2,33984375
Tf = 100 / Tv = 42,73

Rp = Rv * Tf = 40,05%
Gp = Gv * Tf = 31,04%
Bp = Bv * Tf = 28,87%

In Marlin:
M163 S0 P0.40
M163 S1 P0.31
M163 S2 P0.29 Rounded to 0.29 so the total sum will be 1 (100%)
M164 S5

Now the CMY to M163 Mix
=====================
Example: CMY (6, 27, 32)

Cv = C/100 = 0,06
Mv = M/100 = 0,27
Yv = Y/100 = 0,32

Tv = Cv+Mv+Yv = 0,65
Tf = 100 / Tv = 153,84...

Cp = Cv * Tf = 9,23%
Mp = Mv * Tf = 41,53%
Yp = Yv * Tf = 49,23%

In Marlin:
M163 S0 P0.09
M163 S1 P0.42 Rounded to 42 so the total sum will be 1 (100%).
M163 S2 P0.49
M164 S5

========

Now I have to test this thing...

Re: Malyan M150 - latest firmware

$
0
0
Hi, finally found how to upload firmware.

Just need to do this

-Power off printer.
-Press center button on panel.
-Power up printer, please keep center button pressed.
-Release center button.
-Look up COM port from windows device manager. Type below command into windows console: avrdude.exe -v -p atmega1284p -c arduino -P com4 -b 57600 -V -U flash:w:marlin.hex
-Reboot printer if necessary.

All from this page, http://wiki.malyansys.com/doku.php?id=firmware_update_procedure

Re: Malyan M150 - latest firmware

$
0
0
It appears you hit the mother load ( "Gold mine" ) on that one web Site.

Re: Diamond Hotend M163 - Set Mix Factor

Re: Malyan M150 - latest firmware


G92 Problem

$
0
0
Hi, I have just rebuilt the hardware on my MakerFarm 12" Prusa, at the same time I upgraded Marlin from 1.1.3 to 1.1.8. I transferred the changes I had made in the old Configuration.h file to the new one as appropriate and amazingly things appeared to work. Of course there had to be a "but" in there, so here it is.

When setting up the servo operated Z probe for UBL, the procedure calls for the print head to be centred over a spot on the bed and then the Z axis lowered so that it is just about touching the bed. All works up to this stage either by moving the print head using the LCD controls or Pronterface.

The next step is to issue a G92 X0 Y0 Z0 to give a 0 reference to the position. Now for the real issue, after issuing the G92 command the LCD position info changes to 0's but as soon as I try to move the head, either through the LCD or Pronterface, it moves away in the positive direction (away from the end stops). It stops on it's own at what I believe is the software defined endstop. A little playing around shows that if I issue only a G92 X0 then only the X axis is affected, Y and Z can be moved normally.

Any idea what I may have done wrong or overlooked in moving from 1.1.3 to 1.1.8?

Re: G92 Problem: SOLVED

$
0
0
I started with a clean configuration file and made my changes, this time it worked out OK. Put it down to operator error!

Re: G92 Problem: SOLVED

$
0
0
On some occasions after flashing an updated Marlin.
It misses reloading firmware defaults leaving the old configuration data and you need to reset to the Current firmware configuration data.
To do this issue a M502

[marlinfw.org]

Then save the new firmware data using a M500

[marlinfw.org]

Re: G92 Problem: SOLVED

$
0
0
Thanks for the response, I usually do the M502, M500, M501 after each download. I think I had some error / bad formatting in the Configuration.h file as when I downloaded the s/w again and modified the settings all went well.

M0 - Stop that doesn't turn off heaters and motors

$
0
0
In Cura there is a post-processing script, Pause at Height, that will insert gcode to pause the printer and wait for the user to continue and the current implementation uses M0.

According to the RepRap Wiki, M0 turns off heaters and motors. I'd like a command that waits for the user to continue but doesn't turn off heaters and motors. Would it be possible to add optional parameter(s) to M0 that would control this behavior?

Re: How to add a debug message to marlin?

$
0
0
SOLVED

With little knowledge of Marlin and Roxy's help I found a way to get debug messages:

Add "print" statements something like this:

SERIAL_ECHOPGM("Text: ");
SERIAL_ECHO(VariableName);
SERIAL_EOL();

Not really sure where best to put these - depends what you are trying to see but I inserted these in the gcode M115 (show Marlin version etc.) instruction interpreter.

This is in Marlin_main.cpp file
in the section beginning "inline void gcode_M115() {"
I inserted immediately before the final closing "}" of this section.

Connect PC to printer board via USB cable.
Use arduino IDE to compile / upload

Start serial monitor (under tools in arduino IDE) I had to change options at bottom of window to "both NL and CR" and set baud rate to 250000.
Send "M115" whenever you want to see the debug echos (after the info. M115 normally generates).

Hope this helps someone!

Re: How to add a debug message to marlin?

$
0
0
Now go on eBay and get a Max7219 8x8 LED Matrix! Here is pre-assembled one for under $2.00 (including shipping)

[www.ebay.com]

It is very handy to be able to light up different dots depending on what is going on in the firmware. And if you are not debugging code, the lights will show you how many commands are buffered up waiting to be executed by the printer.
It looks very cool while printing.

Cheap Chinese TB6600 with Marlin

$
0
0
Hey Reprap community,

So, I've bought these cheap chinese TB6600.
They have a Toshiba Stepper driver chip S109AFTG.
It's actually a pretty good chip. Not fully implemented in the design, but it will do.
There are options for Motor Ach current sense and Motor Ach output that are not used.
However, there is 1 major issue with this.
For turning the stepper motor clockwise or counter clockwise,
there are 2 Dir ports. Dir- and Dir+
The sequence to make it run clockwise is Dir- = Low and Dir+ = High.
for the counter clockwise, this is Dir- = High and Dir+ = Low.

So the 1 DIR pin on a RAMPS is not enough to use it.
We don't need the reset or sleep pin from the RAMPS board.
But Marlin is not configured for this. And I'm not sure where to place the piece of source code for this.
Any care to help me out here ???

kind regards,
Thierry

Re: Cheap Chinese TB6600 with Marlin

$
0
0
Lots of people using this type of board and just gnding all the -ve rails and connecting the +ve to ramps pins.

Only change is you have to invert the enable line in firmware.. (some boards do need to slow down signaling rate... )

Have you actually tried it?

Re: Cheap Chinese TB6600 with Marlin

$
0
0
Yeah, actually tried most of the tutorials i found online.
This board i have seems a bit different.
I only need to ground enable- and pulse-.
they others are controlled by a signal.
Like said in the first message.
Since this is configured for 20Khz, the signal must be 50microseconds.
I've read in the chip's datasheet that a max of 70Khz chopping frequency is possible for this chip.
But this needs to be configured by a resistor and a capacitor.
Inverting is not needed, cos the direction is controlled with 2 pins. Dir- and Dir+.
The sequence to make it run clockwise is Dir- = Low and Dir+ = High.
for the counter clockwise, this is Dir- = High and Dir+ = Low.

Re: Cheap Chinese TB6600 with Marlin

$
0
0
I would use an inverter circuit

in discrete parts [www.play-hookey.com]

or use a logic chip..

then you can just send the signal and its inverted signal .

But I suspect there is something else going on...
Looking at the image in another post It looks like it goes threw an 6 pin opto couple that has two pins without solder

Re: Cheap Chinese TB6600 with Marlin

$
0
0
The 20khz is the chopping frequency of the chip and has nothing to do with the step or direction signals so nothing has to be changed for it.
If you tie dir- to ground and dir+ to direction pin then you have dir - ground, dir+ +5 for one direction and dir- ground and dir+ ground also for the other direction. That would be the normal way these drives operate.
Viewing all 12094 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>