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

M140 Heating Bed AND Extruder

$
0
0
Hello every body,

I've struggled for a while now with this problem. I decided to upload the latest Marlin firmware and did all the changes. Every thing works fine except heating up the extruder. When I send M104 nothing happens (thermistor is reading correct room temperature). But when I send M140 RAMPS start to heat the bed AND the extruder... So I uploaded the old firmware thinking of a hardware problem, but it works fine with the old firmware. Does somebody have an idea what is the problem?

Thank you

Trachsou

Re: M140 Heating Bed AND Extruder

$
0
0
since you have provided virtually no information

My guess is don't use arduino 1.8.6, its buggy as...

Re: M140 Heating Bed AND Extruder

$
0
0
Thank you for your suggestion but I'm using Arduino IDE 1.6.7

Old Marlin version 1.0.2

New Marlin version 1.1.9
Board Ramps 1.4 EFB

Tell what more information you need.

Re: Problem tb6600 Marlin

$
0
0
The motor doesn't spin both ways.
If I send G1 x500 it spins
If I send G1 x5 (after x500) or G28 the board freeze. It's blocking and sends back "busy processing"

Firmware Marlin

Re: M140 Heating Bed AND Extruder

$
0
0
your configuration.h and configuration_adv.h would be nice. So we can try our build environments and see if we can replicate.

I presume both mosfet leds come on?

Did you edit any other files, pins_ramps for eg?

Re: M140 Heating Bed AND Extruder

$
0
0
Thank you for your answer,

Here are my current Marlin configuration files : [github.com]
And here the old ones : [github.com]

Only the led for heatbed is turning on when i do M140 and no led when M104.

No I didn't edit any other file but I checked if the pin.h was the same as in my older working Marlin version, an as far as I see it is.

I also re downloaded Marlin and only updated thermistor settings (so only the basics) but nothing changes.

I really apreciate your help!

Re: M140 Heating Bed AND Extruder

$
0
0
"Only the led for heatbed is turning on when i do M140"

can't see how that is possible... unless the hotend led is dead..

each mosfet has a led across the output... if the mosfet is on the led must be on...

Re: M140 Heating Bed AND Extruder

$
0
0
Hey I found the solution!

I didn't thought off looking at the leds before you talked about them. So I realized the hotend was actually heating when I give the command M104 but shut's down after a very short time because the themistor wasn't reading any temp. changing. I was thinking it was heating with the bed because it was a bit hot and the thermistor was reading a temperature increase. In my old firmware I had the extruded thermistor in T1 and in the new fw it is in T0. Until now i don't know why T0 was reading a temperature increase when the bed was heating. So know I changed pin.h to invert T1 and T0 and now everything works fine.
Sorry for my bad observation but you gave me the key to find the problem! Thank you!

Probe out of print range error

$
0
0
Hello All. Thanks in advance for any and all help with this error. I am having trouble uploading the Marlin firmware due to the following error and since I'm a newbie at this, I'm not sure where to make my corrections. Using Arduino IDE and Marlin 1.1.9

ERROR:

In file included from C:\Users\rober\AppData\Local\Temp\arduino_build_870422\sketch\MarlinConfig.h:42:0,

from C:\Users\rober\AppData\Local\Temp\arduino_build_870422\sketch\nozzle.cpp:23:

SanityCheck.h:946:5: error: static assertion failed: LEFT_PROBE_BED_POSITION is outside the probe region.

static_assert(LEFT_PROBE_BED_POSITION >= MIN_PROBE_X, "LEFT_PROBE_BED_POSITION is outside the probe region.");

^

Using library U8glib at version 1.19.1 in folder: C:\Users\rober\OneDrive\Documents\Arduino\libraries\U8glib
exit status 1
In file included from C:\Users\rober\AppData\Local\Temp\arduino_build_870422\sketch\MarlinConfig.h:42:0,

from C:\Users\rober\AppData\Local\Temp\arduino_build_870422\sketch\Marlin.h:35,

from C:\Users\rober\AppData\Local\Temp\arduino_build_870422\sketch\stepper_dac.cpp:44:

SanityCheck.h:946:5: error: static assertion failed: LEFT_PROBE_BED_POSITION is outside the probe region.

static_assert(LEFT_PROBE_BED_POSITION >= MIN_PROBE_X, "LEFT_PROBE_BED_POSITION is outside the probe region.");

^

In file included from C:\Users\rober\AppData\Local\Temp\arduino_build_870422\sketch\MarlinConfig.h:42:0,

from C:\Users\rober\AppData\Local\Temp\arduino_build_870422\sketch\cardreader.cpp:23:

SanityCheck.h:946:5: error: static assertion failed: LEFT_PROBE_BED_POSITION is outside the probe region.

static_assert(LEFT_PROBE_BED_POSITION >= MIN_PROBE_X, "LEFT_PROBE_BED_POSITION is outside the probe region.");

^

static assertion failed: LEFT_PROBE_BED_POSITION is outside the probe region.

Re: Probe out of print range error

$
0
0
Upload you Configuration.h and Configuration_adv.h to a google drive or similar online storage.
Post the link for us so we can look over it to help you with this firmware compiling error

Re: Probe out of print range error

$
0
0
Ok here goes. I built a printer from Thingieverse and it came with its own files but it was an older version of marlin which I can't find. I've included those and the ones I did in Marlin 1.1.9

Here's a link to dropbox for the files:

[www.dropbox.com]

Re: Probe out of print range error

$
0
0
Using Arduino 1.8.7 IDE and Installing the U8glib
And downloaded a Clean Marlin 1.1.9

I found that if
#define X_PROBE_OFFSET_FROM_EXTRUDER 29
and
#define MIN_PROBE_EDGE 10
Are correct then in order to compile

You will need to change the line below to
#define LEFT_PROBE_BED_POSITION (MIN_PROBE_EDGE +29)

Will get you a clean compile.

[attachment 108352 Image12.jpg]

Re: Probe out of print range error

$
0
0
Thanks for the help RC. I now get a clean compile but it times out when it is trying to upload. I've tried different com ports, different cables and different computers. I have even hit the reset on the board, unplugged it and closed Arduino IDE and restarted it and plugged the board back in but still get the same message. Oh, by the way it's a MKS Gen L v1.0 board.

Here is the error message I get:

Arduino: 1.8.7 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 131334 bytes (51%) of program storage space. Maximum is 253952 bytes.
Global variables use 4657 bytes (56%) of dynamic memory, leaving 3535 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't set com-state for "\\.\COM3"
avrdude: ser_drain(): read error: The handle is invalid.


avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The parameter is incorrect.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The parameter is incorrect.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The parameter is incorrect.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The parameter is incorrect.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The parameter is incorrect.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The parameter is incorrect.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
the selected serial port avrdude: stk500v2_getsync(): timeout communicating with programmer
does not exist or your board is not connected

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Re: Probe out of print range error

$
0
0
? Does this controller have a previous firmware loaded.

If so then you should be able to see if the controller is communicating.
Arduino IDE 1.8.7 is telling you that it can not find the Controller PCB Com Port.

Try Plugging in the Controller wait a few seconds.

Selecting the Tools menu Tab (Click)
Select Port menu (Click)
Then select the new Com Port (Click)

After
Selecting the Tools menu Tab (Click)
Select Serial Monitor (Click)

You should see the controller sending data.

Part Time Manual Bed Leveling

$
0
0
Did not know exactly how to title this so came up with "Part Time Manual Bed Leveling"

I have Bi-linear bed leveling setup in my Marlin firmware 1.1.7.

But though to myself can I Once in a blue moon decide to do a Manual Bed leveling onto a Borosilicate Glass Plate.
Now the reason behind this is the Borosilicate Glass Plate is 3mm thick and my Proximity Sensor has a 3mm range.

I would like to know if it is possible to still have the B-Linear Bed leveling and in the instances when needed.
I use the Borosilicate Glass Plate with the Manual Bed Leveling without causing any adverse side effects.

Re: Fan etc on external i2c-controller

$
0
0
Hi there

I just prepared the 12-bit port expander which you also named before (PCA9685 Chipset).
Now I would like to try if it works.

Like written in the manual, the board should have the address 0x40 (which is 64 in decimalcode).

As far as I know, I have to send an M260 command, to switch an output (as written here).

So the code is something like
M260 A64
M260 B*
M260 S1

Does anyone know, what I have to send instead of * ?

Thank you in advance!

Re: Fan etc on external i2c-controller

$
0
0
Its not quite that simple.. it not a byte, but multiple bytes

using M260 you have to manipulate the individual registers inside the chip

The following is a example from a pic processor, but it goes into details on all the registers and and eg
See [openlabpro.com]

so this should work for led 0,%50on/%50off (I have not tested it)

;init the chip
M260 A64
M260 B00 ;Control register set to address 00h
M260 B33 ;(0x21) Mode 1 configured to with AI=1 and ALLCALL=1
M260 S1

;set led0 50on/50off
M260 A64
M260 B06 ;Control register set to address LED0_ON_L
M260 B00 ;Writing 8 LSB bits of ON count
M260 B08 ;Writing 4 MSB bits of ON count
M260 B00 ;Writing 8 LSB bits of OFF count
M260 B08 ;Writing 4 MSB bits of ON count
M260 S1

Re: Fan etc on external i2c-controller

$
0
0
Thank you very much for your help!

What I did:
- connected the port expander (adafruit servo driver) with my GT2560 Board
- uploaded the example-code for adafruit servo-driver on it
-> Output works, there is a +5V signal on the PWM-Pin of Output #0

Then I uploaded the marlin code with
#define EXPERIMENTAL_I2CBUS

Next I used the upper code you posted and sent it line by line in the terminal.

But with Marlin I don't get an output on PWM-Pin #0 ....

Do you habe any further idea?

Re: Fan etc on external i2c-controller

$
0
0
ok looks like more gcode needed, try this

;reset
M260 A64
M260 B00 ;Control register set to address 00h
M260 B128 ;(0x80) Mode 1 configured to with restart=1
M260 S1

;set PWM freq
M260 A64
M260 B254 ;Control register set to address FEh
M260 B5
M260 S1

;init the chip
M260 A64
M260 B00 ;Control register set to address 00h
M260 B33 ;(0x21) Mode 1 configured to with AI=1 and ALLCALL=1
M260 S1

;set led0 50on/50off
M260 A64
M260 B06 ;Control register set to address LED0_ON_L
M260 B00 ;Writing 8 LSB bits of ON count
M260 B08 ;Writing 4 MSB bits of ON count
M260 B00 ;Writing 8 LSB bits of OFF count
M260 B08 ;Writing 4 MSB bits of ON count
M260 S1

Re: Fan etc on external i2c-controller

$
0
0
First - thank you very much for your support!

I just tried it several times but unfortunately not successful... :(


Do you have an idea why...?
Viewing all 12089 articles
Browse latest View live


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